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