Skip to content

Commit

Permalink
media-libs/libebur128: Test phase added. Thanks Diogo Pereira.
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.20.1
  • Loading branch information
Amynka committed Aug 19, 2015
1 parent 7cd8c87 commit 3ab3556
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions media-libs/libebur128/Manifest
Original file line number Diff line number Diff line change
@@ -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
23 changes: 18 additions & 5 deletions media-libs/libebur128/libebur128-1.0.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 3ab3556

Please sign in to comment.