1 |
commit: a45d9ec6a1ebfa9e49ad1f0842f54128e54c8f03 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 02:02:45 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 02:08:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a45d9ec6 |
7 |
|
8 |
sys-libs/zlib: drop 1.2.11-r4, 1.2.11-r5, 1.2.12-r2 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-libs/zlib/Manifest | 1 - |
13 |
sys-libs/zlib/zlib-1.2.11-r4.ebuild | 168 ------------------------------- |
14 |
sys-libs/zlib/zlib-1.2.11-r5.ebuild | 169 ------------------------------- |
15 |
sys-libs/zlib/zlib-1.2.12-r2.ebuild | 196 ------------------------------------ |
16 |
4 files changed, 534 deletions(-) |
17 |
|
18 |
diff --git a/sys-libs/zlib/Manifest b/sys-libs/zlib/Manifest |
19 |
index fda947e4d9d9..64bfa1e36767 100644 |
20 |
--- a/sys-libs/zlib/Manifest |
21 |
+++ b/sys-libs/zlib/Manifest |
22 |
@@ -1,5 +1,4 @@ |
23 |
DIST zlib-1.2.11-cygwin-gzopen_w.patch 1170 BLAKE2B fe351436716634bd823da8c2811d332327d335d450d89bee85d7713b09dd454fe6aee264b044a41bf3be603aa36d67943ba6c7d8b46470e180e9b639728b5274 SHA512 14cc63a17fbf6afb6c8a8dd0b92df9807b48e0faf09c88f952083f10716ae62be8de2a0e1424b77fb538605b88898b381160521f2872afdda59e12bd27535c5a |
24 |
-DIST zlib-1.2.11.tar.gz 607698 BLAKE2B 6bfc4bca5dcadba8a0d4121a2b3ed0bfe440c261003521862c8e6381f1a6f0a72d3fc037351d30afd7ef321e8e8d2ec817c046ac749f2ca0c97fbdc2f7e840b7 SHA512 73fd3fff4adeccd4894084c15ddac89890cd10ef105dd5e1835e1e9bbb6a49ff229713bd197d203edfa17c2727700fce65a2a235f07568212d820dca88b528ae |
25 |
DIST zlib-1.2.12.tar.gz 1490071 BLAKE2B 76e7b26f8dc761b0eae6276cc32bc36fa74a88197699c95d158c1548f97b80db5e39d21144ecd6ee3eb90c42730aa5f387f9952d9a3f0930b56e9dfcd12f1e67 SHA512 cc2366fa45d5dfee1f983c8c51515e0cff959b61471e2e8d24350dea22d3f6fcc50723615a911b046ffc95f51ba337d39ae402131a55e6d1541d3b095d6c0a14 |
26 |
DIST zlib-1.2.12.tar.gz.asc 235 BLAKE2B bb1efc89b10b894ebc8e8008ee3e98104348f197fae54d298d62057a2d8b8d7246de937962b531189f80ad64a803112300a73862cba121cbf6a6d5ac5f9bc40c SHA512 5c1144371a83b83f9f1d008aa9297e23c0db992cab6c4a8966f9320e70c6186867d62753511d6a663b0fe181cd37fe256c53586358a42ea348ccc0747b1a7153 |
27 |
DIST zlib-1.2.7-cygwin-minizip.patch 2626 BLAKE2B 885f1fda877c0b783618b163702fb46126b7db572767cd4edb86bd92db1f432c887ef1724e70c8319c26886368dba3a962af5284ec0875c20ec8ad2245fd100a SHA512 e372f1e06311e843eca2092e182c41abb009b5e9880b60292d708e4bc0de5a9e4c43d49b25b0c09df4784bc46a1254472bc5cdbdd8d6c762a9f6a145a555bfe7 |
28 |
|
29 |
diff --git a/sys-libs/zlib/zlib-1.2.11-r4.ebuild b/sys-libs/zlib/zlib-1.2.11-r4.ebuild |
30 |
deleted file mode 100644 |
31 |
index f81dba33f73c..000000000000 |
32 |
--- a/sys-libs/zlib/zlib-1.2.11-r4.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,168 +0,0 @@ |
35 |
-# Copyright 1999-2022 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=7 |
39 |
- |
40 |
-AUTOTOOLS_AUTO_DEPEND="no" |
41 |
-inherit autotools multilib-minimal usr-ldscript |
42 |
- |
43 |
-CYGWINPATCHES=( |
44 |
- "https://github.com/cygwinports/zlib/raw/22a3462cae33a82ad966ea0a7d6cbe8fc1368fec/1.2.11-gzopen_w.patch -> ${PN}-1.2.11-cygwin-gzopen_w.patch" |
45 |
- "https://github.com/cygwinports/zlib/raw/22a3462cae33a82ad966ea0a7d6cbe8fc1368fec/1.2.7-minizip-cygwin.patch -> ${PN}-1.2.7-cygwin-minizip.patch" |
46 |
-) |
47 |
- |
48 |
-DESCRIPTION="Standard (de)compression library" |
49 |
-HOMEPAGE="https://zlib.net/" |
50 |
-SRC_URI="https://zlib.net/${P}.tar.gz |
51 |
- https://zlib.net/fossils/${P}.tar.gz |
52 |
- http://www.gzip.org/zlib/${P}.tar.gz |
53 |
- http://www.zlib.net/current/beta/${P}.tar.gz |
54 |
- elibc_Cygwin? ( ${CYGWINPATCHES[*]} )" |
55 |
- |
56 |
-LICENSE="ZLIB" |
57 |
-SLOT="0/1" # subslot = SONAME |
58 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
59 |
-IUSE="minizip static-libs" |
60 |
- |
61 |
-BDEPEND="minizip? ( ${AUTOTOOLS_DEPEND} )" |
62 |
-# See #309623 for libxml2 |
63 |
-RDEPEND=" |
64 |
- !<dev-libs/libxml2-2.7.7 |
65 |
- !sys-libs/zlib-ng[compat] |
66 |
-" |
67 |
-DEPEND="${RDEPEND}" |
68 |
- |
69 |
-PATCHES=( |
70 |
- "${FILESDIR}"/${PN}-1.2.11-fix-deflateParams-usage.patch |
71 |
- "${FILESDIR}"/${PN}-1.2.11-minizip-drop-crypt-header.patch #658536 |
72 |
-) |
73 |
- |
74 |
-src_prepare() { |
75 |
- default |
76 |
- |
77 |
- if use elibc_Cygwin ; then |
78 |
- local p |
79 |
- for p in "${CYGWINPATCHES[@]}" ; do |
80 |
- # Strip out the "... -> " from the array |
81 |
- eapply -p2 "${DISTDIR}/${p#*> }" |
82 |
- done |
83 |
- fi |
84 |
- |
85 |
- if use minizip ; then |
86 |
- cd contrib/minizip || die |
87 |
- eautoreconf |
88 |
- fi |
89 |
- |
90 |
- case ${CHOST} in |
91 |
- *-cygwin*) |
92 |
- # do not use _wopen, is a mingw symbol only |
93 |
- sed -i -e '/define WIDECHAR/d' "${S}"/gzguts.h || die |
94 |
- # zlib1.dll is the mingw name, need cygz.dll |
95 |
- # cygz.dll is loaded by toolchain, put into subdir |
96 |
- sed -i -e 's|zlib1.dll|win32/cygz.dll|' win32/Makefile.gcc || die |
97 |
- ;; |
98 |
- esac |
99 |
- |
100 |
- case ${CHOST} in |
101 |
- *-mingw*|mingw*|*-cygwin*) |
102 |
- # uses preconfigured Makefile rather than configure script |
103 |
- multilib_copy_sources |
104 |
- ;; |
105 |
- esac |
106 |
-} |
107 |
- |
108 |
-echoit() { echo "$@"; "$@"; } |
109 |
- |
110 |
-multilib_src_configure() { |
111 |
- case ${CHOST} in |
112 |
- *-mingw*|mingw*|*-cygwin*) |
113 |
- ;; |
114 |
- *) |
115 |
- local uname=$("${EPREFIX}"/usr/share/gnuconfig/config.sub "${CHOST}" | cut -d- -f3) #347167 |
116 |
- local myconf=( |
117 |
- --shared |
118 |
- --prefix="${EPREFIX}/usr" |
119 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" |
120 |
- ${uname:+--uname=${uname}} |
121 |
- ) |
122 |
- # not an autoconf script, so can't use econf |
123 |
- echoit "${S}"/configure "${myconf[@]}" || die |
124 |
- ;; |
125 |
- esac |
126 |
- |
127 |
- if use minizip ; then |
128 |
- local minizipdir="contrib/minizip" |
129 |
- mkdir -p "${BUILD_DIR}/${minizipdir}" || die |
130 |
- cd ${minizipdir} || die |
131 |
- ECONF_SOURCE="${S}/${minizipdir}" \ |
132 |
- econf $(use_enable static-libs static) |
133 |
- fi |
134 |
-} |
135 |
- |
136 |
-multilib_src_compile() { |
137 |
- case ${CHOST} in |
138 |
- *-mingw*|mingw*|*-cygwin*) |
139 |
- emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}- |
140 |
- sed \ |
141 |
- -e 's|@prefix@|'"${EPREFIX}"'/usr|g' \ |
142 |
- -e 's|@exec_prefix@|${prefix}|g' \ |
143 |
- -e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \ |
144 |
- -e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \ |
145 |
- -e 's|@includedir@|${prefix}/include|g' \ |
146 |
- -e 's|@VERSION@|'${PV}'|g' \ |
147 |
- zlib.pc.in > zlib.pc || die |
148 |
- ;; |
149 |
- *) |
150 |
- emake |
151 |
- ;; |
152 |
- esac |
153 |
- use minizip && emake -C contrib/minizip |
154 |
-} |
155 |
- |
156 |
-sed_macros() { |
157 |
- # clean up namespace a little #383179 |
158 |
- # we do it here so we only have to tweak 2 files |
159 |
- sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die |
160 |
-} |
161 |
- |
162 |
-multilib_src_install() { |
163 |
- case ${CHOST} in |
164 |
- *-mingw*|mingw*|*-cygwin*) |
165 |
- emake -f win32/Makefile.gcc install \ |
166 |
- BINARY_PATH="${ED}/usr/bin" \ |
167 |
- LIBRARY_PATH="${ED}/usr/$(get_libdir)" \ |
168 |
- INCLUDE_PATH="${ED}/usr/include" \ |
169 |
- SHARED_MODE=1 |
170 |
- # overwrites zlib.pc created from win32/Makefile.gcc #620136 |
171 |
- insinto /usr/$(get_libdir)/pkgconfig |
172 |
- doins zlib.pc |
173 |
- ;; |
174 |
- |
175 |
- *) |
176 |
- emake install DESTDIR="${D}" LDCONFIG=: |
177 |
- gen_usr_ldscript -a z |
178 |
- ;; |
179 |
- esac |
180 |
- sed_macros "${ED}"/usr/include/*.h |
181 |
- |
182 |
- if use minizip ; then |
183 |
- emake -C contrib/minizip install DESTDIR="${D}" |
184 |
- sed_macros "${ED}"/usr/include/minizip/*.h |
185 |
- fi |
186 |
- |
187 |
- if use minizip; then |
188 |
- # This might not exist if slibtool is used. |
189 |
- # https://bugs.gentoo.org/816756 |
190 |
- rm -f "${ED}"/usr/$(get_libdir)/libminizip.la || die |
191 |
- fi |
192 |
- |
193 |
- if ! use static-libs ; then |
194 |
- # https://bugs.gentoo.org/419645 |
195 |
- rm "${ED}"/usr/$(get_libdir)/libz.a || die |
196 |
- fi |
197 |
-} |
198 |
- |
199 |
-multilib_src_install_all() { |
200 |
- dodoc FAQ README ChangeLog doc/*.txt |
201 |
- use minizip && dodoc contrib/minizip/*.txt |
202 |
-} |
203 |
|
204 |
diff --git a/sys-libs/zlib/zlib-1.2.11-r5.ebuild b/sys-libs/zlib/zlib-1.2.11-r5.ebuild |
205 |
deleted file mode 100644 |
206 |
index c24cdc4a3552..000000000000 |
207 |
--- a/sys-libs/zlib/zlib-1.2.11-r5.ebuild |
208 |
+++ /dev/null |
209 |
@@ -1,169 +0,0 @@ |
210 |
-# Copyright 1999-2022 Gentoo Authors |
211 |
-# Distributed under the terms of the GNU General Public License v2 |
212 |
- |
213 |
-EAPI=7 |
214 |
- |
215 |
-AUTOTOOLS_AUTO_DEPEND="no" |
216 |
-inherit autotools multilib-minimal usr-ldscript |
217 |
- |
218 |
-CYGWINPATCHES=( |
219 |
- "https://github.com/cygwinports/zlib/raw/22a3462cae33a82ad966ea0a7d6cbe8fc1368fec/1.2.11-gzopen_w.patch -> ${PN}-1.2.11-cygwin-gzopen_w.patch" |
220 |
- "https://github.com/cygwinports/zlib/raw/22a3462cae33a82ad966ea0a7d6cbe8fc1368fec/1.2.7-minizip-cygwin.patch -> ${PN}-1.2.7-cygwin-minizip.patch" |
221 |
-) |
222 |
- |
223 |
-DESCRIPTION="Standard (de)compression library" |
224 |
-HOMEPAGE="https://zlib.net/" |
225 |
-SRC_URI="https://zlib.net/${P}.tar.gz |
226 |
- https://zlib.net/fossils/${P}.tar.gz |
227 |
- http://www.gzip.org/zlib/${P}.tar.gz |
228 |
- http://www.zlib.net/current/beta/${P}.tar.gz |
229 |
- elibc_Cygwin? ( ${CYGWINPATCHES[*]} )" |
230 |
- |
231 |
-LICENSE="ZLIB" |
232 |
-SLOT="0/1" # subslot = SONAME |
233 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
234 |
-IUSE="minizip static-libs" |
235 |
- |
236 |
-BDEPEND="minizip? ( ${AUTOTOOLS_DEPEND} )" |
237 |
-# See #309623 for libxml2 |
238 |
-RDEPEND=" |
239 |
- !<dev-libs/libxml2-2.7.7 |
240 |
- !sys-libs/zlib-ng[compat] |
241 |
-" |
242 |
-DEPEND="${RDEPEND}" |
243 |
- |
244 |
-PATCHES=( |
245 |
- "${FILESDIR}"/${PN}-1.2.11-fix-deflateParams-usage.patch |
246 |
- "${FILESDIR}"/${PN}-1.2.11-minizip-drop-crypt-header.patch #658536 |
247 |
- "${FILESDIR}"/${PN}-1.2.11-configure-fix-AR-RANLIB-NM-detection.patch #831628 |
248 |
-) |
249 |
- |
250 |
-src_prepare() { |
251 |
- default |
252 |
- |
253 |
- if use elibc_Cygwin ; then |
254 |
- local p |
255 |
- for p in "${CYGWINPATCHES[@]}" ; do |
256 |
- # Strip out the "... -> " from the array |
257 |
- eapply -p2 "${DISTDIR}/${p#*> }" |
258 |
- done |
259 |
- fi |
260 |
- |
261 |
- if use minizip ; then |
262 |
- cd contrib/minizip || die |
263 |
- eautoreconf |
264 |
- fi |
265 |
- |
266 |
- case ${CHOST} in |
267 |
- *-cygwin*) |
268 |
- # do not use _wopen, is a mingw symbol only |
269 |
- sed -i -e '/define WIDECHAR/d' "${S}"/gzguts.h || die |
270 |
- # zlib1.dll is the mingw name, need cygz.dll |
271 |
- # cygz.dll is loaded by toolchain, put into subdir |
272 |
- sed -i -e 's|zlib1.dll|win32/cygz.dll|' win32/Makefile.gcc || die |
273 |
- ;; |
274 |
- esac |
275 |
- |
276 |
- case ${CHOST} in |
277 |
- *-mingw*|mingw*|*-cygwin*) |
278 |
- # uses preconfigured Makefile rather than configure script |
279 |
- multilib_copy_sources |
280 |
- ;; |
281 |
- esac |
282 |
-} |
283 |
- |
284 |
-echoit() { echo "$@"; "$@"; } |
285 |
- |
286 |
-multilib_src_configure() { |
287 |
- case ${CHOST} in |
288 |
- *-mingw*|mingw*|*-cygwin*) |
289 |
- ;; |
290 |
- *) |
291 |
- local uname=$("${EPREFIX}"/usr/share/gnuconfig/config.sub "${CHOST}" | cut -d- -f3) #347167 |
292 |
- local myconf=( |
293 |
- --shared |
294 |
- --prefix="${EPREFIX}/usr" |
295 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" |
296 |
- ${uname:+--uname=${uname}} |
297 |
- ) |
298 |
- # not an autoconf script, so can't use econf |
299 |
- echoit "${S}"/configure "${myconf[@]}" || die |
300 |
- ;; |
301 |
- esac |
302 |
- |
303 |
- if use minizip ; then |
304 |
- local minizipdir="contrib/minizip" |
305 |
- mkdir -p "${BUILD_DIR}/${minizipdir}" || die |
306 |
- cd ${minizipdir} || die |
307 |
- ECONF_SOURCE="${S}/${minizipdir}" \ |
308 |
- econf $(use_enable static-libs static) |
309 |
- fi |
310 |
-} |
311 |
- |
312 |
-multilib_src_compile() { |
313 |
- case ${CHOST} in |
314 |
- *-mingw*|mingw*|*-cygwin*) |
315 |
- emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}- |
316 |
- sed \ |
317 |
- -e 's|@prefix@|'"${EPREFIX}"'/usr|g' \ |
318 |
- -e 's|@exec_prefix@|${prefix}|g' \ |
319 |
- -e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \ |
320 |
- -e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \ |
321 |
- -e 's|@includedir@|${prefix}/include|g' \ |
322 |
- -e 's|@VERSION@|'${PV}'|g' \ |
323 |
- zlib.pc.in > zlib.pc || die |
324 |
- ;; |
325 |
- *) |
326 |
- emake |
327 |
- ;; |
328 |
- esac |
329 |
- use minizip && emake -C contrib/minizip |
330 |
-} |
331 |
- |
332 |
-sed_macros() { |
333 |
- # clean up namespace a little #383179 |
334 |
- # we do it here so we only have to tweak 2 files |
335 |
- sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die |
336 |
-} |
337 |
- |
338 |
-multilib_src_install() { |
339 |
- case ${CHOST} in |
340 |
- *-mingw*|mingw*|*-cygwin*) |
341 |
- emake -f win32/Makefile.gcc install \ |
342 |
- BINARY_PATH="${ED}/usr/bin" \ |
343 |
- LIBRARY_PATH="${ED}/usr/$(get_libdir)" \ |
344 |
- INCLUDE_PATH="${ED}/usr/include" \ |
345 |
- SHARED_MODE=1 |
346 |
- # overwrites zlib.pc created from win32/Makefile.gcc #620136 |
347 |
- insinto /usr/$(get_libdir)/pkgconfig |
348 |
- doins zlib.pc |
349 |
- ;; |
350 |
- |
351 |
- *) |
352 |
- emake install DESTDIR="${D}" LDCONFIG=: |
353 |
- gen_usr_ldscript -a z |
354 |
- ;; |
355 |
- esac |
356 |
- sed_macros "${ED}"/usr/include/*.h |
357 |
- |
358 |
- if use minizip ; then |
359 |
- emake -C contrib/minizip install DESTDIR="${D}" |
360 |
- sed_macros "${ED}"/usr/include/minizip/*.h |
361 |
- fi |
362 |
- |
363 |
- if use minizip; then |
364 |
- # This might not exist if slibtool is used. |
365 |
- # https://bugs.gentoo.org/816756 |
366 |
- rm -f "${ED}"/usr/$(get_libdir)/libminizip.la || die |
367 |
- fi |
368 |
- |
369 |
- if ! use static-libs ; then |
370 |
- # https://bugs.gentoo.org/419645 |
371 |
- rm "${ED}"/usr/$(get_libdir)/libz.a || die |
372 |
- fi |
373 |
-} |
374 |
- |
375 |
-multilib_src_install_all() { |
376 |
- dodoc FAQ README ChangeLog doc/*.txt |
377 |
- use minizip && dodoc contrib/minizip/*.txt |
378 |
-} |
379 |
|
380 |
diff --git a/sys-libs/zlib/zlib-1.2.12-r2.ebuild b/sys-libs/zlib/zlib-1.2.12-r2.ebuild |
381 |
deleted file mode 100644 |
382 |
index 5741a146d6fb..000000000000 |
383 |
--- a/sys-libs/zlib/zlib-1.2.12-r2.ebuild |
384 |
+++ /dev/null |
385 |
@@ -1,196 +0,0 @@ |
386 |
-# Copyright 1999-2022 Gentoo Authors |
387 |
-# Distributed under the terms of the GNU General Public License v2 |
388 |
- |
389 |
-EAPI=7 |
390 |
- |
391 |
-# Worth keeping an eye on 'develop' branch upstream for possible backports. |
392 |
-AUTOTOOLS_AUTO_DEPEND="no" |
393 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/madler.asc |
394 |
-inherit autotools multilib-minimal usr-ldscript verify-sig |
395 |
- |
396 |
-CYGWINPATCHES=( |
397 |
- "https://github.com/cygwinports/zlib/raw/22a3462cae33a82ad966ea0a7d6cbe8fc1368fec/1.2.11-gzopen_w.patch -> ${PN}-1.2.11-cygwin-gzopen_w.patch" |
398 |
- "https://github.com/cygwinports/zlib/raw/22a3462cae33a82ad966ea0a7d6cbe8fc1368fec/1.2.7-minizip-cygwin.patch -> ${PN}-1.2.7-cygwin-minizip.patch" |
399 |
-) |
400 |
- |
401 |
-DESCRIPTION="Standard (de)compression library" |
402 |
-HOMEPAGE="https://zlib.net/" |
403 |
-SRC_URI="https://zlib.net/${P}.tar.gz |
404 |
- https://zlib.net/fossils/${P}.tar.gz |
405 |
- https://www.gzip.org/zlib/${P}.tar.gz |
406 |
- https://www.zlib.net/current/beta/${P}.tar.gz |
407 |
- verify-sig? ( https://zlib.net/${P}.tar.gz.asc ) |
408 |
- elibc_Cygwin? ( ${CYGWINPATCHES[*]} )" |
409 |
- |
410 |
-LICENSE="ZLIB" |
411 |
-SLOT="0/1" # subslot = SONAME |
412 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
413 |
-IUSE="minizip static-libs" |
414 |
- |
415 |
-RDEPEND="!sys-libs/zlib-ng[compat]" |
416 |
-DEPEND="${RDEPEND}" |
417 |
-BDEPEND="minizip? ( ${AUTOTOOLS_DEPEND} ) |
418 |
- verify-sig? ( sec-keys/openpgp-keys-madler )" |
419 |
- |
420 |
-PATCHES=( |
421 |
- # Don't install unexpected & unused crypt.h header (which would clash with other pkgs) |
422 |
- # Pending upstream. bug #658536 |
423 |
- "${FILESDIR}"/${PN}-1.2.11-minizip-drop-crypt-header.patch |
424 |
- |
425 |
- # Respect AR, RANLIB, NM during build. Pending upstream. bug #831628 |
426 |
- "${FILESDIR}"/${PN}-1.2.11-configure-fix-AR-RANLIB-NM-detection.patch |
427 |
- |
428 |
- # Respect LDFLAGS during configure tests. Pending upstream |
429 |
- "${FILESDIR}"/${PN}-1.2.12-use-LDFLAGS-in-configure.patch |
430 |
- |
431 |
- # Fix broken CC logic |
432 |
- "${FILESDIR}"/${P}-fix-CC-logic-in-configure.patch |
433 |
- |
434 |
- # Backport for Java (and others), bug #836370 |
435 |
- "${FILESDIR}"/${P}-CRC-buggy-input.patch |
436 |
-) |
437 |
- |
438 |
-src_prepare() { |
439 |
- default |
440 |
- |
441 |
- if use elibc_Cygwin ; then |
442 |
- local p |
443 |
- for p in "${CYGWINPATCHES[@]}" ; do |
444 |
- # Strip out the "... -> " from the array |
445 |
- eapply -p2 "${DISTDIR}/${p#*> }" |
446 |
- done |
447 |
- fi |
448 |
- |
449 |
- if use minizip ; then |
450 |
- cd contrib/minizip || die |
451 |
- eautoreconf |
452 |
- fi |
453 |
- |
454 |
- case ${CHOST} in |
455 |
- *-cygwin*) |
456 |
- # Do not use _wopen, it's a mingw-only symbol |
457 |
- sed -i -e '/define WIDECHAR/d' "${S}"/gzguts.h || die |
458 |
- |
459 |
- # zlib1.dll is the mingw name, need cygz.dll |
460 |
- # cygz.dll is loaded by toolchain, put into subdir |
461 |
- sed -i -e 's|zlib1.dll|win32/cygz.dll|' win32/Makefile.gcc || die |
462 |
- |
463 |
- ;; |
464 |
- esac |
465 |
- |
466 |
- case ${CHOST} in |
467 |
- *-mingw*|mingw*|*-cygwin*) |
468 |
- # Uses preconfigured Makefile rather than configure script |
469 |
- multilib_copy_sources |
470 |
- |
471 |
- ;; |
472 |
- esac |
473 |
-} |
474 |
- |
475 |
-echoit() { echo "$@"; "$@"; } |
476 |
- |
477 |
-multilib_src_configure() { |
478 |
- case ${CHOST} in |
479 |
- *-mingw*|mingw*|*-cygwin*) |
480 |
- ;; |
481 |
- |
482 |
- *) |
483 |
- # bug #347167 |
484 |
- local uname=$("${BROOT}"/usr/share/gnuconfig/config.sub "${CHOST}" | cut -d- -f3) |
485 |
- |
486 |
- local myconf=( |
487 |
- --shared |
488 |
- --prefix="${EPREFIX}/usr" |
489 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" |
490 |
- ${uname:+--uname=${uname}} |
491 |
- ) |
492 |
- |
493 |
- # Not an autoconf script, so can't use econf |
494 |
- echoit "${S}"/configure "${myconf[@]}" || die |
495 |
- |
496 |
- ;; |
497 |
- esac |
498 |
- |
499 |
- if use minizip ; then |
500 |
- local minizipdir="contrib/minizip" |
501 |
- mkdir -p "${BUILD_DIR}/${minizipdir}" || die |
502 |
- |
503 |
- cd ${minizipdir} || die |
504 |
- ECONF_SOURCE="${S}/${minizipdir}" econf $(use_enable static-libs static) |
505 |
- fi |
506 |
-} |
507 |
- |
508 |
-multilib_src_compile() { |
509 |
- case ${CHOST} in |
510 |
- *-mingw*|mingw*|*-cygwin*) |
511 |
- emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}- |
512 |
- sed \ |
513 |
- -e 's|@prefix@|'"${EPREFIX}"'/usr|g' \ |
514 |
- -e 's|@exec_prefix@|${prefix}|g' \ |
515 |
- -e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \ |
516 |
- -e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \ |
517 |
- -e 's|@includedir@|${prefix}/include|g' \ |
518 |
- -e 's|@VERSION@|'${PV}'|g' \ |
519 |
- zlib.pc.in > zlib.pc || die |
520 |
- ;; |
521 |
- |
522 |
- *) |
523 |
- emake |
524 |
- |
525 |
- ;; |
526 |
- esac |
527 |
- |
528 |
- use minizip && emake -C contrib/minizip |
529 |
-} |
530 |
- |
531 |
-sed_macros() { |
532 |
- # Clean up namespace a little, bug #383179 |
533 |
- # We do it here so we only have to tweak 2 files |
534 |
- sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die |
535 |
-} |
536 |
- |
537 |
-multilib_src_install() { |
538 |
- case ${CHOST} in |
539 |
- *-mingw*|mingw*|*-cygwin*) |
540 |
- emake -f win32/Makefile.gcc install \ |
541 |
- BINARY_PATH="${ED}/usr/bin" \ |
542 |
- LIBRARY_PATH="${ED}/usr/$(get_libdir)" \ |
543 |
- INCLUDE_PATH="${ED}/usr/include" \ |
544 |
- SHARED_MODE=1 |
545 |
- |
546 |
- # Overwrites zlib.pc created from win32/Makefile.gcc, bug #620136 |
547 |
- insinto /usr/$(get_libdir)/pkgconfig |
548 |
- doins zlib.pc |
549 |
- |
550 |
- ;; |
551 |
- |
552 |
- *) |
553 |
- emake install DESTDIR="${D}" LDCONFIG=: |
554 |
- gen_usr_ldscript -a z |
555 |
- |
556 |
- ;; |
557 |
- esac |
558 |
- |
559 |
- sed_macros "${ED}"/usr/include/*.h |
560 |
- |
561 |
- if use minizip ; then |
562 |
- emake -C contrib/minizip install DESTDIR="${D}" |
563 |
- sed_macros "${ED}"/usr/include/minizip/*.h |
564 |
- fi |
565 |
- |
566 |
- if use minizip; then |
567 |
- # This might not exist if slibtool is used. |
568 |
- # bug #816756 |
569 |
- rm -f "${ED}"/usr/$(get_libdir)/libminizip.la || die |
570 |
- fi |
571 |
- |
572 |
- if ! use static-libs ; then |
573 |
- # bug #419645 |
574 |
- rm "${ED}"/usr/$(get_libdir)/libz.a || die |
575 |
- fi |
576 |
-} |
577 |
- |
578 |
-multilib_src_install_all() { |
579 |
- dodoc FAQ README ChangeLog doc/*.txt |
580 |
- use minizip && dodoc contrib/minizip/*.txt |
581 |
-} |