diff options
Diffstat (limited to 'media-libs/libheif/libheif-1.7.0-r2.ebuild')
-rw-r--r-- | media-libs/libheif/libheif-1.7.0-r2.ebuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/media-libs/libheif/libheif-1.7.0-r2.ebuild b/media-libs/libheif/libheif-1.7.0-r2.ebuild index e54b807b2dfa..0e817601bd62 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 } |