From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9B3551397EF for ; Wed, 19 Aug 2015 09:53:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F52614120; Wed, 19 Aug 2015 09:53:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ECE1514120 for ; Wed, 19 Aug 2015 09:53:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F4195340AB2 for ; Wed, 19 Aug 2015 09:53:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 04831153 for ; Wed, 19 Aug 2015 09:53:18 +0000 (UTC) From: "Amy Winston" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Amy Winston" Message-ID: <1439977952.3ab35569edf1a132bc0dcaeee498663e0bc93d64.amynka@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libebur128/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libebur128/Manifest media-libs/libebur128/libebur128-1.0.2.ebuild X-VCS-Directories: media-libs/libebur128/ X-VCS-Committer: amynka X-VCS-Committer-Name: Amy Winston X-VCS-Revision: 3ab35569edf1a132bc0dcaeee498663e0bc93d64 X-VCS-Branch: master Date: Wed, 19 Aug 2015 09:53:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 076e130b-2189-4fa2-9bc7-e2062aaa2ff6 X-Archives-Hash: a29cfe5ed3351edbe30ef3a17852512a commit: 3ab35569edf1a132bc0dcaeee498663e0bc93d64 Author: Amy Winston gentoo org> AuthorDate: Wed Aug 19 09:52:00 2015 +0000 Commit: Amy Winston gentoo org> CommitDate: Wed Aug 19 09:52:32 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ab35569 media-libs/libebur128: Test phase added. Thanks Diogo Pereira. Package-Manager: portage-2.2.20.1 media-libs/libebur128/Manifest | 1 + 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 2a8529d..74aba63 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 e62978e..5c87eae 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" +}