1 |
commit: 1f867ecfb16ed696750b15c732217120b211ae65 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 05:46:06 2016 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 05:57:06 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f867ecf |
7 |
|
8 |
app-text/ghostscript-gpl: Prefix support. |
9 |
|
10 |
Bug: 550926 |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
|
14 |
app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild | 12 +++++++----- |
15 |
1 file changed, 7 insertions(+), 5 deletions(-) |
16 |
|
17 |
diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild |
18 |
index 5105d48..41a1950 100644 |
19 |
--- a/app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild |
20 |
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.19.ebuild |
21 |
@@ -132,14 +132,16 @@ src_prepare() { |
22 |
|
23 |
# search path fix |
24 |
# put LDFLAGS after BINDIR, bug #383447 |
25 |
- sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \ |
26 |
- -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ |
27 |
- -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
28 |
- -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
29 |
+ sed -i -e "s:\$\(gsdatadir\)/lib:@datarootdir@/ghostscript/${PVM}/$(get_libdir):" \ |
30 |
+ -e "s:exdir=.*:exdir=@datarootdir@/doc/${PF}/examples:" \ |
31 |
+ -e "s:docdir=.*:docdir=@datarootdir@/doc/${PF}/html:" \ |
32 |
+ -e "s:GS_DOCDIR=.*:GS_DOCDIR=@datarootdir@/doc/${PF}/html:" \ |
33 |
-e 's:-L$(BINDIR):& $(LDFLAGS):g' \ |
34 |
"${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed" |
35 |
|
36 |
cd "${S}" || die |
37 |
+ # remove incorrect symlink, bug 590384 |
38 |
+ rm -f ijs/ltmain.sh || die |
39 |
eautoreconf |
40 |
|
41 |
cd "${S}/ijs" || die |
42 |
@@ -158,7 +160,7 @@ src_configure() { |
43 |
/usr/share/poppler/cMap/Adobe-Japan2 \ |
44 |
/usr/share/poppler/cMap/Adobe-Korea1 |
45 |
do |
46 |
- FONTPATH="$FONTPATH${FONTPATH:+:}$path" |
47 |
+ FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path" |
48 |
done |
49 |
|
50 |
# We force the endian configure flags until this is fixed: |