Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

merge zlib from experimental

  • Loading branch information...
commit 97adb9680f16cf4b0c5f612df32413a756666a96 1 parent b81395a
Oleg authored October 11, 2012
11  sys-libs/zlib/Manifest
... ...
@@ -1,5 +1,6 @@
1  
-DIST zlib-1.2.3.tar.bz2 425209 RMD160 cfba9984b354dcc38da49331457e6bfc861c6f51 SHA1 967e280f284d02284b0cd8872a8e2e04bfdc7283 SHA256 e3b9950851a19904d642c4dec518623382cf4d2ac24f70a76510c944330d28ca
2  
-DIST zlib-1.2.4.tar.bz2 483564 RMD160 8f0f17e33e36fa1427f8186b6d12cf5b2240294a SHA1 8cf10521c1927daa5e12efc5e1725a0d70e579f3 SHA256 d0fc3433bb3ff5bbf1d2db57a328c0be39ac4a74d4b39887af522acf7ecd5ecc
3  
-DIST zlib-1.2.5.1.tar.gz 548499 RMD160 9f7d449167427c8add0b61a76a51bee164856592 SHA1 731b09322e18a3853e6b6b98b44175d7aed1e407 SHA256 c1f24a64f808528293cf04ba09a2dffbc3dd65ad7ebcee4737124ff8923756da
4  
-DIST zlib-1.2.5.tar.bz2 486374 RMD160 c6c4c2a2a205061b21487e69234106f5517b4b32 SHA1 543fa9abff0442edca308772d6cef85557677e02 SHA256 239aead2f22f16bfcfa6a6a5150dcbd6d6f2e4d1eaa8727b5769ea014120b307
5  
-DIST zlib-1.2.6.tar.gz 557220 RMD160 71845aad5ad9a0e290fa13c7325f45fa3682c7cb SHA1 38690375d8d42398ce33b2df726e25cacf096496 SHA256 21235e08552e6feba09ea5e8d750805b3391c62fb81c71a235c0044dc7a8a61b
  1
+DIST zlib-1.2.3.tar.bz2 425209 SHA256 e3b9950851a19904d642c4dec518623382cf4d2ac24f70a76510c944330d28ca
  2
+DIST zlib-1.2.4.tar.bz2 483564 SHA256 d0fc3433bb3ff5bbf1d2db57a328c0be39ac4a74d4b39887af522acf7ecd5ecc
  3
+DIST zlib-1.2.5.1.tar.gz 548499 SHA256 c1f24a64f808528293cf04ba09a2dffbc3dd65ad7ebcee4737124ff8923756da
  4
+DIST zlib-1.2.5.tar.bz2 486374 SHA256 239aead2f22f16bfcfa6a6a5150dcbd6d6f2e4d1eaa8727b5769ea014120b307
  5
+DIST zlib-1.2.6.tar.gz 557220 SHA256 21235e08552e6feba09ea5e8d750805b3391c62fb81c71a235c0044dc7a8a61b SHA512 f812ab3049fc2920a8da4649f6e60340ac365d58a0e76ace5219426aeb0759c0a474cfb2b9902cd0471158fa32a4d2c35692309d266e66013444bdced8ed00d9 WHIRLPOOL 9655627d9770b6850d33b18ef7dc349396454fc217b90d3f7c2ffdac028533ff741c3a70ee4280ef91baf67425d037e6559dcea1da4c568ca51df8e9b7ab6df3
  6
+DIST zlib-1.2.7.tar.gz 560351 SHA256 fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530b1595eed466e1be9b7e26c5 SHA512 b1c073ad26684e354f7c522c14655840592e03872bc0a94690f89cae2ff88f146fce1dad252ff27a889dac4a32ff9f8ab63ba940671f9da89e9ba3e19f1bf58d WHIRLPOOL 2f0bc05a9c14033adc33cdd14d1dce72a57c650304692141a89af26274b62ffa67d09afbc68562d07279f80e214e396b357f20094ecf4b9576bc200cafa01a6d
99  sys-libs/zlib/zlib-1.2.7.ebuild
... ...
@@ -0,0 +1,99 @@
  1
+# Copyright 1999-2012 Gentoo Foundation
  2
