dev-libs/libzip: version bump 1.3.0
authorMichael Palimaka <kensington@gentoo.org>
Sun, 3 Sep 2017 05:28:16 +0000 (15:28 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 3 Sep 2017 05:28:32 +0000 (15:28 +1000)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

dev-libs/libzip/Manifest
dev-libs/libzip/libzip-1.3.0.ebuild [new file with mode: 0644]

index 91b982835ed60df0522f4bd9e6907398e5afe31c..4fd8d312a19b3f9adc7d6f6bdc947a59b133b4ae 100644 (file)
@@ -1 +1,2 @@
 DIST libzip-1.2.0.tar.xz 938284 SHA256 ffc0764395fba3d45dc5a6e32282788854618b9e9838337f8218b596007f1376 SHA512 1ba8626d72e6b47f735568afaf007d1e18beb3ebedf6b69a6b575f9e04d3b84550371191a89be153f8fcedb4a8eac2f996e141da95cdbb52380b6283cc99cf8b WHIRLPOOL 794a462fc4d1529008fccbe6df41c5616b34712ef34721e0cbe555aa12ada7928d22f6e9421de210efdf7b460188a4d6a9a6e53fc0266bcf52d47d6a7e30a5f6
+DIST libzip-1.3.0.tar.xz 955876 SHA256 aa936efe34911be7acac2ab07fb5c8efa53ed9bb4d44ad1fe8bff19630e0d373 SHA512 8e12a23fe62b993ff4592e1b9da152533a363b0603fc1f65e6cbb6121d4260c45f98171effbccb76dec4030b0fcdcd273919755a2496ab462431646ac83bb900 WHIRLPOOL eca44e4c7e3a09d90f7a9c694de01c97fdc97ce7989bd8ccf9acb8e33e10145f6860c4dd5bb282d2ab0a708d9ddb6b7ecde88bf5276365179057c02f534e182d
diff --git a/dev-libs/libzip/libzip-1.3.0.ebuild b/dev-libs/libzip/libzip-1.3.0.ebuild
new file mode 100644 (file)
index 0000000..c3a6358
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Library for manipulating zip archives"
+HOMEPAGE="https://nih.at/libzip/"
+SRC_URI="https://www.nih.at/libzip/${P}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0/5"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="bzip2 static-libs"
+
+RDEPEND="
+       sys-libs/zlib
+       bzip2? ( app-arch/bzip2 )
+       elibc_musl? ( sys-libs/fts-standalone )
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS NEWS.md API-CHANGES THANKS )
+
+PATCHES=(
+       "${FILESDIR}/${PN}-1.2.0-headers.patch"
+       "${FILESDIR}/${PN}-1.2.0-fts.patch"
+)
+
+src_prepare() {
+       default
+
+       # fails in portage build only
+       sed -i -e "/encryption-nonrandom-aes.*.test/d" regress/Makefile.am || die
+
+       eautoreconf
+}
+
+src_configure() {
+       econf $(use_with bzip2)
+}
+
+src_install() {
+       default
+       use static-libs || rm "${ED%/}"/usr/$(get_libdir)/libzip.a || die
+       find "${D}" -name '*.la' -delete || die
+}