From 1f867ecfb16ed696750b15c732217120b211ae65 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Thu, 22 Sep 2016 14:46:06 +0900 Subject: [PATCH] app-text/ghostscript-gpl: Prefix support. Bug: 550926 Package-Manager: portage-2.3.0 --- app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild index 5105d480c298..41a195063890 100644 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild +++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild @@ -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: -- 2.26.2