commit:     060c156813cc5320932c2e1b599d80af3379ee6b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 15 03:23:17 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 15 05:21:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=060c1568

dev-libs/zziplib: add 0.13.78

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/zziplib/Manifest               |  1 +
 dev-libs/zziplib/zziplib-0.13.78.ebuild | 70 +++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/dev-libs/zziplib/Manifest b/dev-libs/zziplib/Manifest
index 6368bbeeff2f..ceb6e8fb110c 100644
--- a/dev-libs/zziplib/Manifest
+++ b/dev-libs/zziplib/Manifest
@@ -3,3 +3,4 @@ DIST zziplib-0.13.74-testdata.tar.xz 166188 BLAKE2B 
f3cc98495542fb95e8bd9cfb98ec
 DIST zziplib-0.13.74.tar.gz 1177162 BLAKE2B 
fc093b731406101086e59ff54b4378190c88821c4349d75e35c9595b45695b5f91a20e99a9689f7ebbc8d8951f2c4e1132d670e3827f5329977de1f85c9ce5d2
 SHA512 
7dd27247cbc475e2c6beb3a96c620f9938ade0dff6f4e088f9c28432fc4cc01df9d6771ec3d5e07baabe27033f4764d60e31c4c54588559de64e894d0557c94f
 DIST zziplib-0.13.76.tar.gz 1185716 BLAKE2B 
c04743fc47e6a0e102a01d0473d88b9f9cb044a3a021119d16533949d0a1f132fb73f957714a840b0474590bc98f62132e89ce890c5c9097a77d8f007c3f1e5a
 SHA512 
d4b327530fc2681df1705b24d5de697d3c3829e299c28e047849444c7aeaf87e188d96782a2009dc7ae216f82f744a32a94fc7962fb12b3a62b28d7ecf12a7d6
 DIST zziplib-0.13.77.tar.gz 1190133 BLAKE2B 
30ab10a440dbef6a9d37e75652734ed6c51fa902f6106d864b923a2d5d0ad170bcb279681e05f613ab8c20ade374ce1f8be21575b1b5f27cb9c7e7da9441c16a
 SHA512 
63071f1ea7290d7658ff4cfdb2aaef5d07f319e12077365ddef6c57c671fcc66efa10e40c6885879063bb8c724524e04264ebfcdc9493e0299f03e3637a1b1d9
+DIST zziplib-0.13.78.tar.gz 1190713 BLAKE2B 
65b073bd72bb97be62a2ec29e597eba5e0da5a35351e6f16a3f53ae95870a843b1204f763c3783bd1d9c73b144caa4d7dde6d042a69eed152058e79c99ebeede
 SHA512 
e96771c310a1a9eb227027e8c2a495409c01dd273b483b3a04119d6a273cce7c88ba77c192fcde5e85d0a37c847a0df8e521f460d00920e62153400f0743ea78

diff --git a/dev-libs/zziplib/zziplib-0.13.78.ebuild 
b/dev-libs/zziplib/zziplib-0.13.78.ebuild
new file mode 100644
index 000000000000..950aafc99ca5
--- /dev/null
+++ b/dev-libs/zziplib/zziplib-0.13.78.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+# Needed for docs, bug #8357553
+PYTHON_REQ_USE="xml(+)"
+inherit cmake flag-o-matic python-any-r1
+
+TEST_PV="0.13.74"
+DESCRIPTION="Lightweight library for extracting data from files archived in a 
single zip file"
+HOMEPAGE="https://github.com/gdraheim/zziplib https://zziplib.sourceforge.net";
+# Test data tarball generated with python ./zziptests.py -D -d /tmp/zziplib -v
+SRC_URI="
+       https://github.com/gdraheim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+       test? ( 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-${TEST_PV}-testdata.tar.xz
 )
+"
+
+LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
+SLOT="0/13"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="sdl test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       ${PYTHON_DEPS}
+       test? (
+               app-arch/unzip
+               app-arch/zip
+       )
+"
+DEPEND="
+       sys-libs/zlib
+       sdl? ( >=media-libs/libsdl-1.2.6 )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       # This test assumes being built with automake (checks for .libs/x).
+       sed -i -e 's/test_91000_zzshowme_check_sfx/skip_&/' test/zziptests.py 
|| die
+       cmake_src_prepare
+}
+
+src_configure() {
+       # 
https://github.com/gdraheim/zziplib/commit/f3bfc0dd6663b7df272cc0cf17f48838ad724a2f#diff-b7b1e314614cf326c6e2b6eba1540682R100
+       append-flags -fno-strict-aliasing
+
+       local mycmakeargs=(
+               -DZZIPSDL=$(usex sdl)
+               -DBUILD_TESTS=$(usex test)
+               -DZZIPTEST=$(usex test)
+               -DZZIPDOCS=ON
+               -DZZIPWRAP=OFF
+       )
+
+       cmake_src_configure
+}
+
+src_test() {
+       cd "${S}" || die
+       "${EPYTHON}" "${S}"/test/zziptests.py \
+               --downloads=no \
+               --verbose \
+               --topsrcdir "${S}" \
+               --bindir "$(realpath --relative-to="${S}" "${BUILD_DIR}"/bins)" 
\
+               --downloaddir "${WORKDIR}"/${PN}-${TEST_PV}-testdata \
+               --testdatadir "${T}"/testdata.d \
+       || die "Tests failed with ${EPYTHON}"
+}

Reply via email to