diff options
author | Amy Winston <amynka@gentoo.org> | 2015-08-19 11:52:00 +0200 |
---|---|---|
committer | Amy Winston <amynka@gentoo.org> | 2015-08-19 11:52:32 +0200 |
commit | 3ab35569edf1a132bc0dcaeee498663e0bc93d64 (patch) | |
tree | 1c464488487c158a349b1c9d8814207cf489b568 /media-libs/libebur128 | |
parent | dev-java/xpp2: Drop old (diff) | |
download | gentoo-3ab35569edf1a132bc0dcaeee498663e0bc93d64.tar.gz gentoo-3ab35569edf1a132bc0dcaeee498663e0bc93d64.tar.bz2 gentoo-3ab35569edf1a132bc0dcaeee498663e0bc93d64.zip |
media-libs/libebur128: Test phase added. Thanks Diogo Pereira.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'media-libs/libebur128')
-rw-r--r-- | media-libs/libebur128/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libebur128/libebur128-1.0.2.ebuild | 23 |
2 files changed, 19 insertions, 5 deletions
diff --git a/media-libs/libebur128/Manifest b/media-libs/libebur128/Manifest index 2a8529dd79ac..74aba6353ef4 100644 --- a/media-libs/libebur128/Manifest +++ b/media-libs/libebur128/Manifest @@ -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 diff --git a/media-libs/libebur128/libebur128-1.0.2.ebuild b/media-libs/libebur128/libebur128-1.0.2.ebuild index e62978e8e2bb..5c87eae86c92 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" +} |