1 |
commit: 79f5db51a97ec9a4743059c74f217233f9b0dec9 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 16 17:54:13 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 16 19:23:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79f5db51 |
7 |
|
8 |
app-text/ghostscript-gpl: bump to v9.53.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
app-text/ghostscript-gpl/Manifest | 1 + |
14 |
.../ghostscript-gpl/ghostscript-gpl-9.53.1.ebuild | 189 +++++++++++++++++++++ |
15 |
2 files changed, 190 insertions(+) |
16 |
|
17 |
diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest |
18 |
index 829de82eead..341136e040d 100644 |
19 |
--- a/app-text/ghostscript-gpl/Manifest |
20 |
+++ b/app-text/ghostscript-gpl/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST ghostscript-9.52.tar.xz 39711040 BLAKE2B 317042ae7e2bfdeded2ae9d9a1bd1521422d1ce1dd6b9b2cdedf4c503cce1285684d5329663dc8ee7263591761c33254827d16b1a93f8c10aad4baab1d859f93 SHA512 4c4a33884e1138bad553eee61fac1a72158297ad5c2ce46a4b36150848dea8158affaf2b902f4ff03e4f72ebc8154c198b618112624f409230a610b7648faa67 |
23 |
DIST ghostscript-9.53.0.tar.xz 41358720 BLAKE2B 9a8b5872dc799f14759033685c37890f2da28450b1e115fcc63a2a920bb22bfc02db078d3f39dc62778da2a2518b82c2fc91f349486e83914c88c70d1e15d7e8 SHA512 fa594ef99e58257074b651e4d078bd1025f7bc2c435cd2a5454ba59c2a98cc82e93339ccd1eaa4fe624275165aacefeabc6f8336476027946f56aeb02e93da30 |
24 |
+DIST ghostscript-9.53.1.tar.xz 41362600 BLAKE2B f4f3e9c067d120195cdcbd8ba3ecbb5618d668e0582408cc76b0e13627aca06c40064a7ae96d0ebe8c313ec282c4d3f5dddddabef3d0194ff9aaf98832b5a50c SHA512 5c78ed0a03983cbf9d55885c5ee8fbfc987db367b020ad0148b8861de42923e38c688447cfc6efcea5521121545ecfbea9690058fd3c4438629a43b5990800c5 |
25 |
DIST ghostscript-gpl-9.52-patchset-01.tar.xz 3292 BLAKE2B b6ac4f06c149301b07f57a5dd1f4507cc1e6d17ea60132b64177972ca58a29b2f6ff2f034b20b8ac083b60ea999f50ff75b74f86eec0cd73179741ed8a1486a8 SHA512 2498c5f396807a282727a7a9bd678e2008a1e4112722745aab48a12601661b08557c5d49f0a5ee67fb636f8c2b00c737640e894523b904ef3600f66d107999cb |
26 |
DIST ghostscript-gpl-9.53-patchset-01.tar.xz 2340 BLAKE2B 55d82c88f1b57c084318839e1382ffa112461d074411b1f6586a5a9ace37772b144abdda9f742defd077ce937df590d63bd7a2306bad52438949d1036bb7900c SHA512 ab58485df9152bb32c6f0eb25bd45689089bd17ffb0323c54e1977c5f810ec5eb09f358637251c428591749bfb42c6f8489c74d4bd0a7ae5d696eb2346503c44 |
27 |
|
28 |
diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.53.1.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.53.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..0d3acf4a9d1 |
31 |
--- /dev/null |
32 |
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.53.1.ebuild |
33 |
@@ -0,0 +1,189 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit autotools flag-o-matic toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="Interpreter for the PostScript language and PDF" |
42 |
+HOMEPAGE="https://ghostscript.com/" |
43 |
+ |
44 |
+MY_PN=${PN/-gpl} |
45 |
+MY_P="${MY_PN}-${PV/_}" |
46 |
+PVM=$(ver_cut 1-2) |
47 |
+PVM_S=$(ver_rs 1-2 "") |
48 |
+ |
49 |
+MY_PATCHSET="ghostscript-gpl-9.53-patchset-01.tar.xz" |
50 |
+ |
51 |
+SRC_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PVM_S}/${MY_P}.tar.xz" |
52 |
+ |
53 |
+if [[ -n "${MY_PATCHSET}" ]] ; then |
54 |
+ SRC_URI+=" https://dev.gentoo.org/~whissi/dist/ghostscript-gpl/${MY_PATCHSET}" |
55 |
+fi |
56 |
+ |
57 |
+LICENSE="AGPL-3 CPL-1.0" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
60 |
+IUSE="cups dbus gtk l10n_de static-libs unicode X" |
61 |
+ |
62 |
+LANGS="ja ko zh-CN zh-TW" |
63 |
+for X in ${LANGS} ; do |
64 |
+ IUSE="${IUSE} l10n_${X}" |
65 |
+done |
66 |
+ |
67 |
+DEPEND=" |
68 |
+ app-text/libpaper |
69 |
+ media-libs/fontconfig |
70 |
+ >=media-libs/freetype-2.4.9:2= |
71 |
+ >=media-libs/jbig2dec-0.19:= |
72 |
+ >=media-libs/lcms-2.6:2 |
73 |
+ >=media-libs/libpng-1.6.2:0= |
74 |
+ >=media-libs/openjpeg-2.1.0:2= |
75 |
+ >=media-libs/tiff-4.0.1:0= |
76 |
+ >=sys-libs/zlib-1.2.7 |
77 |
+ virtual/jpeg:0 |
78 |
+ cups? ( >=net-print/cups-1.3.8 ) |
79 |
+ dbus? ( sys-apps/dbus ) |
80 |
+ gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) ) |
81 |
+ unicode? ( net-dns/libidn:0= ) |
82 |
+ X? ( x11-libs/libXt x11-libs/libXext ) |
83 |
+" |
84 |
+BDEPEND="virtual/pkgconfig" |
85 |
+RDEPEND="${DEPEND} |
86 |
+ app-text/poppler-data |
87 |
+ >=media-fonts/urw-fonts-2.4.9 |
88 |
+ l10n_ja? ( media-fonts/kochi-substitute ) |
89 |
+ l10n_ko? ( media-fonts/baekmuk-fonts ) |
90 |
+ l10n_zh-CN? ( media-fonts/arphicfonts ) |
91 |
+ l10n_zh-TW? ( media-fonts/arphicfonts ) |
92 |
+" |
93 |
+ |
94 |
+S="${WORKDIR}/${MY_P}" |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ if [[ -n "${MY_PATCHSET}" ]] ; then |
98 |
+ # apply various patches, many borrowed from Fedora |
99 |
+ # https://src.fedoraproject.org/rpms/ghostscript |
100 |
+ # and Debian |
101 |
+ # https://salsa.debian.org/printing-team/ghostscript/tree/debian/master/debian/patches |
102 |
+ eapply "${WORKDIR}/patches/"*.patch |
103 |
+ fi |
104 |
+ |
105 |
+ default |
106 |
+ |
107 |
+ # remove internal copies of various libraries |
108 |
+ rm -r cups/libs || die |
109 |
+ rm -r freetype || die |
110 |
+ rm -r jbig2dec || die |
111 |
+ rm -r jpeg || die |
112 |
+ rm -r lcms2mt || die |
113 |
+ rm -r libpng || die |
114 |
+ rm -r tiff || die |
115 |
+ rm -r zlib || die |
116 |
+ rm -r openjpeg || die |
117 |
+ # remove internal CMaps (CMaps from poppler-data are used instead) |
118 |
+ rm -r Resource/CMap || die |
119 |
+ |
120 |
+ if ! use gtk ; then |
121 |
+ sed -e "s:\$(GSSOX)::" \ |
122 |
+ -e "s:.*\$(GSSOX_XENAME)$::" \ |
123 |
+ -i base/unix-dll.mak || die "sed failed" |
124 |
+ fi |
125 |
+ |
126 |
+ # Force the include dirs to a neutral location. |
127 |
+ sed -e "/^ZLIBDIR=/s:=.*:=${T}:" \ |
128 |
+ -i configure.ac || die |
129 |
+ # Some files depend on zlib.h directly. Redirect them. #573248 |
130 |
+ # Also make sure to not define OPJ_STATIC to avoid linker errors due to |
131 |
+ # hidden symbols (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203327#c1) |
132 |
+ sed -e '/^zlib_h/s:=.*:=:' \ |
133 |
+ -e 's|-DOPJ_STATIC ||' \ |
134 |
+ -i base/lib.mak || die |
135 |
+ |
136 |
+ # search path fix |
137 |
+ # put LDFLAGS after BINDIR, bug #383447 |
138 |
+ sed -e "s:\$\(gsdatadir\)/lib:@datarootdir@/ghostscript/${PVM}/$(get_libdir):" \ |
139 |
+ -e "s:exdir=.*:exdir=@datarootdir@/doc/${PF}/examples:" \ |
140 |
+ -e "s:docdir=.*:docdir=@datarootdir@/doc/${PF}/html:" \ |
141 |
+ -e "s:GS_DOCDIR=.*:GS_DOCDIR=@datarootdir@/doc/${PF}/html:" \ |
142 |
+ -e 's:-L$(BINDIR):& $(LDFLAGS):g' \ |
143 |
+ -i Makefile.in base/*.mak || die "sed failed" |
144 |
+ |
145 |
+ # remove incorrect symlink, bug 590384 |
146 |
+ rm ijs/ltmain.sh || die |
147 |
+ eautoreconf |
148 |
+ |
149 |
+ cd ijs || die |
150 |
+ eautoreconf |
151 |
+} |
152 |
+ |
153 |
+src_configure() { |
154 |
+ local FONTPATH |
155 |
+ for path in \ |
156 |
+ "${EPREFIX}"/usr/share/fonts/urw-fonts \ |
157 |
+ "${EPREFIX}"/usr/share/fonts/Type1 \ |
158 |
+ "${EPREFIX}"/usr/share/fonts \ |
159 |
+ "${EPREFIX}"/usr/share/poppler/cMap/Adobe-CNS1 \ |
160 |
+ "${EPREFIX}"/usr/share/poppler/cMap/Adobe-GB1 \ |
161 |
+ "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan1 \ |
162 |
+ "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan2 \ |
163 |
+ "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Korea1 |
164 |
+ do |
165 |
+ FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path" |
166 |
+ done |
167 |
+ |
168 |
+ PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \ |
169 |
+ econf \ |
170 |
+ --enable-dynamic \ |
171 |
+ --enable-freetype \ |
172 |
+ --enable-fontconfig \ |
173 |
+ --enable-openjpeg \ |
174 |
+ --disable-compile-inits \ |
175 |
+ --with-drivers=ALL \ |
176 |
+ --with-fontpath="$FONTPATH" \ |
177 |
+ --with-ijs \ |
178 |
+ --with-jbig2dec \ |
179 |
+ --with-libpaper \ |
180 |
+ --with-system-libtiff \ |
181 |
+ --without-luratech \ |
182 |
+ $(use_enable cups) \ |
183 |
+ $(use_enable dbus) \ |
184 |
+ $(use_enable gtk) \ |
185 |
+ $(use_with cups pdftoraster) \ |
186 |
+ $(use_with unicode libidn) \ |
187 |
+ $(use_with X x) |
188 |
+ |
189 |
+ cd "${S}/ijs" || die |
190 |
+ econf \ |
191 |
+ --enable-shared \ |
192 |
+ $(use_enable static-libs static) |
193 |
+} |
194 |
+ |
195 |
+src_compile() { |
196 |
+ emake so all |
197 |
+ |
198 |
+ cd ijs || die |
199 |
+ emake |
200 |
+} |
201 |
+ |
202 |
+src_install() { |
203 |
+ emake DESTDIR="${D}" install-so install |
204 |
+ |
205 |
+ # move gsc to gs, bug #343447 |
206 |
+ # gsc collides with gambit, bug #253064 |
207 |
+ mv -f "${ED}"/usr/bin/{gsc,gs} || die |
208 |
+ |
209 |
+ cd "${S}/ijs" || die |
210 |
+ emake DESTDIR="${D}" install |
211 |
+ |
212 |
+ # install the CMaps from poppler-data properly, bug #409361 |
213 |
+ dosym ../../../poppler/cMaps "/usr/share/ghostscript/${PVM}/Resource/CMap" |
214 |
+ |
215 |
+ if ! use static-libs; then |
216 |
+ find "${ED}" -name '*.la' -delete || die |
217 |
+ fi |
218 |
+ |
219 |
+ if ! use l10n_de; then |
220 |
+ rm -r "${ED}"/usr/share/man/de || die |
221 |
+ fi |
222 |
+} |