Gentoo Archives: gentoo-commits

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