commit: 36a75c6f81fb32e9b84d029f1977a8e22312b4dc Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> AuthorDate: Sat Oct 10 07:59:37 2020 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Mon Oct 12 09:05:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36a75c6f
media-libs/libheif: enable tests (again) - go code is needed to run tests, add appropriate REQUIRED_USE entry - remove "$use_enable go" as go code seems to be enabled by default. Passing --enable-go disrupts the build system and strangely prevents us to run tests (likely an upstream bug) Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> media-libs/libheif/libheif-1.7.0-r1.ebuild | 9 ++++++++- media-libs/libheif/libheif-1.7.0-r2.ebuild | 9 ++++++++- media-libs/libheif/libheif-1.9.1.ebuild | 9 ++++++++- media-libs/libheif/libheif-9999.ebuild | 9 ++++++++- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/media-libs/libheif/libheif-1.7.0-r1.ebuild b/media-libs/libheif/libheif-1.7.0-r1.ebuild index 389834d3586..6eb48cf9b41 100644 --- a/media-libs/libheif/libheif-1.7.0-r1.ebuild +++ b/media-libs/libheif/libheif-1.7.0-r1.ebuild @@ -19,6 +19,8 @@ HOMEPAGE="https://github.com/strukturag/libheif" LICENSE="GPL-3" SLOT="0/1.7" IUSE="gdk-pixbuf go static-libs test +threads" +REQUIRED_USE="test? ( go )" + RESTRICT="!test? ( test )" BDEPEND="test? ( dev-lang/go )" @@ -49,7 +51,7 @@ src_prepare() { multilib_src_configure() { local econf_args=( - $(multilib_is_native_abi && use_enable go || echo --disable-go) + $(multilib_is_native_abi && use go || echo --disable-go) $(use_enable gdk-pixbuf) $(use_enable static-libs static) $(use_enable threads multithreading) @@ -57,6 +59,11 @@ multilib_src_configure() { ECONF_SOURCE="${S}" econf "${econf_args[@]}" } +multilib_src_test() { + default + emake -C go test +} + multilib_src_install_all() { find "${ED}" -name '*.la' -delete || die } diff --git a/media-libs/libheif/libheif-1.7.0-r2.ebuild b/media-libs/libheif/libheif-1.7.0-r2.ebuild index e54b807b2df..0e817601bd6 100644 --- a/media-libs/libheif/libheif-1.7.0-r2.ebuild +++ b/media-libs/libheif/libheif-1.7.0-r2.ebuild @@ -19,6 +19,8 @@ HOMEPAGE="https://github.com/strukturag/libheif" LICENSE="GPL-3" SLOT="0/1.7" IUSE="gdk-pixbuf go static-libs test +threads" +REQUIRED_USE="test? ( go )" + RESTRICT="!test? ( test )" BDEPEND="test? ( dev-lang/go )" @@ -50,7 +52,7 @@ src_prepare() { multilib_src_configure() { local econf_args=( - $(multilib_is_native_abi && use_enable go || echo --disable-go) + $(multilib_is_native_abi && use go || echo --disable-go) $(use_enable gdk-pixbuf) $(use_enable static-libs static) $(use_enable threads multithreading) @@ -58,6 +60,11 @@ multilib_src_configure() { ECONF_SOURCE="${S}" econf "${econf_args[@]}" } +multilib_src_test() { + default + emake -C go test +} + multilib_src_install_all() { find "${ED}" -name '*.la' -delete || die } diff --git a/media-libs/libheif/libheif-1.9.1.ebuild b/media-libs/libheif/libheif-1.9.1.ebuild index bccbc8c8662..ccfee4058de 100644 --- a/media-libs/libheif/libheif-1.9.1.ebuild +++ b/media-libs/libheif/libheif-1.9.1.ebuild @@ -19,6 +19,8 @@ HOMEPAGE="https://github.com/strukturag/libheif" LICENSE="GPL-3" SLOT="0/1.9" IUSE="gdk-pixbuf go static-libs test +threads" +REQUIRED_USE="test? ( go )" + RESTRICT="!test? ( test )" BDEPEND="test? ( dev-lang/go )" @@ -47,7 +49,7 @@ src_prepare() { multilib_src_configure() { local econf_args=( - $(multilib_is_native_abi && use_enable go || echo --disable-go) + $(multilib_is_native_abi && use go || echo --disable-go) $(use_enable gdk-pixbuf) $(use_enable static-libs static) $(use_enable threads multithreading) @@ -55,6 +57,11 @@ multilib_src_configure() { ECONF_SOURCE="${S}" econf "${econf_args[@]}" } +multilib_src_test() { + default + emake -C go test +} + multilib_src_install_all() { find "${ED}" -name '*.la' -delete || die } diff --git a/media-libs/libheif/libheif-9999.ebuild b/media-libs/libheif/libheif-9999.ebuild index bccbc8c8662..ccfee4058de 100644 --- a/media-libs/libheif/libheif-9999.ebuild +++ b/media-libs/libheif/libheif-9999.ebuild @@ -19,6 +19,8 @@ HOMEPAGE="https://github.com/strukturag/libheif" LICENSE="GPL-3" SLOT="0/1.9" IUSE="gdk-pixbuf go static-libs test +threads" +REQUIRED_USE="test? ( go )" + RESTRICT="!test? ( test )" BDEPEND="test? ( dev-lang/go )" @@ -47,7 +49,7 @@ src_prepare() { multilib_src_configure() { local econf_args=( - $(multilib_is_native_abi && use_enable go || echo --disable-go) + $(multilib_is_native_abi && use go || echo --disable-go) $(use_enable gdk-pixbuf) $(use_enable static-libs static) $(use_enable threads multithreading) @@ -55,6 +57,11 @@ multilib_src_configure() { ECONF_SOURCE="${S}" econf "${econf_args[@]}" } +multilib_src_test() { + default + emake -C go test +} + multilib_src_install_all() { find "${ED}" -name '*.la' -delete || die }
