diff options
author | 2024-08-14 17:21:17 +0200 | |
---|---|---|
committer | 2024-08-25 16:39:58 +0100 | |
commit | eff13e3dce975a97160648c2e25b9c60905e6e40 (patch) | |
tree | 4a0485471cdab9be3fb84bf43216317b2e6dbad3 /app-arch/libdeflate/libdeflate-1.21.ebuild | |
parent | app-arch/libdeflate: enable gzip & zlib unconditionally (diff) | |
download | gentoo-eff13e3dce975a97160648c2e25b9c60905e6e40.tar.gz gentoo-eff13e3dce975a97160648c2e25b9c60905e6e40.tar.bz2 gentoo-eff13e3dce975a97160648c2e25b9c60905e6e40.zip |
app-arch/libdeflate: add 1.21
Closes: https://bugs.gentoo.org/938174
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38236
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-arch/libdeflate/libdeflate-1.21.ebuild')
-rw-r--r-- | app-arch/libdeflate/libdeflate-1.21.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/app-arch/libdeflate/libdeflate-1.21.ebuild b/app-arch/libdeflate/libdeflate-1.21.ebuild new file mode 100644 index 000000000000..12a547db272d --- /dev/null +++ b/app-arch/libdeflate/libdeflate-1.21.ebuild @@ -0,0 +1,55 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="Heavily optimized DEFLATE/zlib/gzip (de)compression" +HOMEPAGE="https://github.com/ebiggers/libdeflate" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ebiggers/libdeflate.git" +else + SRC_URI="https://github.com/ebiggers/libdeflate/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +LICENSE="MIT" +SLOT="0" +# the zlib USE-flag enables support for zlib +# the test USE-flag programs depend on sys-libs/zlib for comparison tests +IUSE="+utils test" + +RESTRICT=" + !test? ( test ) +" + +DEPEND=" + test? ( sys-libs/zlib[${MULTILIB_USEDEP}] ) +" + +PATCHES=( + "${FILESDIR}/${PN}-1.19-make-gzip-tests-conditional.patch" +) + +src_configure() { + local mycmakeargs=( + -DLIBDEFLATE_BUILD_SHARED_LIB="yes" + -DLIBDEFLATE_BUILD_STATIC_LIB="no" + -DLIBDEFLATE_USE_SHARED_LIB="yes" + + -DLIBDEFLATE_COMPRESSION_SUPPORT="yes" + -DLIBDEFLATE_DECOMPRESSION_SUPPORT="yes" + + -DLIBDEFLATE_BUILD_GZIP="$(usex utils)" + -DLIBDEFLATE_GZIP_SUPPORT="yes" + + -DLIBDEFLATE_ZLIB_SUPPORT="yes" + + -DLIBDEFLATE_BUILD_TESTS="$(usex test)" + ) + + cmake-multilib_src_configure +} |