1 |
commit: 36a75c6f81fb32e9b84d029f1977a8e22312b4dc |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Sat Oct 10 07:59:37 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 12 09:05:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36a75c6f |
7 |
|
8 |
media-libs/libheif: enable tests (again) |
9 |
|
10 |
- go code is needed to run tests, add appropriate REQUIRED_USE entry |
11 |
- 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) |
12 |
|
13 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
14 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
15 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
16 |
|
17 |
media-libs/libheif/libheif-1.7.0-r1.ebuild | 9 ++++++++- |
18 |
media-libs/libheif/libheif-1.7.0-r2.ebuild | 9 ++++++++- |
19 |
media-libs/libheif/libheif-1.9.1.ebuild | 9 ++++++++- |
20 |
media-libs/libheif/libheif-9999.ebuild | 9 ++++++++- |
21 |
4 files changed, 32 insertions(+), 4 deletions(-) |
22 |
|
23 |
diff --git a/media-libs/libheif/libheif-1.7.0-r1.ebuild b/media-libs/libheif/libheif-1.7.0-r1.ebuild |
24 |
index 389834d3586..6eb48cf9b41 100644 |
25 |
--- a/media-libs/libheif/libheif-1.7.0-r1.ebuild |
26 |
+++ b/media-libs/libheif/libheif-1.7.0-r1.ebuild |
27 |
@@ -19,6 +19,8 @@ HOMEPAGE="https://github.com/strukturag/libheif" |
28 |
LICENSE="GPL-3" |
29 |
SLOT="0/1.7" |
30 |
IUSE="gdk-pixbuf go static-libs test +threads" |
31 |
+REQUIRED_USE="test? ( go )" |
32 |
+ |
33 |
RESTRICT="!test? ( test )" |
34 |
|
35 |
BDEPEND="test? ( dev-lang/go )" |
36 |
@@ -49,7 +51,7 @@ src_prepare() { |
37 |
|
38 |
multilib_src_configure() { |
39 |
local econf_args=( |
40 |
- $(multilib_is_native_abi && use_enable go || echo --disable-go) |
41 |
+ $(multilib_is_native_abi && use go || echo --disable-go) |
42 |
$(use_enable gdk-pixbuf) |
43 |
$(use_enable static-libs static) |
44 |
$(use_enable threads multithreading) |
45 |
@@ -57,6 +59,11 @@ multilib_src_configure() { |
46 |
ECONF_SOURCE="${S}" econf "${econf_args[@]}" |
47 |
} |
48 |
|
49 |
+multilib_src_test() { |
50 |
+ default |
51 |
+ emake -C go test |
52 |
+} |
53 |
+ |
54 |
multilib_src_install_all() { |
55 |
find "${ED}" -name '*.la' -delete || die |
56 |
} |
57 |
|
58 |
diff --git a/media-libs/libheif/libheif-1.7.0-r2.ebuild b/media-libs/libheif/libheif-1.7.0-r2.ebuild |
59 |
index e54b807b2df..0e817601bd6 100644 |
60 |
--- a/media-libs/libheif/libheif-1.7.0-r2.ebuild |
61 |
+++ b/media-libs/libheif/libheif-1.7.0-r2.ebuild |
62 |
@@ -19,6 +19,8 @@ HOMEPAGE="https://github.com/strukturag/libheif" |
63 |
LICENSE="GPL-3" |
64 |
SLOT="0/1.7" |
65 |
IUSE="gdk-pixbuf go static-libs test +threads" |
66 |
+REQUIRED_USE="test? ( go )" |
67 |
+ |
68 |
RESTRICT="!test? ( test )" |
69 |
|
70 |
BDEPEND="test? ( dev-lang/go )" |
71 |
@@ -50,7 +52,7 @@ src_prepare() { |
72 |
|
73 |
multilib_src_configure() { |
74 |
local econf_args=( |
75 |
- $(multilib_is_native_abi && use_enable go || echo --disable-go) |
76 |
+ $(multilib_is_native_abi && use go || echo --disable-go) |
77 |
$(use_enable gdk-pixbuf) |
78 |
$(use_enable static-libs static) |
79 |
$(use_enable threads multithreading) |
80 |
@@ -58,6 +60,11 @@ multilib_src_configure() { |
81 |
ECONF_SOURCE="${S}" econf "${econf_args[@]}" |
82 |
} |
83 |
|
84 |
+multilib_src_test() { |
85 |
+ default |
86 |
+ emake -C go test |
87 |
+} |
88 |
+ |
89 |
multilib_src_install_all() { |
90 |
find "${ED}" -name '*.la' -delete || die |
91 |
} |
92 |
|
93 |
diff --git a/media-libs/libheif/libheif-1.9.1.ebuild b/media-libs/libheif/libheif-1.9.1.ebuild |
94 |
index bccbc8c8662..ccfee4058de 100644 |
95 |
--- a/media-libs/libheif/libheif-1.9.1.ebuild |
96 |
+++ b/media-libs/libheif/libheif-1.9.1.ebuild |
97 |
@@ -19,6 +19,8 @@ HOMEPAGE="https://github.com/strukturag/libheif" |
98 |
LICENSE="GPL-3" |
99 |
SLOT="0/1.9" |
100 |
IUSE="gdk-pixbuf go static-libs test +threads" |
101 |
+REQUIRED_USE="test? ( go )" |
102 |
+ |
103 |
RESTRICT="!test? ( test )" |
104 |
|
105 |
BDEPEND="test? ( dev-lang/go )" |
106 |
@@ -47,7 +49,7 @@ src_prepare() { |
107 |
|
108 |
multilib_src_configure() { |
109 |
local econf_args=( |
110 |
- $(multilib_is_native_abi && use_enable go || echo --disable-go) |
111 |
+ $(multilib_is_native_abi && use go || echo --disable-go) |
112 |
$(use_enable gdk-pixbuf) |
113 |
$(use_enable static-libs static) |
114 |
$(use_enable threads multithreading) |
115 |
@@ -55,6 +57,11 @@ multilib_src_configure() { |
116 |
ECONF_SOURCE="${S}" econf "${econf_args[@]}" |
117 |
} |
118 |
|
119 |
+multilib_src_test() { |
120 |
+ default |
121 |
+ emake -C go test |
122 |
+} |
123 |
+ |
124 |
multilib_src_install_all() { |
125 |
find "${ED}" -name '*.la' -delete || die |
126 |
} |
127 |
|
128 |
diff --git a/media-libs/libheif/libheif-9999.ebuild b/media-libs/libheif/libheif-9999.ebuild |
129 |
index bccbc8c8662..ccfee4058de 100644 |
130 |
--- a/media-libs/libheif/libheif-9999.ebuild |
131 |
+++ b/media-libs/libheif/libheif-9999.ebuild |
132 |
@@ -19,6 +19,8 @@ HOMEPAGE="https://github.com/strukturag/libheif" |
133 |
LICENSE="GPL-3" |
134 |
SLOT="0/1.9" |
135 |
IUSE="gdk-pixbuf go static-libs test +threads" |
136 |
+REQUIRED_USE="test? ( go )" |
137 |
+ |
138 |
RESTRICT="!test? ( test )" |
139 |
|
140 |
BDEPEND="test? ( dev-lang/go )" |
141 |
@@ -47,7 +49,7 @@ src_prepare() { |
142 |
|
143 |
multilib_src_configure() { |
144 |
local econf_args=( |
145 |
- $(multilib_is_native_abi && use_enable go || echo --disable-go) |
146 |
+ $(multilib_is_native_abi && use go || echo --disable-go) |
147 |
$(use_enable gdk-pixbuf) |
148 |
$(use_enable static-libs static) |
149 |
$(use_enable threads multithreading) |
150 |
@@ -55,6 +57,11 @@ multilib_src_configure() { |
151 |
ECONF_SOURCE="${S}" econf "${econf_args[@]}" |
152 |
} |
153 |
|
154 |
+multilib_src_test() { |
155 |
+ default |
156 |
+ emake -C go test |
157 |
+} |
158 |
+ |
159 |
multilib_src_install_all() { |
160 |
find "${ED}" -name '*.la' -delete || die |
161 |
} |