mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
media-libs/libebur128: Test phase added. Thanks Diogo Pereira.
Package-Manager: portage-2.2.20.1
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST ebu-loudness-test-setv03.zip 80837115 SHA256 c97e8e1f962ee0a97dca37d205418b3469dd0d1e2a627fa9f505f2f1c01f54ec SHA512 ffa60e3f17370a7436614269ce33b2e3c8ec84c2477f05bd42b436bbd07b7018ae9ef935c9fd75ccff731bdf24b8231397ccc95fd003cdf6e04578ee62a663d5 WHIRLPOOL d4d128c90759c6462c1d76183960d46eae8f434a47059c1e448d8550e9ba04daef3452d9a7bd2b38f1a85ac5551ae2983bd5fa6bcd66f7df6a88dcbc38bf3bd3
|
||||
DIST libebur128-1.0.2.tar.gz 29794 SHA256 9b334d31a26b47ba6740bb7bbee7a24461d535f426b1ed42368c187e27c08323 SHA512 10f0248db9ebae48c0b3a62f5bab668d77bf10cd004267593b0cec1c5fcd5b1223fff2ae82d6753db7329210a0d7feb5a65a1c030e92607805d05c1b9885416a WHIRLPOOL 4656d8e05d98d2a1b8d286602b2671d2016ec0b8e35f66689d97ad700c61fcb1234e85308ab00f01a6ac51d741232054b251da04594f646138eb5d0103564585
|
||||
|
||||
@@ -8,17 +8,30 @@ inherit cmake-utils
|
||||
|
||||
DESCRIPTION="A library implementing the EBU R128 loudness standard."
|
||||
HOMEPAGE="https://github.com/jiixyj/libebur128"
|
||||
SRC_URI="https://github.com/jiixyj/libebur128/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/jiixyj/libebur128/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
test? ( https://tech.ebu.ch/files/live/sites/tech/files/shared/testmaterial/ebu-loudness-test-setv03.zip )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+speex"
|
||||
IUSE="+speex test"
|
||||
|
||||
DEPEND="speex? ( media-libs/speex )"
|
||||
RDEPEND="${DEPEND}"
|
||||
RDEPEND="speex? ( media-libs/speex )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( media-libs/libsndfile
|
||||
app-arch/unzip )"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=( $(cmake-utils_use_disable speex SPEEXDSP) )
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_disable speex SPEEXDSP)
|
||||
$(cmake-utils_use_enable test TESTS)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${WORKDIR}"
|
||||
"${P}_build"/r128-test-library | tee test-results
|
||||
grep -c "^FAILED" test-results > /dev/null \
|
||||
&& die "At least one test failed"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user