1 |
commit: f595c046c03d5e1dfc4598e49bcde72e24dda797 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 1 18:08:35 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 1 18:08:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f595c046 |
7 |
|
8 |
sys-libs/zlib: drop old |
9 |
|
10 |
Closes: https://bugs.gentoo.org/766606 |
11 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
sys-libs/zlib/zlib-1.2.11-r2.ebuild | 123 ------------------------------------ |
15 |
1 file changed, 123 deletions(-) |
16 |
|
17 |
diff --git a/sys-libs/zlib/zlib-1.2.11-r2.ebuild b/sys-libs/zlib/zlib-1.2.11-r2.ebuild |
18 |
deleted file mode 100644 |
19 |
index b43e10d3609..00000000000 |
20 |
--- a/sys-libs/zlib/zlib-1.2.11-r2.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,123 +0,0 @@ |
23 |
-# Copyright 1999-2020 Gentoo Authors |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI="5" |
27 |
-AUTOTOOLS_AUTO_DEPEND="no" |
28 |
- |
29 |
-inherit autotools toolchain-funcs multilib multilib-minimal usr-ldscript |
30 |
- |
31 |
-DESCRIPTION="Standard (de)compression library" |
32 |
-HOMEPAGE="https://zlib.net/" |
33 |
-SRC_URI="https://zlib.net/${P}.tar.gz |
34 |
- http://www.gzip.org/zlib/${P}.tar.gz |
35 |
- http://www.zlib.net/current/beta/${P}.tar.gz" |
36 |
- |
37 |
-LICENSE="ZLIB" |
38 |
-SLOT="0/1" # subslot = SONAME |
39 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86" |
40 |
-IUSE="minizip static-libs" |
41 |
- |
42 |
-DEPEND="minizip? ( ${AUTOTOOLS_DEPEND} )" |
43 |
-RDEPEND="!<dev-libs/libxml2-2.7.7" #309623 |
44 |
- |
45 |
-src_prepare() { |
46 |
- epatch "${FILESDIR}"/${PN}-1.2.11-fix-deflateParams-usage.patch |
47 |
- epatch "${FILESDIR}"/${PN}-1.2.11-minizip-drop-crypt-header.patch #658536 |
48 |
- |
49 |
- if use minizip ; then |
50 |
- cd contrib/minizip || die |
51 |
- eautoreconf |
52 |
- fi |
53 |
- |
54 |
- case ${CHOST} in |
55 |
- *-mingw*|mingw*) |
56 |
- # uses preconfigured Makefile rather than configure script |
57 |
- multilib_copy_sources |
58 |
- ;; |
59 |
- esac |
60 |
-} |
61 |
- |
62 |
-echoit() { echo "$@"; "$@"; } |
63 |
- |
64 |
-multilib_src_configure() { |
65 |
- case ${CHOST} in |
66 |
- *-mingw*|mingw*) |
67 |
- ;; |
68 |
- *) # not an autoconf script, so can't use econf |
69 |
- local uname=$("${EPREFIX}"/usr/share/gnuconfig/config.sub "${CHOST}" | cut -d- -f3) #347167 |
70 |
- echoit "${S}"/configure \ |
71 |
- --shared \ |
72 |
- --prefix="${EPREFIX}/usr" \ |
73 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
74 |
- ${uname:+--uname=${uname}} \ |
75 |
- || die |
76 |
- ;; |
77 |
- esac |
78 |
- |
79 |
- if use minizip ; then |
80 |
- local minizipdir="contrib/minizip" |
81 |
- mkdir -p "${BUILD_DIR}/${minizipdir}" || die |
82 |
- cd ${minizipdir} || die |
83 |
- ECONF_SOURCE="${S}/${minizipdir}" \ |
84 |
- econf $(use_enable static-libs static) |
85 |
- fi |
86 |
-} |
87 |
- |
88 |
-multilib_src_compile() { |
89 |
- case ${CHOST} in |
90 |
- *-mingw*|mingw*) |
91 |
- emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}- |
92 |
- sed \ |
93 |
- -e 's|@prefix@|/usr|g' \ |
94 |
- -e 's|@exec_prefix@|${prefix}|g' \ |
95 |
- -e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \ |
96 |
- -e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \ |
97 |
- -e 's|@includedir@|${prefix}/include|g' \ |
98 |
- -e 's|@VERSION@|'${PV}'|g' \ |
99 |
- zlib.pc.in > zlib.pc || die |
100 |
- ;; |
101 |
- *) |
102 |
- emake |
103 |
- ;; |
104 |
- esac |
105 |
- use minizip && emake -C contrib/minizip |
106 |
-} |
107 |
- |
108 |
-sed_macros() { |
109 |
- # clean up namespace a little #383179 |
110 |
- # we do it here so we only have to tweak 2 files |
111 |
- sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die |
112 |
-} |
113 |
- |
114 |
-multilib_src_install() { |
115 |
- case ${CHOST} in |
116 |
- *-mingw*|mingw*) |
117 |
- emake -f win32/Makefile.gcc install \ |
118 |
- BINARY_PATH="${ED}/usr/bin" \ |
119 |
- LIBRARY_PATH="${ED}/usr/$(get_libdir)" \ |
120 |
- INCLUDE_PATH="${ED}/usr/include" \ |
121 |
- SHARED_MODE=1 |
122 |
- # overwrites zlib.pc created from win32/Makefile.gcc #620136 |
123 |
- insinto /usr/$(get_libdir)/pkgconfig |
124 |
- doins zlib.pc |
125 |
- ;; |
126 |
- |
127 |
- *) |
128 |
- emake install DESTDIR="${D}" LDCONFIG=: |
129 |
- gen_usr_ldscript -a z |
130 |
- ;; |
131 |
- esac |
132 |
- sed_macros "${ED}"/usr/include/*.h |
133 |
- |
134 |
- if use minizip ; then |
135 |
- emake -C contrib/minizip install DESTDIR="${D}" |
136 |
- sed_macros "${ED}"/usr/include/minizip/*.h |
137 |
- fi |
138 |
- |
139 |
- use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib{z,minizip}.{a,la} #419645 |
140 |
-} |
141 |
- |
142 |
-multilib_src_install_all() { |
143 |
- dodoc FAQ README ChangeLog doc/*.txt |
144 |
- use minizip && dodoc contrib/minizip/*.txt |
145 |
-} |