Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/zlib: ChangeLog zlib-1.2.6.ebuild
Date: Mon, 30 Jan 2012 06:48:06
Message-Id: 20120130064757.39A1C2004B@flycatcher.gentoo.org
1 vapier 12/01/30 06:47:57
2
3 Modified: ChangeLog
4 Added: zlib-1.2.6.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.98 sys-libs/zlib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/zlib/ChangeLog?rev=1.98&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/zlib/ChangeLog?rev=1.98&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/zlib/ChangeLog?r1=1.97&r2=1.98
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/zlib/ChangeLog,v
20 retrieving revision 1.97
21 retrieving revision 1.98
22 diff -u -r1.97 -r1.98
23 --- ChangeLog 23 Sep 2011 17:52:32 -0000 1.97
24 +++ ChangeLog 30 Jan 2012 06:47:57 -0000 1.98
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/zlib
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/ChangeLog,v 1.97 2011/09/23 17:52:32 jlec Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/ChangeLog,v 1.98 2012/01/30 06:47:57 vapier Exp $
31 +
32 +*zlib-1.2.6 (30 Jan 2012)
33 +
34 + 30 Jan 2012; Mike Frysinger <vapier@g.o> +zlib-1.2.6.ebuild:
35 + Version bump.
36
37 23 Sep 2011; Justin Lecher <jlec@g.o> zlib-1.2.5.1-r2.ebuild,
38 metadata.xml:
39
40
41
42 1.1 sys-libs/zlib/zlib-1.2.6.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/zlib/zlib-1.2.6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/zlib/zlib-1.2.6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: zlib-1.2.6.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.6.ebuild,v 1.1 2012/01/30 06:47:57 vapier Exp $
52
53 AUTOTOOLS_AUTO_DEPEND="no"
54 inherit autotools eutils toolchain-funcs
55
56 DESCRIPTION="Standard (de)compression library"
57 HOMEPAGE="http://www.zlib.net/"
58 SRC_URI="http://zlib.net/${P}.tar.gz
59 http://www.gzip.org/zlib/${P}.tar.gz
60 http://www.zlib.net/current/beta/${P}.tar.gz"
61
62 LICENSE="ZLIB"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
65 IUSE="minizip static-libs"
66
67 DEPEND="minizip? ( ${AUTOTOOLS_DEPEND} )"
68 RDEPEND="!<dev-libs/libxml2-2.7.7" #309623
69
70 src_unpack() {
71 unpack ${A}
72 cd "${S}"
73
74 if use minizip ; then
75 cd contrib/minizip
76 eautoreconf
77 fi
78 }
79
80 echoit() { echo "$@"; "$@"; }
81 src_compile() {
82 case ${CHOST} in
83 *-mingw*|mingw*)
84 emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}- || die
85 sed \
86 -e 's|@prefix@|/usr|g' \
87 -e 's|@exec_prefix@|${prefix}|g' \
88 -e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \
89 -e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \
90 -e 's|@includedir@|${prefix}/include|g' \
91 -e 's|@VERSION@|'${PV}'|g' \
92 zlib.pc.in > zlib.pc || die
93 ;;
94 *) # not an autoconf script, so can't use econf
95 echoit ./configure --shared --prefix=/usr --libdir=/usr/$(get_libdir) || die
96 emake || die
97 ;;
98 esac
99 if use minizip ; then
100 cd contrib/minizip
101 econf $(use_enable static-libs static)
102 emake || die
103 fi
104 }
105
106 sed_macros() {
107 # clean up namespace a little #383179
108 # we do it here so we only have to tweak 2 files
109 sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die
110 }
111 src_install() {
112 case ${CHOST} in
113 *-mingw*|mingw*)
114 emake -f win32/Makefile.gcc install \
115 BINARY_PATH="${D}/usr/bin" \
116 LIBRARY_PATH="${D}/usr/$(get_libdir)" \
117 INCLUDE_PATH="${D}/usr/include" \
118 SHARED_MODE=1 \
119 || die
120 insinto /usr/share/pkgconfig
121 doins zlib.pc || die
122 ;;
123
124 *)
125 emake install DESTDIR="${D}" LDCONFIG=: || die
126 gen_usr_ldscript -a z
127 sed_macros "${D}"/usr/include/*.h
128 ;;
129 esac
130
131 dodoc FAQ README ChangeLog doc/*.txt
132
133 if use minizip ; then
134 cd contrib/minizip
135 emake install DESTDIR="${D}" || die
136 sed_macros "${D}"/usr/include/minizip/*.h
137 dodoc *.txt
138 fi
139
140 use static-libs || rm -f "${D}"/usr/$(get_libdir)/*.{a,la}
141 }