diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-02-18 13:37:29 +0100 |
---|---|---|
committer | Matthew Smith <matthew@gentoo.org> | 2022-02-18 12:56:38 +0000 |
commit | ebbcd30ab2fb4aae03c68c1ad4f6a8ca2bf57dd4 (patch) | |
tree | c88fd1eca43fdd05dbf2922d296a6431984b8a4a /dev-libs | |
parent | app-emacs/setup: initial import at 1.2.0 (diff) | |
download | gentoo-ebbcd30ab2fb4aae03c68c1ad4f6a8ca2bf57dd4.tar.gz gentoo-ebbcd30ab2fb4aae03c68c1ad4f6a8ca2bf57dd4.tar.bz2 gentoo-ebbcd30ab2fb4aae03c68c1ad4f6a8ca2bf57dd4.zip |
dev-libs/zziplib: python3_10, EAPI 8
Bug: https://bugs.gentoo.org/833392
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/zziplib/zziplib-0.13.72-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-libs/zziplib/zziplib-0.13.72-r1.ebuild b/dev-libs/zziplib/zziplib-0.13.72-r1.ebuild new file mode 100644 index 000000000000..40f017c176cd --- /dev/null +++ b/dev-libs/zziplib/zziplib-0.13.72-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit cmake flag-o-matic python-any-r1 + +DESCRIPTION="Lightweight library for extracting data from files archived in a single zip file" +HOMEPAGE="https://github.com/gdraheim/zziplib http://zziplib.sourceforge.net/" +SRC_URI="https://github.com/gdraheim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( LGPL-2.1 MPL-1.1 )" +SLOT="0/13" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="sdl static-libs" + +# Tests require internet access +# https://github.com/gdraheim/zziplib/issues/24 + +BDEPEND=" + ${PYTHON_DEPS} +" +DEPEND=" + sys-libs/zlib + sdl? ( >=media-libs/libsdl-1.2.6 ) +" +RDEPEND="${DEPEND}" + +src_configure() { + # https://github.com/gdraheim/zziplib/commit/f3bfc0dd6663b7df272cc0cf17f48838ad724a2f#diff-b7b1e314614cf326c6e2b6eba1540682R100 + append-flags -fno-strict-aliasing + + local mycmakeargs=( + -DZZIPSDL="$(usex sdl)" + -DBUILD_STATIC_LIBS="$(usex static-libs)" + -DBUILD_TESTS=OFF + -DZZIPTEST=OFF + -DZZIPDOCS=ON + -DZZIPWRAP=OFF + ) + + cmake_src_configure +} |