summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-04 10:08:21 +0100
committerSam James <sam@gentoo.org>2022-10-04 10:08:59 +0100
commit442db4d45a15b497cf43e75e3ad38ae90aaaabbc (patch)
tree85ff51b849d39fa14543500c65e7396459818de8 /app-text
parentmedia-sound/mp3wrap: EAPI 8, fix configure w/ Clang 16 (diff)
downloadgentoo-442db4d45a15b497cf43e75e3ad38ae90aaaabbc.tar.gz
gentoo-442db4d45a15b497cf43e75e3ad38ae90aaaabbc.tar.bz2
gentoo-442db4d45a15b497cf43e75e3ad38ae90aaaabbc.zip
app-text/ghostscript-gpl: fix version used for /usr/share/poppler/* symlink
Sometimes it deviates from the actual tarball & tag version, apparently. Closes: https://bugs.gentoo.org/844115 Thanks-to: Guillaume Ayoub <guillaume@yabz.fr> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r1.ebuild (renamed from app-text/ghostscript-gpl/ghostscript-gpl-10.0.0.ebuild)7
1 files changed, 6 insertions, 1 deletions
diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r1.ebuild
index 131bd53e91c0..6a6286bd995e 100644
--- a/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0.ebuild
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r1.ebuild
@@ -169,8 +169,13 @@ src_install() {
cd "${S}/ijs" || die
emake DESTDIR="${D}" install
+ # Sometimes the upstream versioning deviates from the tarball(!)
+ # bug #844115#c32
+ local my_gs_version=$(find "${ED}"/usr/share/ghostscript/ -maxdepth 1 -mindepth 1 -type d || die)
+ my_gs_version=${my_gs_version##*/}
+
# Install the CMaps from poppler-data properly, bug #409361
- dosym -r /usr/share/poppler/cMaps /usr/share/ghostscript/${PV}/Resource/CMap
+ dosym -r /usr/share/poppler/cMaps /usr/share/ghostscript/${my_gs_version}/Resource/CMap
if ! use static-libs; then
find "${ED}" -name '*.la' -delete || die