+# Distributed under the terms of the GNU General Public License v2
  3
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.7.ebuild,v 1.4 2012/08/18 23:27:03 vapier Exp $
  4
+
  5
+AUTOTOOLS_AUTO_DEPEND="no"
  6
+inherit autotools toolchain-funcs
  7
+
  8
+DESCRIPTION="Standard (de)compression library"
  9
+HOMEPAGE="http://www.zlib.net/"
  10
+SRC_URI="http://zlib.net/${P}.tar.gz
  11
+	http://www.gzip.org/zlib/${P}.tar.gz
  12
+	http://www.zlib.net/current/beta/${P}.tar.gz"
  13
+
  14
+LICENSE="ZLIB"
  15
+SLOT="0"
  16
+KEYWORDS="~*"
  17
+IUSE="minizip static-libs"
  18
+
  19
+DEPEND="minizip? ( ${AUTOTOOLS_DEPEND} )"
  20
+RDEPEND="!<dev-libs/libxml2-2.7.7" #309623
  21
+
  22
+src_unpack() {
  23
+	unpack ${A}
  24
+	cd "${S}"
  25
+
  26
+	if use minizip ; then
  27
+		cd contrib/minizip
  28
+		eautoreconf
  29
+	fi
  30
+}
  31
+
  32
+echoit() { echo "$@"; "$@"; }
  33
+src_compile() {
  34
+	case ${CHOST} in
  35
+	*-mingw*|mingw*)
  36
+		emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}- || die
  37
+		sed \
  38
+			-e 's|@prefix@|/usr|g' \
  39
+			-e 's|@exec_prefix@|${prefix}|g' \
  40
+			-e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \
  41
+			-e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \
  42
+			-e 's|@includedir@|${prefix}/include|g' \
  43
+			-e 's|@VERSION@|'${PV}'|g' \
  44
+			zlib.pc.in > zlib.pc || die
  45
+		;;
  46
+	*)	# not an autoconf script, so can't use econf
  47
+		local uname=$(/usr/share/gnuconfig/config.sub "${CHOST}" | cut -d- -f3) #347167
  48
+		echoit ./configure \
  49
+			--shared \
  50
+			--prefix=/usr \
  51
+			--libdir=/usr/$(get_libdir) \
  52
+			${uname:+--uname=${uname}} \
  53
+			|| die
  54
+		emake || die
  55
+		;;
  56
+	esac
  57
+	if use minizip ; then
  58
+		cd contrib/minizip
  59
+		econf $(use_enable static-libs static)
  60
+		emake || die
  61
+	fi
  62
+}
  63
+
  64
+sed_macros() {
  65
+	# clean up namespace a little #383179
  66
+	# we do it here so we only have to tweak 2 files
  67
+	sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die
  68
+}
  69
+src_install() {
  70
+	case ${CHOST} in
  71
+	*-mingw*|mingw*)
  72
+		emake -f win32/Makefile.gcc install \
  73
+			BINARY_PATH="${D}/usr/bin" \
  74
+			LIBRARY_PATH="${D}/usr/$(get_libdir)" \
  75
+			INCLUDE_PATH="${D}/usr/include" \
  76
+			SHARED_MODE=1 \
  77
+			|| die
  78
+		insinto /usr/share/pkgconfig
  79
+		doins zlib.pc || die
  80
+		;;
  81
+
  82
+	*)
  83
+		emake install DESTDIR="${D}" LDCONFIG=: || die
  84
+		gen_usr_ldscript -a z
  85
+		;;
  86
+	esac
  87
+	sed_macros "${D}"/usr/include/*.h
  88
+
  89
+	dodoc FAQ README ChangeLog doc/*.txt
  90
+
  91
+	if use minizip ; then
  92
+		cd contrib/minizip
  93
+		emake install DESTDIR="${D}" || die
  94
+		sed_macros "${D}"/usr/include/minizip/*.h
  95
+		dodoc *.txt
  96
+	fi
  97
+
  98
+	use static-libs || rm -f "${D}"/usr/$(get_libdir)/lib{z,minizip}.{a,la} #419645
  99
+}

0 notes on commit 97adb96

Please sign in to comment.
Something went wrong with that request. Please try again.