summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-06-10 12:48:53 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-06-10 12:49:24 +0200
commit5cfa6e07ebd932227506302f803a3c7a328945c3 (patch)
tree6f6521b0163f7630b17b2ef03c9b5853b1f06dee /sci-libs/libaec
parentdev-util/rocm-smi: fix build with GCC 12 (diff)
downloadgentoo-5cfa6e07ebd932227506302f803a3c7a328945c3.tar.gz
gentoo-5cfa6e07ebd932227506302f803a3c7a328945c3.tar.bz2
gentoo-5cfa6e07ebd932227506302f803a3c7a328945c3.zip
sci-libs/libaec: add 1.0.6
Closes: https://bugs.gentoo.org/849806 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-libs/libaec')
-rw-r--r--sci-libs/libaec/Manifest1
-rw-r--r--sci-libs/libaec/libaec-1.0.6.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/sci-libs/libaec/Manifest b/sci-libs/libaec/Manifest
index 58dd6adaa818..194586a5792d 100644
--- a/sci-libs/libaec/Manifest
+++ b/sci-libs/libaec/Manifest
@@ -1 +1,2 @@
DIST libaec-1.0.4.tar.gz 2775768 BLAKE2B e083c5e268296227b5193c2192f7c52d47f8cef08823de013453ffd2c5f8c115921a79c60286e7582cbfcbb914c5e8ad4c2493e4ec89395df3be2206bc893591 SHA512 74d01208ad3a426d68895dbfa8a830c96618a219f27745ecfd94b248462748e772c266e7fb0d4e4f4c75f8953a97f835fb2ece67317cf9e9a7495360362d22eb
+DIST libaec-1.0.6.tar.gz 2777547 BLAKE2B 20da3fdf659c9d47ffde442ceaa9f9a831aab70330e27683ed4b62a28fdad02ec9c100413580f04d5a2bbbe86f3fe54b065230393bfb5e7746c522cce71513bc SHA512 f5d118c48225f97b229ac11425b94adff4d3698733bf18767b427e49047f8e08768464bc9cd9f5e6a66ceb44c8ebd9904c4f6f46566e2e66fcaa1049b2ebfcc1
diff --git a/sci-libs/libaec/libaec-1.0.6.ebuild b/sci-libs/libaec/libaec-1.0.6.ebuild
new file mode 100644
index 000000000000..2c95da741a7c
--- /dev/null
+++ b/sci-libs/libaec/libaec-1.0.6.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_MAKEFILE_GENERATOR=emake
+inherit cmake
+
+MY_P="${PN}-v${PV}"
+DESCRIPTION="Adaptive Entropy Coding library"
+HOMEPAGE="https://gitlab.dkrz.de/k202009/libaec"
+SRC_URI="https://gitlab.dkrz.de/k202009/libaec/-/archive/v${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD-2"
+SLOT="0/2"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="+szip"
+
+RDEPEND="szip? ( !sci-libs/szip )"
+
+src_configure() {
+ mycmakeargs=(
+ -DCMAKE_INSTALL_LIBDIR=$(get_libdir)
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ # avoid conflict with szip (easier than to patch)
+ if ! use szip; then
+ rm "${ED}"/usr/include/szlib.h || die
+ rm "${ED}"/usr/$(get_libdir)/libsz* || die
+ rm "${ED}"/usr/share/doc/${PF}/README.SZIP || die
+ fi
+
+ # Move these cmake files to a proper location
+ dodir "/usr/$(get_libdir)/cmake/${PN}"
+ mv "${ED}/usr/cmake/"* "${ED}/usr/$(get_libdir)/cmake/${PN}" || die
+ rm -r "${ED}/usr/cmake/" || die
+}