app-text/ghostscript-gpl: Prefix support.
authorBenda Xu <heroxbd@gentoo.org>
Thu, 22 Sep 2016 05:46:06 +0000 (14:46 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Thu, 22 Sep 2016 05:57:06 +0000 (14:57 +0900)
Bug: 550926

Package-Manager: portage-2.3.0

app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild

index 5105d480c2984677c0bc01943f3f01ba835fb625..41a19506389002980394d2b74f5b54d959df3ea9 100644 (file)
@@ -132,14 +132,16 @@ src_prepare() {
 
        # search path fix
        # put LDFLAGS after BINDIR, bug #383447
-       sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \
-               -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
-               -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
-               -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
+       sed -i -e "s:\$\(gsdatadir\)/lib:@datarootdir@/ghostscript/${PVM}/$(get_libdir):" \
+               -e "s:exdir=.*:exdir=@datarootdir@/doc/${PF}/examples:" \
+               -e "s:docdir=.*:docdir=@datarootdir@/doc/${PF}/html:" \
+               -e "s:GS_DOCDIR=.*:GS_DOCDIR=@datarootdir@/doc/${PF}/html:" \
                -e 's:-L$(BINDIR):& $(LDFLAGS):g' \
                "${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed"
 
        cd "${S}" || die
+       # remove incorrect symlink, bug 590384
+       rm -f ijs/ltmain.sh || die
        eautoreconf
 
        cd "${S}/ijs" || die
@@ -158,7 +160,7 @@ src_configure() {
                /usr/share/poppler/cMap/Adobe-Japan2 \
                /usr/share/poppler/cMap/Adobe-Korea1
        do
-               FONTPATH="$FONTPATH${FONTPATH:+:}$path"
+               FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path"
        done
 
        # We force the endian configure flags until this is fixed: