blob: fe978ca5ac6a1d6c0aef84cc18104c07a2e4779a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-multilib
DESCRIPTION="A library implementing the EBU R128 loudness standard"
HOMEPAGE="https://github.com/jiixyj/libebur128"
SRC_URI="https://github.com/jiixyj/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
test? ( https://tech.ebu.ch/files/live/sites/tech/files/shared/testmaterial/ebu-loudness-test-setv05.zip )"
LICENSE="MIT"
SLOT="0/1"
KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
DEPEND="test? ( app-arch/unzip
media-libs/libsndfile[${MULTILIB_USEDEP}] )"
multilib_src_configure() {
local mycmakeargs=(
-DBUILD_STATIC_LIBS=$(usex static-libs)
-DENABLE_TESTS=$(usex test)
)
cmake-utils_src_configure
}
multilib_src_test() {
cd "${WORKDIR}" || die
"${BUILD_DIR}"/r128-test-library | tee test-results
grep -c "^FAILED" test-results > /dev/null \
&& die "At least one test failed"
}
|