summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libebur128/libebur128-1.0.2.ebuild')
-rw-r--r--media-libs/libebur128/libebur128-1.0.2.ebuild23
1 files changed, 18 insertions, 5 deletions
diff --git a/media-libs/libebur128/libebur128-1.0.2.ebuild b/media-libs/libebur128/libebur128-1.0.2.ebuild
index e62978e8e2b..5c87eae86c9 100644
--- a/media-libs/libebur128/libebur128-1.0.2.ebuild
+++ b/media-libs/libebur128/libebur128-1.0.2.ebuild
@@ -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"
+}