1 |
commit: 5c395b0a4a5164a2d7f046b7de9b7db53ae25a3a |
2 |
Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Aug 23 17:01:29 2018 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 25 17:06:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c395b0a |
7 |
|
8 |
media-libs/gegl: version bump to 0.4.8 |
9 |
|
10 |
-0.4.x series is hardcoded to work with OpenEXR v2.2 |
11 |
--v0.4.6: Depend only on OpenEXR 2.2.x |
12 |
--v0.4.8: Made OpenEXR 2.2 the minimum version |
13 |
--v0.4.8: Added patch to remove hard-coded Imath_2_2 namespace |
14 |
---Patch in upstream master |
15 |
|
16 |
-Removed unused versionator eclass |
17 |
|
18 |
-Synced 0.4.8 and 9999 ebuilds |
19 |
|
20 |
media-libs/gegl/Manifest | 1 + |
21 |
.../files/gegl-0.4.8-remove-imath-version.patch | 33 ++++ |
22 |
.../{gegl-9999.ebuild => gegl-0.4.6-r1.ebuild} | 54 ++++--- |
23 |
media-libs/gegl/gegl-0.4.8.ebuild | 174 +++++++++++++++++++++ |
24 |
media-libs/gegl/gegl-9999.ebuild | 160 +++++++++---------- |
25 |
5 files changed, 321 insertions(+), 101 deletions(-) |
26 |
|
27 |
diff --git a/media-libs/gegl/Manifest b/media-libs/gegl/Manifest |
28 |
index c37c0e08687..13739affc93 100644 |
29 |
--- a/media-libs/gegl/Manifest |
30 |
+++ b/media-libs/gegl/Manifest |
31 |
@@ -7,3 +7,4 @@ DIST gegl-0.4.0.tar.bz2 6762190 BLAKE2B c138ee79806178f60eab2fae492fcf441dc49b54 |
32 |
DIST gegl-0.4.2.tar.bz2 6781136 BLAKE2B 522d4e7b2ace519423a66b7e65faab49bd0740173be6a8e108ec95b65c0359937df7b142e0a68589a4d773b839689ad6cf2ee67c5ea5b89267d46199b23e3f15 SHA512 8d842f5e192d279529615e09da8a76b051baa9c257ac699eba5f8ce46b4511554949e35f494e99c190b1477a700e018e2243a9e84c3c79e331824ca364b6cefd |
33 |
DIST gegl-0.4.4.tar.bz2 6817195 BLAKE2B 928e91e61bfee8b9954992e1ad4dbc874a5f53ef5a8274a6805b2c7d9bb007e3ff9ab5e8fc0a767f7e7d05c327581231b42eebcc6f9781f9feb5abe17c22bbdf SHA512 6953bf7df225914ce9c8166f5a0490615664c69d5a66cf8ca805f75cfbe272186c7745d273fcde29c685e22a66d4483dbdf45064ec9c0007fd6d0b8aa3ebb164 |
34 |
DIST gegl-0.4.6.tar.bz2 6931774 BLAKE2B c8fabc8efbcc21a3663c8a3a698e6bc072506a66a21b81e6696c37c81aec1458c695f773c554b6d98c2fd21a3d3ab7fcca4b2f6567ec9d4f94b1e925b9bc9ce5 SHA512 6df34b6e76318a375820bccac6efeb2792c737e47154902fcc08ef93cb45b978992ee263260c99f8e865964d80cd1fac6dc2d6c8e4453174df64a9044b57325e |
35 |
+DIST gegl-0.4.8.tar.bz2 7017022 BLAKE2B ec934fe6faa0c9328ae8c6476e19e175a8e8082e3d1f59052fb83fad766030ede9dd3464a215d332238277492151d988b17c6d3ac87f3d9cec01797acd259fae SHA512 20d2700cc74bce02e3e1b477f5e4dbd6546bb74625de235baaaa31e24f506930927af53de3d0880c0b16f93a10cec993c58a12adba59dec7dda0e389261799aa |
36 |
|
37 |
diff --git a/media-libs/gegl/files/gegl-0.4.8-remove-imath-version.patch b/media-libs/gegl/files/gegl-0.4.8-remove-imath-version.patch |
38 |
new file mode 100644 |
39 |
index 00000000000..54ee791a68e |
40 |
--- /dev/null |
41 |
+++ b/media-libs/gegl/files/gegl-0.4.8-remove-imath-version.patch |
42 |
@@ -0,0 +1,33 @@ |
43 |
+diff -urN a/operations/external/exr-save.cc b/operations/external/exr-save.cc |
44 |
+--- a/operations/external/exr-save.cc 2018-07-11 23:15:19.000000000 +0100 |
45 |
++++ b/operations/external/exr-save.cc 2018-08-22 19:13:26.241432231 +0100 |
46 |
+@@ -145,10 +145,10 @@ |
47 |
+ &blue[0], &blue[1], |
48 |
+ NULL, NULL, NULL); |
49 |
+ { |
50 |
+- Imf::Chromaticities c1 (Imath_2_2::V2f(red[0],red[1]), |
51 |
+- Imath_2_2::V2f(green[0],green[1]), |
52 |
+- Imath_2_2::V2f(blue[0],blue[1]), |
53 |
+- Imath_2_2::V2f(wp[0],wp[1])); |
54 |
++ Imf::Chromaticities c1 (Imath::V2f(red[0],red[1]), |
55 |
++ Imath::V2f(green[0],green[1]), |
56 |
++ Imath::V2f(blue[0],blue[1]), |
57 |
++ Imath::V2f(wp[0],wp[1])); |
58 |
+ Imf::addChromaticities (header, c1); |
59 |
+ } |
60 |
+ } |
61 |
+@@ -184,10 +184,10 @@ |
62 |
+ &green[0], &green[1], |
63 |
+ &blue[0], &blue[1], |
64 |
+ NULL, NULL, NULL); |
65 |
+- Imf::Chromaticities c1 (Imath_2_2::V2f(red[0],red[1]), |
66 |
+- Imath_2_2::V2f(green[0],green[1]), |
67 |
+- Imath_2_2::V2f(blue[0],blue[1]), |
68 |
+- Imath_2_2::V2f(wp[0],wp[1])); |
69 |
++ Imf::Chromaticities c1 (Imath::V2f(red[0],red[1]), |
70 |
++ Imath::V2f(green[0],green[1]), |
71 |
++ Imath::V2f(blue[0],blue[1]), |
72 |
++ Imath::V2f(wp[0],wp[1])); |
73 |
+ Imf::addChromaticities (header, c1); |
74 |
+ } |
75 |
+ |
76 |
|
77 |
diff --git a/media-libs/gegl/gegl-9999.ebuild b/media-libs/gegl/gegl-0.4.6-r1.ebuild |
78 |
similarity index 76% |
79 |
copy from media-libs/gegl/gegl-9999.ebuild |
80 |
copy to media-libs/gegl/gegl-0.4.6-r1.ebuild |
81 |
index 5fe47759f34..0334bc1b3cd 100644 |
82 |
--- a/media-libs/gegl/gegl-9999.ebuild |
83 |
+++ b/media-libs/gegl/gegl-0.4.6-r1.ebuild |
84 |
@@ -1,4 +1,4 @@ |
85 |
-# Copyright 1999-2017 Gentoo Foundation |
86 |
+# Copyright 1999-2018 Gentoo Foundation |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
|
89 |
EAPI=6 |
90 |
@@ -7,64 +7,67 @@ PYTHON_COMPAT=( python2_7 ) |
91 |
# vala and introspection support is broken, bug #468208 |
92 |
VALA_USE_DEPEND=vapigen |
93 |
|
94 |
-inherit versionator gnome2-utils eutils autotools python-any-r1 vala |
95 |
+inherit autotools gnome2-utils python-any-r1 vala |
96 |
|
97 |
if [[ ${PV} == *9999* ]]; then |
98 |
- inherit autotools git-r3 |
99 |
+ inherit git-r3 |
100 |
EGIT_REPO_URI="git://git.gnome.org/gegl" |
101 |
SRC_URI="" |
102 |
else |
103 |
SRC_URI="http://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.bz2" |
104 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
105 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
106 |
fi |
107 |
|
108 |
DESCRIPTION="A graph based image processing framework" |
109 |
HOMEPAGE="http://www.gegl.org/" |
110 |
|
111 |
-LICENSE="|| ( GPL-3 LGPL-3 )" |
112 |
+LICENSE="|| ( GPL-3+ LGPL-3 )" |
113 |
SLOT="0.4" |
114 |
|
115 |
-IUSE="cairo cpu_flags_x86_mmx cpu_flags_x86_sse debug ffmpeg +introspection jpeg2k lcms lensfun libav openexr raw sdl svg test tiff umfpack vala v4l webp" |
116 |
+IUSE="cairo cpu_flags_x86_mmx cpu_flags_x86_sse debug ffmpeg +introspection jpeg2k lcms lensfun openexr raw sdl svg test tiff umfpack vala v4l webp" |
117 |
REQUIRED_USE=" |
118 |
svg? ( cairo ) |
119 |
vala? ( introspection ) |
120 |
" |
121 |
|
122 |
+# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE |
123 |
+# so there is no chance to support libav right now (Gentoo bug #567638) |
124 |
+# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks! |
125 |
RDEPEND=" |
126 |
>=dev-libs/glib-2.44:2 |
127 |
dev-libs/json-glib |
128 |
- >=media-libs/babl-0.1.30 |
129 |
+ >=media-libs/babl-0.1.54 |
130 |
sys-libs/zlib |
131 |
>=x11-libs/gdk-pixbuf-2.32:2 |
132 |
x11-libs/pango |
133 |
|
134 |
- cairo? ( x11-libs/cairo ) |
135 |
+ cairo? ( >=x11-libs/cairo-1.12.2 ) |
136 |
ffmpeg? ( |
137 |
- libav? ( media-video/libav:0= ) |
138 |
- !libav? ( media-video/ffmpeg:0= ) |
139 |
+ >=media-video/ffmpeg-2.8:0= |
140 |
) |
141 |
introspection? ( >=dev-libs/gobject-introspection-1.32:= ) |
142 |
virtual/jpeg:0= |
143 |
jpeg2k? ( >=media-libs/jasper-1.900.1:= ) |
144 |
- lcms? ( >=media-libs/lcms-2.2:2 ) |
145 |
+ lcms? ( >=media-libs/lcms-2.8:2 ) |
146 |
lensfun? ( >=media-libs/lensfun-0.2.5 ) |
147 |
- openexr? ( media-libs/openexr:= ) |
148 |
- media-libs/libpng:0= |
149 |
+ openexr? ( =media-libs/openexr-2.2*:= ) |
150 |
+ >=media-libs/libpng-1.6.0:0= |
151 |
raw? ( >=media-libs/libraw-0.15.4:0= ) |
152 |
- sdl? ( media-libs/libsdl ) |
153 |
- svg? ( >=gnome-base/librsvg-2.14:2 ) |
154 |
+ sdl? ( >=media-libs/libsdl-1.2.0 ) |
155 |
+ svg? ( >=gnome-base/librsvg-2.40.6:2 ) |
156 |
tiff? ( >=media-libs/tiff-4:0 ) |
157 |
umfpack? ( sci-libs/umfpack ) |
158 |
v4l? ( >=media-libs/libv4l-1.0.1 ) |
159 |
- webp? ( media-libs/libwebp ) |
160 |
+ webp? ( >=media-libs/libwebp-0.5.0:= ) |
161 |
" |
162 |
DEPEND="${RDEPEND} |
163 |
>=dev-util/gtk-doc-am-1 |
164 |
- >=dev-util/intltool-0.40.1 |
165 |
+ >=sys-devel/gettext-0.19.8 |
166 |
dev-lang/perl |
167 |
virtual/pkgconfig |
168 |
>=sys-devel/libtool-2.2 |
169 |
- test? ( introspection? ( |
170 |
+ test? ( ffmpeg? ( media-libs/gexiv2 ) |
171 |
+ introspection? ( |
172 |
$(python_gen_any_dep '>=dev-python/pygobject-3.2[${PYTHON_USEDEP}]') ) ) |
173 |
vala? ( $(vala_depend) ) |
174 |
" |
175 |
@@ -73,6 +76,10 @@ pkg_setup() { |
176 |
use test && use introspection && python-any-r1_pkg_setup |
177 |
} |
178 |
|
179 |
+PATCHES=( |
180 |
+ "${FILESDIR}"/${PN}-0.3.12-failing-tests.patch |
181 |
+) |
182 |
+ |
183 |
src_prepare() { |
184 |
default |
185 |
|
186 |
@@ -96,6 +103,14 @@ src_prepare() { |
187 |
use vala && vala_src_prepare |
188 |
} |
189 |
|
190 |
+_use_with_both() { |
191 |
+ if use "$1" && use "$2"; then |
192 |
+ echo "--with-$3" |
193 |
+ else |
194 |
+ echo "--without-$3" |
195 |
+ fi |
196 |
+} |
197 |
+ |
198 |
src_configure() { |
199 |
# never enable altering of CFLAGS via profile option |
200 |
# libspiro: not in portage main tree |
201 |
@@ -110,6 +125,7 @@ src_configure() { |
202 |
# (e.g. ruby, asciidoc, dot (of graphviz), enscript) |
203 |
# |
204 |
# - Parameter --with-exiv2 compiles a noinst-app only, no use |
205 |
+ # but needed during testing |
206 |
# |
207 |
# - Parameter --disable-workshop disables any use of Lua, effectivly |
208 |
# |
209 |
@@ -141,7 +157,7 @@ src_configure() { |
210 |
$(use_with cairo pangocairo) \ |
211 |
--without-exiv2 \ |
212 |
$(use_with ffmpeg libavformat) \ |
213 |
- --without-gexiv2 \ |
214 |
+ $(_use_with_both ffmpeg test gexiv2) \ |
215 |
--without-graphviz \ |
216 |
$(use_with jpeg2k jasper) \ |
217 |
$(use_with lcms) \ |
218 |
|
219 |
diff --git a/media-libs/gegl/gegl-0.4.8.ebuild b/media-libs/gegl/gegl-0.4.8.ebuild |
220 |
new file mode 100644 |
221 |
index 00000000000..92178abdfdf |
222 |
--- /dev/null |
223 |
+++ b/media-libs/gegl/gegl-0.4.8.ebuild |
224 |
@@ -0,0 +1,174 @@ |
225 |
+# Copyright 1999-2018 Gentoo Foundation |
226 |
+# Distributed under the terms of the GNU General Public License v2 |
227 |
+ |
228 |
+EAPI=6 |
229 |
+PYTHON_COMPAT=( python2_7 ) |
230 |
+ |
231 |
+# vala and introspection support is broken, bug #468208 |
232 |
+VALA_USE_DEPEND=vapigen |
233 |
+ |
234 |
+inherit autotools gnome2-utils python-any-r1 vala |
235 |
+ |
236 |
+if [[ ${PV} == *9999* ]]; then |
237 |
+ inherit git-r3 |
238 |
+ EGIT_REPO_URI="git://git.gnome.org/gegl" |
239 |
+ SRC_URI="" |
240 |
+else |
241 |
+ SRC_URI="http://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.bz2" |
242 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
243 |
+fi |
244 |
+ |
245 |
+DESCRIPTION="A graph based image processing framework" |
246 |
+HOMEPAGE="http://www.gegl.org/" |
247 |
+ |
248 |
+LICENSE="|| ( GPL-3+ LGPL-3 )" |
249 |
+SLOT="0.4" |
250 |
+ |
251 |
+IUSE="cairo cpu_flags_x86_mmx cpu_flags_x86_sse debug ffmpeg +introspection jpeg2k lcms lensfun libav openexr raw sdl svg test tiff umfpack vala v4l webp" |
252 |
+REQUIRED_USE=" |
253 |
+ svg? ( cairo ) |
254 |
+ vala? ( introspection ) |
255 |
+" |
256 |
+ |
257 |
+# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE |
258 |
+# so there is no chance to support libav right now (Gentoo bug #567638) |
259 |
+# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks! |
260 |
+RDEPEND=" |
261 |
+ >=dev-libs/glib-2.44:2 |
262 |
+ dev-libs/json-glib |
263 |
+ >=media-libs/babl-0.1.54 |
264 |
+ >=media-libs/libpng-1.6.0:0= |
265 |
+ sys-libs/zlib |
266 |
+ virtual/jpeg:0= |
267 |
+ >=x11-libs/gdk-pixbuf-2.32:2 |
268 |
+ x11-libs/pango |
269 |
+ cairo? ( >=x11-libs/cairo-1.12.2 ) |
270 |
+ ffmpeg? ( |
271 |
+ libav? ( media-video/libav:0= ) |
272 |
+ !libav? ( media-video/ffmpeg:0= ) |
273 |
+ ) |
274 |
+ introspection? ( >=dev-libs/gobject-introspection-1.32:= ) |
275 |
+ jpeg2k? ( >=media-libs/jasper-1.900.1:= ) |
276 |
+ lcms? ( >=media-libs/lcms-2.8:2 ) |
277 |
+ lensfun? ( >=media-libs/lensfun-0.2.5 ) |
278 |
+ openexr? ( >=media-libs/openexr-2.2.0:= ) |
279 |
+ raw? ( >=media-libs/libraw-0.15.4:0= ) |
280 |
+ sdl? ( >=media-libs/libsdl-1.2.0 ) |
281 |
+ svg? ( >=gnome-base/librsvg-2.40.6:2 ) |
282 |
+ tiff? ( >=media-libs/tiff-4:0 ) |
283 |
+ umfpack? ( sci-libs/umfpack ) |
284 |
+ v4l? ( >=media-libs/libv4l-1.0.1 ) |
285 |
+ webp? ( >=media-libs/libwebp-0.5.0:= ) |
286 |
+" |
287 |
+DEPEND="${RDEPEND} |
288 |
+ dev-lang/perl |
289 |
+ >=dev-util/gtk-doc-am-1 |
290 |
+ >=sys-devel/gettext-0.19.8 |
291 |
+ virtual/pkgconfig |
292 |
+ >=sys-devel/libtool-2.2 |
293 |
+ test? ( ffmpeg? ( media-libs/gexiv2 ) |
294 |
+ introspection? ( |
295 |
+ $(python_gen_any_dep '>=dev-python/pygobject-3.2[${PYTHON_USEDEP}]') |
296 |
+ ) |
297 |
+ ) |
298 |
+ vala? ( $(vala_depend) ) |
299 |
+" |
300 |
+ |
301 |
+PATCHES=( |
302 |
+ "${FILESDIR}/${PN}-0.3.12-failing-tests.patch" |
303 |
+ "${FILESDIR}/${P}-remove-imath-version.patch" |
304 |
+) |
305 |
+ |
306 |
+pkg_setup() { |
307 |
+ use test && use introspection && python-any-r1_pkg_setup |
308 |
+} |
309 |
+ |
310 |
+src_prepare() { |
311 |
+ default |
312 |
+ |
313 |
+ # FIXME: the following should be proper patch sent to upstream |
314 |
+ # fix OSX loadable module filename extension |
315 |
+ sed -i -e 's/\.dylib/.bundle/' configure.ac || die |
316 |
+ # don't require Apple's OpenCL on versions of OSX that don't have it |
317 |
+ if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -le 9 ]] ; then |
318 |
+ sed -i -e 's/#ifdef __APPLE__/#if 0/' gegl/opencl/* || die |
319 |
+ fi |
320 |
+ |
321 |
+ # commit 7c78497b : tests that use gegl.png are broken on non-amd64 |
322 |
+ sed -e '/clones.xml/d' \ |
323 |
+ -e '/composite-transform.xml/d' \ |
324 |
+ -i tests/compositions/Makefile.am || die |
325 |
+ |
326 |
+ eautoreconf |
327 |
+ |
328 |
+ gnome2_environment_reset |
329 |
+ |
330 |
+ use vala && vala_src_prepare |
331 |
+} |
332 |
+ |
333 |
+src_configure() { |
334 |
+ local myeconfargs=( |
335 |
+ # disable documentation as the generating is bit automagic |
336 |
+ # if anyone wants to work on it just create bug with patch |
337 |
+ --disable-docs |
338 |
+ # never enable altering of CFLAGS via profile option |
339 |
+ --disable-profile |
340 |
+ --disable-silent-rules |
341 |
+ # - Parameter --disable-workshop disables any use of Lua, effectivly |
342 |
+ --disable-workshop |
343 |
+ --program-suffix=-${SLOT} |
344 |
+ --with-gdk-pixbuf |
345 |
+ --with-pango |
346 |
+ # - Parameter --with-exiv2 compiles a noinst-app only, no use |
347 |
+ # but needed during testing |
348 |
+ --without-exiv2 |
349 |
+ # - There are two checks for dot, one controllable by --with(out)-graphviz |
350 |
+ # which toggles HAVE_GRAPHVIZ that is not used anywhere. Yes. |
351 |
+ --without-graphviz |
352 |
+ # libspiro: not in portage main tree |
353 |
+ --without-libspiro |
354 |
+ --without-lua |
355 |
+ --without-mrg |
356 |
+ $(use_enable cpu_flags_x86_mmx mmx) |
357 |
+ $(use_enable cpu_flags_x86_sse sse) |
358 |
+ $(use_enable debug) |
359 |
+ $(use_enable introspection) |
360 |
+ $(use_with cairo) |
361 |
+ $(use_with cairo pangocairo) |
362 |
+ $(use_with ffmpeg libavformat) |
363 |
+ $(use_with jpeg2k jasper) |
364 |
+ $(use_with lcms) |
365 |
+ $(use_with lensfun) |
366 |
+ $(use_with openexr) |
367 |
+ $(use_with raw libraw) |
368 |
+ $(use_with sdl) |
369 |
+ $(use_with svg librsvg) |
370 |
+ $(use_with tiff libtiff) |
371 |
+ $(use_with umfpack) |
372 |
+ # - v4l support does not work with our media-libs/libv4l-0.8.9, |
373 |
+ # upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675 |
374 |
+ $(use_with v4l libv4l) |
375 |
+ $(use_with v4l libv4l2) |
376 |
+ $(use_with vala) |
377 |
+ $(use_with webp) |
378 |
+ ) |
379 |
+ |
380 |
+ if use test; then |
381 |
+ myeconfargs+=( $(use_with ffmpeg gexiv2) ) |
382 |
+ else |
383 |
+ myeconfargs+=( --without-gexiv2 ) |
384 |
+ fi |
385 |
+ |
386 |
+ econf "${myeconfargs[@]}" |
387 |
+} |
388 |
+ |
389 |
+src_compile() { |
390 |
+ default |
391 |
+ |
392 |
+ [[ ${PV} == *9999* ]] && emake ./ChangeLog # "./" prevents "Circular ChangeLog <- ChangeLog dependency dropped." |
393 |
+} |
394 |
+ |
395 |
+src_install() { |
396 |
+ default |
397 |
+ find "${ED}" -name '*.la' -delete || die |
398 |
+} |
399 |
|
400 |
diff --git a/media-libs/gegl/gegl-9999.ebuild b/media-libs/gegl/gegl-9999.ebuild |
401 |
index 5fe47759f34..07ea6ab5146 100644 |
402 |
--- a/media-libs/gegl/gegl-9999.ebuild |
403 |
+++ b/media-libs/gegl/gegl-9999.ebuild |
404 |
@@ -1,4 +1,4 @@ |
405 |
-# Copyright 1999-2017 Gentoo Foundation |
406 |
+# Copyright 1999-2018 Gentoo Foundation |
407 |
# Distributed under the terms of the GNU General Public License v2 |
408 |
|
409 |
EAPI=6 |
410 |
@@ -7,21 +7,21 @@ PYTHON_COMPAT=( python2_7 ) |
411 |
# vala and introspection support is broken, bug #468208 |
412 |
VALA_USE_DEPEND=vapigen |
413 |
|
414 |
-inherit versionator gnome2-utils eutils autotools python-any-r1 vala |
415 |
+inherit autotools gnome2-utils python-any-r1 vala |
416 |
|
417 |
if [[ ${PV} == *9999* ]]; then |
418 |
- inherit autotools git-r3 |
419 |
- EGIT_REPO_URI="git://git.gnome.org/gegl" |
420 |
+ inherit git-r3 |
421 |
+ EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gegl.git" |
422 |
SRC_URI="" |
423 |
else |
424 |
SRC_URI="http://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.bz2" |
425 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
426 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
427 |
fi |
428 |
|
429 |
DESCRIPTION="A graph based image processing framework" |
430 |
HOMEPAGE="http://www.gegl.org/" |
431 |
|
432 |
-LICENSE="|| ( GPL-3 LGPL-3 )" |
433 |
+LICENSE="|| ( GPL-3+ LGPL-3 )" |
434 |
SLOT="0.4" |
435 |
|
436 |
IUSE="cairo cpu_flags_x86_mmx cpu_flags_x86_sse debug ffmpeg +introspection jpeg2k lcms lensfun libav openexr raw sdl svg test tiff umfpack vala v4l webp" |
437 |
@@ -30,42 +30,47 @@ REQUIRED_USE=" |
438 |
vala? ( introspection ) |
439 |
" |
440 |
|
441 |
+# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE |
442 |
+# so there is no chance to support libav right now (Gentoo bug #567638) |
443 |
+# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks! |
444 |
RDEPEND=" |
445 |
>=dev-libs/glib-2.44:2 |
446 |
dev-libs/json-glib |
447 |
- >=media-libs/babl-0.1.30 |
448 |
+ >=media-libs/babl-0.1.54 |
449 |
+ >=media-libs/libpng-1.6.0:0= |
450 |
sys-libs/zlib |
451 |
+ virtual/jpeg:0= |
452 |
>=x11-libs/gdk-pixbuf-2.32:2 |
453 |
x11-libs/pango |
454 |
- |
455 |
- cairo? ( x11-libs/cairo ) |
456 |
+ cairo? ( >=x11-libs/cairo-1.12.2 ) |
457 |
ffmpeg? ( |
458 |
libav? ( media-video/libav:0= ) |
459 |
!libav? ( media-video/ffmpeg:0= ) |
460 |
) |
461 |
introspection? ( >=dev-libs/gobject-introspection-1.32:= ) |
462 |
- virtual/jpeg:0= |
463 |
jpeg2k? ( >=media-libs/jasper-1.900.1:= ) |
464 |
- lcms? ( >=media-libs/lcms-2.2:2 ) |
465 |
+ lcms? ( >=media-libs/lcms-2.8:2 ) |
466 |
lensfun? ( >=media-libs/lensfun-0.2.5 ) |
467 |
- openexr? ( media-libs/openexr:= ) |
468 |
- media-libs/libpng:0= |
469 |
+ openexr? ( >=media-libs/openexr-2.2.0:= ) |
470 |
raw? ( >=media-libs/libraw-0.15.4:0= ) |
471 |
- sdl? ( media-libs/libsdl ) |
472 |
- svg? ( >=gnome-base/librsvg-2.14:2 ) |
473 |
+ sdl? ( >=media-libs/libsdl-1.2.0 ) |
474 |
+ svg? ( >=gnome-base/librsvg-2.40.6:2 ) |
475 |
tiff? ( >=media-libs/tiff-4:0 ) |
476 |
umfpack? ( sci-libs/umfpack ) |
477 |
v4l? ( >=media-libs/libv4l-1.0.1 ) |
478 |
- webp? ( media-libs/libwebp ) |
479 |
+ webp? ( >=media-libs/libwebp-0.5.0:= ) |
480 |
" |
481 |
DEPEND="${RDEPEND} |
482 |
- >=dev-util/gtk-doc-am-1 |
483 |
- >=dev-util/intltool-0.40.1 |
484 |
dev-lang/perl |
485 |
+ >=dev-util/gtk-doc-am-1 |
486 |
+ >=sys-devel/gettext-0.19.8 |
487 |
virtual/pkgconfig |
488 |
>=sys-devel/libtool-2.2 |
489 |
- test? ( introspection? ( |
490 |
- $(python_gen_any_dep '>=dev-python/pygobject-3.2[${PYTHON_USEDEP}]') ) ) |
491 |
+ test? ( ffmpeg? ( media-libs/gexiv2 ) |
492 |
+ introspection? ( |
493 |
+ $(python_gen_any_dep '>=dev-python/pygobject-3.2[${PYTHON_USEDEP}]') |
494 |
+ ) |
495 |
+ ) |
496 |
vala? ( $(vala_depend) ) |
497 |
" |
498 |
|
499 |
@@ -97,68 +102,59 @@ src_prepare() { |
500 |
} |
501 |
|
502 |
src_configure() { |
503 |
- # never enable altering of CFLAGS via profile option |
504 |
- # libspiro: not in portage main tree |
505 |
- # disable documentation as the generating is bit automagic |
506 |
- # if anyone wants to work on it just create bug with patch |
507 |
- |
508 |
- # Also please note that: |
509 |
- # |
510 |
- # - Some auto-detections are not patched away since the docs are |
511 |
- # not built (--disable-docs, lack of --enable-gtk-doc) and these |
512 |
- # tools affect re-generation of docs, only |
513 |
- # (e.g. ruby, asciidoc, dot (of graphviz), enscript) |
514 |
- # |
515 |
- # - Parameter --with-exiv2 compiles a noinst-app only, no use |
516 |
- # |
517 |
- # - Parameter --disable-workshop disables any use of Lua, effectivly |
518 |
- # |
519 |
- # - v4l support does not work with our media-libs/libv4l-0.8.9, |
520 |
- # upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675 |
521 |
- # |
522 |
- # - There are two checks for dot, one controllable by --with(out)-graphviz |
523 |
- # which toggles HAVE_GRAPHVIZ that is not used anywhere. Yes. |
524 |
- # |
525 |
- # - mrg is not in tree and gexiv2 support only has effect when mrg support |
526 |
- # is enabled |
527 |
- # |
528 |
- # So that's why USE="exif graphviz lua v4l" got resolved. More at: |
529 |
- # https://bugs.gentoo.org/show_bug.cgi?id=451136 |
530 |
- # |
531 |
- econf \ |
532 |
- --disable-docs \ |
533 |
- --disable-profile \ |
534 |
- --disable-silent-rules \ |
535 |
- --disable-workshop \ |
536 |
- --program-suffix=-${SLOT} \ |
537 |
- --with-gdk-pixbuf \ |
538 |
- --with-pango \ |
539 |
- --without-libspiro \ |
540 |
- $(use_enable cpu_flags_x86_mmx mmx) \ |
541 |
- $(use_enable cpu_flags_x86_sse sse) \ |
542 |
- $(use_enable debug) \ |
543 |
- $(use_with cairo) \ |
544 |
- $(use_with cairo pangocairo) \ |
545 |
- --without-exiv2 \ |
546 |
- $(use_with ffmpeg libavformat) \ |
547 |
- --without-gexiv2 \ |
548 |
- --without-graphviz \ |
549 |
- $(use_with jpeg2k jasper) \ |
550 |
- $(use_with lcms) \ |
551 |
- $(use_with lensfun) \ |
552 |
- --without-lua \ |
553 |
- --without-mrg \ |
554 |
- $(use_with openexr) \ |
555 |
- $(use_with raw libraw) \ |
556 |
- $(use_with sdl) \ |
557 |
- $(use_with svg librsvg) \ |
558 |
- $(use_with tiff libtiff) \ |
559 |
- $(use_with umfpack) \ |
560 |
- $(use_with v4l libv4l) \ |
561 |
- $(use_with v4l libv4l2) \ |
562 |
- $(use_enable introspection) \ |
563 |
- $(use_with vala) \ |
564 |
+ local myeconfargs=( |
565 |
+ # disable documentation as the generating is bit automagic |
566 |
+ # if anyone wants to work on it just create bug with patch |
567 |
+ --disable-docs |
568 |
+ # never enable altering of CFLAGS via profile option |
569 |
+ --disable-profile |
570 |
+ --disable-silent-rules |
571 |
+ # - Parameter --disable-workshop disables any use of Lua, effectivly |
572 |
+ --disable-workshop |
573 |
+ --program-suffix=-${SLOT} |
574 |
+ --with-gdk-pixbuf |
575 |
+ --with-pango |
576 |
+ # - Parameter --with-exiv2 compiles a noinst-app only, no use |
577 |
+ # but needed during testing |
578 |
+ --without-exiv2 |
579 |
+ # - There are two checks for dot, one controllable by --with(out)-graphviz |
580 |
+ # which toggles HAVE_GRAPHVIZ that is not used anywhere. Yes. |
581 |
+ --without-graphviz |
582 |
+ # libspiro: not in portage main tree |
583 |
+ --without-libspiro |
584 |
+ --without-lua |
585 |
+ --without-mrg |
586 |
+ $(use_enable cpu_flags_x86_mmx mmx) |
587 |
+ $(use_enable cpu_flags_x86_sse sse) |
588 |
+ $(use_enable debug) |
589 |
+ $(use_enable introspection) |
590 |
+ $(use_with cairo) |
591 |
+ $(use_with cairo pangocairo) |
592 |
+ $(use_with ffmpeg libavformat) |
593 |
+ $(use_with jpeg2k jasper) |
594 |
+ $(use_with lcms) |
595 |
+ $(use_with lensfun) |
596 |
+ $(use_with openexr) |
597 |
+ $(use_with raw libraw) |
598 |
+ $(use_with sdl) |
599 |
+ $(use_with svg librsvg) |
600 |
+ $(use_with tiff libtiff) |
601 |
+ $(use_with umfpack) |
602 |
+ # - v4l support does not work with our media-libs/libv4l-0.8.9, |
603 |
+ # upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675 |
604 |
+ $(use_with v4l libv4l) |
605 |
+ $(use_with v4l libv4l2) |
606 |
+ $(use_with vala) |
607 |
$(use_with webp) |
608 |
+ ) |
609 |
+ |
610 |
+ if use test; then |
611 |
+ myeconfargs+=( $(use_with ffmpeg gexiv2) ) |
612 |
+ else |
613 |
+ myeconfargs+=( "--without-gexiv2" ) |
614 |
+ fi |
615 |
+ |
616 |
+ econf "${myeconfargs[@]}" |
617 |
} |
618 |
|
619 |
src_compile() { |
620 |
@@ -169,5 +165,5 @@ src_compile() { |
621 |
|
622 |
src_install() { |
623 |
default |
624 |
- prune_libtool_files --all |
625 |
+ find "${ED}" -name '*.la' -delete || die |
626 |
} |