You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
752 B
31 lines
752 B
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
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_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
|
|
}
|