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