From c5adf5840651e7bee3d5c99c99a62f318903f393 Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Sun, 6 Dec 2026 00:06:39 +0100 Subject: dev-libs/libaaruformat: add 1.0.0_beta4, drop 1.0.0_beta3 --- dev-libs/libaaruformat/Manifest | 2 +- dev-libs/libaaruformat/files/libaaruformat.pc | 11 --- .../libaaruformat/libaaruformat-1.0.0_beta3.ebuild | 82 ---------------------- .../libaaruformat/libaaruformat-1.0.0_beta4.ebuild | 63 +++++++++++++++++ 4 files changed, 64 insertions(+), 94 deletions(-) delete mode 100644 dev-libs/libaaruformat/files/libaaruformat.pc delete mode 100644 dev-libs/libaaruformat/libaaruformat-1.0.0_beta3.ebuild create mode 100644 dev-libs/libaaruformat/libaaruformat-1.0.0_beta4.ebuild (limited to 'dev-libs/libaaruformat') diff --git a/dev-libs/libaaruformat/Manifest b/dev-libs/libaaruformat/Manifest index b4caad8..3c68bd6 100644 --- a/dev-libs/libaaruformat/Manifest +++ b/dev-libs/libaaruformat/Manifest @@ -1 +1 @@ -DIST libaaruformat-1.0.0_beta3.tar.gz 45370497 BLAKE2B cc940c3fa4e97373bcacf61512bf7327a9f61fe31755105e0dc95b1886889c8478de55fb773f7ecc358c4be6a8587fa73a5b78e0f038f6d8ba3896292ac2eca6 SHA512 f7c5cc7ae2a043e00532d30c4a9f79c3fd4ec1683558e95f6056878088f1587374e8c1205221b1b5f30c07c2e0b515135a0ae98c07b9f1f5e090a0b299e67a44 +DIST libaaruformat-1.0.0_beta4.tar.gz 45386875 BLAKE2B b51ca0bb223a3a73caf77599dcd1393026e795b49092070cdad313733fb6f66b03a8d2d99f70e430912d98260d2d88308212f64025f017b1eef3dca23ea7cabd SHA512 7367f496a9e7c809c54f5881310f43ad2f7f602aa20af96e092d679c2c7840b58bb1a3cdd6fc3061df6bb4730dba6a6c47ea2d19595ac03cd51d66f16c6e898e diff --git a/dev-libs/libaaruformat/files/libaaruformat.pc b/dev-libs/libaaruformat/files/libaaruformat.pc deleted file mode 100644 index 762c777..0000000 --- a/dev-libs/libaaruformat/files/libaaruformat.pc +++ /dev/null @@ -1,11 +0,0 @@ -prefix=@prefiX@ -exec_prefix=${prefix} -libdir=${exec_prefix}/@libdir@ -includedir=${prefix}/include - -Name: libaaruformat -Description: Aaru Format library -URL: https://github.com/aaru-dps/libaaruformat -Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -laaruformat -Cflags: -I${includedir} diff --git a/dev-libs/libaaruformat/libaaruformat-1.0.0_beta3.ebuild b/dev-libs/libaaruformat/libaaruformat-1.0.0_beta3.ebuild deleted file mode 100644 index c0307e8..0000000 --- a/dev-libs/libaaruformat/libaaruformat-1.0.0_beta3.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake -DESCRIPTION="C implementation of the Aaru file format" -HOMEPAGE="https://www.aaru.app" -SRC_URI="https://github.com/aaru-dps/libaaruformat/archive/refs/tags/v1.0.0-beta.3.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-1.0.0-beta.3" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64" - -BDEPEND="virtual/pkgconfig" -RDEPEND=" - >=dev-libs/xxhash-0.8.4:= - >=app-arch/zstd-1.6:= - >=media-libs/flac-1.5:= -" -DEPEND=" - >=dev-libs/blake3-1.8.7 - >=dev-libs/uthash-2.4.0 - ${RDEPEND} -" - -src_prepare() { - default - - rm -rf 3rdparty/{BLAKE3,flac,uthash,xxHash,zstd} tests/lib - - cp "${FILESDIR}/zstd.cmake" 3rdparty/zstd.cmake || die - cp "${FILESDIR}/xxhash.cmake" 3rdparty/xxhash.cmake || die - cp "${FILESDIR}/blake3.cmake" 3rdparty/blake3.cmake || die - cp "${FILESDIR}/flac.cmake" 3rdparty/flac.cmake || die - - # hash headers are public API but move them under aaruformat/ - # to avoid collisions with other packages - mv include/{md5,sha1,sha256}.h include/aaruformat/ || die - sed -i -e 's|include/md5\.h|include/aaruformat/md5.h|' \ - -e 's|include/sha1\.h|include/aaruformat/sha1.h|' \ - -e 's|include/sha256\.h|include/aaruformat/sha256.h|' CMakeLists.txt || die - - # unbundle uthash - sed -i '/3rdparty\/uthash/d' CMakeLists.txt || die - - cat >> CMakeLists.txt <<-EOF -set_target_properties(aaruformat PROPERTIES VERSION 1.0.0 SOVERSION 1) -EOF - - cmake_prepare -} - -src_configure() { - local mycmakeargs=( - -DBUILD_SHARED_LIBS=ON - -DAARU_BUILD_PACKAGE=ON - -DCMAKE_C_VISIBILITY_PRESET=hidden - ) - cmake_src_configure -} - -src_install() { - dolib.so "${BUILD_DIR}"/libaaruformat.so.1.0.0 - dosym libaaruformat.so.1.0.0 "/usr/$(get_libdir)/libaaruformat.so.1" - dosym libaaruformat.so.1 "/usr/$(get_libdir)/libaaruformat.so" - - insinto /usr/include - doins include/aaru.h include/aaruformat.h - - insinto /usr/include/aaruformat - doins include/aaruformat/*.h - doins -r include/aaruformat/structs - - insinto /usr/$(get_libdir)/pkgconfig - doins "${FILESDIR}/libaaruformat.pc" - sed -i -e "s!@PACKAGE_VERSION@!${PV}!" \ - -e "s!@prefix@!${EPREFIX}/usr!g" \ - -e "s!@libdir@!$(get_libdir)!" \ - "${ED}"/usr/$(get_libdir)/pkgconfig/libaaruformat.pc || die -} diff --git a/dev-libs/libaaruformat/libaaruformat-1.0.0_beta4.ebuild b/dev-libs/libaaruformat/libaaruformat-1.0.0_beta4.ebuild new file mode 100644 index 0000000..bcd93ae --- /dev/null +++ b/dev-libs/libaaruformat/libaaruformat-1.0.0_beta4.ebuild @@ -0,0 +1,63 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake +DESCRIPTION="C implementation of the Aaru file format" +HOMEPAGE="https://www.aaru.app" +SRC_URI="https://github.com/aaru-dps/libaaruformat/archive/refs/tags/v1.0.0-beta.4.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-1.0.0-beta.4" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="virtual/pkgconfig" +RDEPEND=" + >=dev-libs/xxhash-0.8.4:= + >=app-arch/zstd-1.6:= + >=media-libs/flac-1.5:= +" +DEPEND=" + >=dev-libs/blake3-1.8.7 + >=dev-libs/uthash-2.4.0 + ${RDEPEND} +" + +src_prepare() { + default + + rm -rf 3rdparty/{BLAKE3,flac,uthash,xxHash,zstd} tests/lib + + cp "${FILESDIR}/zstd.cmake" 3rdparty/zstd.cmake || die + cp "${FILESDIR}/xxhash.cmake" 3rdparty/xxhash.cmake || die + cp "${FILESDIR}/blake3.cmake" 3rdparty/blake3.cmake || die + cp "${FILESDIR}/flac.cmake" 3rdparty/flac.cmake || die + + # hash headers are public API but move them under aaruformat/ + # to avoid collisions with other packages + mv include/{md5,sha1,sha256}.h include/aaruformat/ || die + sed -i -e 's|include/md5\.h|include/aaruformat/md5.h|' \ + -e 's|include/sha1\.h|include/aaruformat/sha1.h|' \ + -e 's|include/sha256\.h|include/aaruformat/sha256.h|' CMakeLists.txt || die + + # unbundle uthash + sed -i '/3rdparty\/uthash/d' CMakeLists.txt || die + sed -i 's/1.0.0-beta.3.2/1.0.0-beta.4/' CMakeLists.txt || die + + cat >> CMakeLists.txt <<-EOF +set_target_properties(aaruformat PROPERTIES VERSION 1.0.0 SOVERSION 1) +EOF + + cmake_prepare +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DAARU_BUILD_PACKAGE=ON + -DCMAKE_C_VISIBILITY_PRESET=hidden + ) + cmake_src_configure +} -- cgit v1.3