commit: d7a59ff5b6080fa6f203ed3eb889eda3a29a1d68 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sat Nov 9 19:55:10 2024 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Nov 10 09:30:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7a59ff5
media-libs/libebur128: update EAPI 7 -> 8 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> media-libs/libebur128/libebur128-1.2.6-r1.ebuild | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/media-libs/libebur128/libebur128-1.2.6-r1.ebuild b/media-libs/libebur128/libebur128-1.2.6-r1.ebuild new file mode 100644 index 000000000000..41f34da356b9 --- /dev/null +++ b/media-libs/libebur128/libebur128-1.2.6-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="Library implementing the EBU R128 loudness standard" +HOMEPAGE="https://github.com/jiixyj/libebur128" +SRC_URI="https://github.com/jiixyj/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://tech.ebu.ch/files/live/sites/tech/files/shared/testmaterial/ebu-loudness-test-setv05.zip )" + +LICENSE="MIT" +SLOT="0/1" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~riscv sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + test? ( + app-arch/unzip + media-libs/libsndfile[${MULTILIB_USEDEP}] + ) +" + +multilib_src_configure() { + local mycmakeargs=( + -DENABLE_TESTS=$(usex test) + ) + cmake_src_configure +} + +multilib_src_test() { + cd "${WORKDIR}" || die + "${BUILD_DIR}"/r128-test-library | tee test-results + grep -c "^FAILED" test-results > /dev/null \ + && die "At least one test failed" +}
