commit: de944867b9d429deda256859937724223a4c25f7 Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Wed May 21 14:48:26 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri May 23 20:36:09 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de944867
app-arch/libdeflate: add 1.24 Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42211 Closes: https://github.com/gentoo/gentoo/pull/42211 Signed-off-by: Sam James <sam <AT> gentoo.org> app-arch/libdeflate/Manifest | 3 ++ app-arch/libdeflate/libdeflate-1.24.ebuild | 61 ++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/app-arch/libdeflate/Manifest b/app-arch/libdeflate/Manifest index e825ff49d192..cd4ef87226f0 100644 --- a/app-arch/libdeflate/Manifest +++ b/app-arch/libdeflate/Manifest @@ -1 +1,4 @@ DIST libdeflate-1.23.tar.gz 197519 BLAKE2B 6921aaf0fde3a2c1a8b04484879c64c2da2ee499353927fa20e8816932a4ccdc53af302f978eb099ee01f1a4c2ac5184529886d1c2a7adcb388ddd9fbd2b078f SHA512 c1effb9c5ee8d65bc12ae3d0669a4a394acace13cc146300ed24a7f12a0ec058f66729e1ffbae268711bdcc4151143752ab2d56a099dd6394b2735e8e2f1b671 +DIST libdeflate-1.24-gcc-16.1.patch 1498 BLAKE2B bf235b0b558efd0ee99c4da98392d034636889eab9bc06a3848c836ab3ace747ea5379396a0f51ba47e4c4d455651a660e7514fea712454ffdce31ec65c14aeb SHA512 cb55b1ccc241e5efe978ce6fa6c4839b8a4d7397e8842f4d3dd7e0137f67164089f00f7d0633867e0c802f24cfa7cb14e0a2f99c895902f902f96133410462cc +DIST libdeflate-1.24-gcc-16.2.patch 3157 BLAKE2B 6461265678daa24e5ddadd1412a0918a21306542c14a7086d99eb81ce975c5adbf43530333a53245d876a523a8ee753102a312e18e2271acc9c92511d064d7fe SHA512 aa1e69dbf9cc0ad62a604f7bad24cd1b90a87b02f9e6755d85a07fb061ce690a53cef1d616f3a592dfded1aa1f0332effe784c8340462d91e68ef008d3178c15 +DIST libdeflate-1.24.tar.gz 197668 BLAKE2B e38999c7deb7a5652c338821f694446c83cb33914ced47958cb0afea54c353beb658b48a7cabb276581811657ac0242da7f196ea6aaefa8fb7e745ac21b72ee0 SHA512 c20a772aeeac593c34e8a68be80b23cb116699141de269d94df072636b6c90572f541b3344d830325cf45b03e7a1303e0274d79ce96c360fd421d4eb05ae1f92 diff --git a/app-arch/libdeflate/libdeflate-1.24.ebuild b/app-arch/libdeflate/libdeflate-1.24.ebuild new file mode 100644 index 000000000000..ae39ae5e8423 --- /dev/null +++ b/app-arch/libdeflate/libdeflate-1.24.ebuild @@ -0,0 +1,61 @@ +# Copyright 2019-2025 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 + https://github.com/ebiggers/libdeflate/commit/2a3762cf736aff9aa5dda329fdec3c08a816eb9b.patch -> ${P}-gcc-16.1.patch + https://github.com/ebiggers/libdeflate/commit/6bb493615b0ef35c98fc4aa4ec04f448788db6a5.patch -> ${P}-gcc-16.2.patch + " + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~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" + "${DISTDIR}/${P}-gcc-16.1.patch" + "${DISTDIR}/${P}-gcc-16.2.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 +}
