commit: a9e632f7f1b79849c8cabe04c412476b1fd48e6a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Sep 9 22:21:16 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Sep 9 22:35:05 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9e632f7
media-video/vcdimager: build tests with -j1, modernise a bit * Build tests with -j1 * Modernise src_configure by using multilib helpers Bug: https://github.com/rocky/vcdimager/issues/2 Bug: https://github.com/rocky/vcdimager/issues/3 Bug: https://github.com/rocky/vcdimager/issues/4 Closes: https://bugs.gentoo.org/673174 Signed-off-by: Sam James <sam <AT> gentoo.org> media-video/vcdimager/vcdimager-2.0.1-r1.ebuild | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/media-video/vcdimager/vcdimager-2.0.1-r1.ebuild b/media-video/vcdimager/vcdimager-2.0.1-r1.ebuild index 866165070372..d87aad4336c0 100644 --- a/media-video/vcdimager/vcdimager-2.0.1-r1.ebuild +++ b/media-video/vcdimager/vcdimager-2.0.1-r1.ebuild @@ -15,7 +15,7 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~riscv ~sparc x86" IUSE="static-libs +xml" RDEPEND=" - >=dev-libs/libcdio-2.0.0:0=[-minimal,${MULTILIB_USEDEP}] + >=dev-libs/libcdio-2.0.0:=[-minimal,${MULTILIB_USEDEP}] dev-libs/popt xml? ( dev-libs/libxml2:2= ) " @@ -29,7 +29,7 @@ PATCHES=("${FILESDIR}/${P}-pkg-config.patch") src_prepare() { default - # Avoid building useless programs. Bug #226249 + # Avoid building useless programs (bug #226249) sed -i \ -e 's/check_PROGRAMS =/check_PROGRAMS +=/' \ -e 's/noinst_PROGRAMS =/check_PROGRAMS =/' \ @@ -38,7 +38,7 @@ src_prepare() { -e 's/noinst_PROGRAMS =/check_PROGRAMS =/' \ example/Makefile.am || die - # don't call nm directly. Bug #724838 + # Don't call nm directly (bug #724838) sed -i \ -e "s|nm|$(tc-getNM)|" \ lib/Makefile.am || die @@ -49,14 +49,15 @@ src_prepare() { multilib_src_configure() { local myeconfargs=( $(use_enable static-libs static) + $(multilib_native_with cli-frontend) + $(multilib_native_use_with xml xml-frontend) ) - multilib_is_native_abi || myeconfargs+=( --without-cli-frontend ) - if ! use xml || ! multilib_is_native_abi ; then - myeconfargs+=( --without-xml-frontend ) - fi - ECONF_SOURCE="${S}" \ - econf ${myeconfargs[@]} + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_test() { + emake -j1 check } multilib_src_install_all() {
