1 |
commit: 7c4ff77d046df3b24efdf239f543c1a0d6014341 |
2 |
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Sun May 24 23:54:22 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 25 08:07:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c4ff77d |
7 |
|
8 |
media-libs/gegl: 0.3.34 migrate to EAPI-7 |
9 |
|
10 |
Migrate to EAPI-7 with removing of use of ltprune.eclass |
11 |
and with sorting econf options. |
12 |
Call of function "prune_libtool_files" is replaced with |
13 |
call of "find" expression. |
14 |
|
15 |
Removing "9999" version conditions. |
16 |
|
17 |
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> |
18 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
19 |
|
20 |
media-libs/gegl/gegl-0.3.34-r1.ebuild | 171 ++++++++++++++++++++++++++++++++++ |
21 |
1 file changed, 171 insertions(+) |
22 |
|
23 |
diff --git a/media-libs/gegl/gegl-0.3.34-r1.ebuild b/media-libs/gegl/gegl-0.3.34-r1.ebuild |
24 |
new file mode 100644 |
25 |
index 00000000000..9a69225a627 |
26 |
--- /dev/null |
27 |
+++ b/media-libs/gegl/gegl-0.3.34-r1.ebuild |
28 |
@@ -0,0 +1,171 @@ |
29 |
+# Copyright 1999-2020 Gentoo Authors |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+ |
32 |
+EAPI=7 |
33 |
+PYTHON_COMPAT=( python2_7 ) |
34 |
+ |
35 |
+# vala and introspection support is broken, bug #468208 |
36 |
+VALA_USE_DEPEND=vapigen |
37 |
+ |
38 |
+inherit gnome2-utils eutils autotools python-any-r1 vala |
39 |
+ |
40 |
+SRC_URI="http://download.gimp.org/pub/${PN}/$(ver_cut 1-2)/${P}.tar.bz2" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
42 |
+ |
43 |
+DESCRIPTION="A graph based image processing framework" |
44 |
+HOMEPAGE="http://www.gegl.org/" |
45 |
+ |
46 |
+LICENSE="|| ( GPL-3 LGPL-3 )" |
47 |
+SLOT="0.3" |
48 |
+ |
49 |
+IUSE="cairo cpu_flags_x86_mmx cpu_flags_x86_sse debug ffmpeg +introspection lcms lensfun openexr raw sdl svg test tiff umfpack vala v4l webp" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+REQUIRED_USE=" |
52 |
+ svg? ( cairo ) |
53 |
+ test? ( introspection ) |
54 |
+ vala? ( introspection ) |
55 |
+" |
56 |
+ |
57 |
+RESTRICT="!test? ( test )" |
58 |
+ |
59 |
+# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE |
60 |
+# so there is no chance to support libav right now (Gentoo bug #567638) |
61 |
+# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks! |
62 |
+RDEPEND=" |
63 |
+ >=dev-libs/glib-2.44:2 |
64 |
+ dev-libs/json-glib |
65 |
+ >=media-libs/babl-0.1.66 |
66 |
+ sys-libs/zlib |
67 |
+ >=x11-libs/gdk-pixbuf-2.32:2 |
68 |
+ x11-libs/pango |
69 |
+ |
70 |
+ cairo? ( >=x11-libs/cairo-1.12.2 ) |
71 |
+ ffmpeg? ( >=media-video/ffmpeg-2.8:0= ) |
72 |
+ introspection? ( >=dev-libs/gobject-introspection-1.32:= ) |
73 |
+ virtual/jpeg:0= |
74 |
+ lcms? ( >=media-libs/lcms-2.8:2 ) |
75 |
+ lensfun? ( >=media-libs/lensfun-0.2.5 ) |
76 |
+ openexr? ( >=media-libs/openexr-1.6.1:= ) |
77 |
+ >=media-libs/libpng-1.6.0:0= |
78 |
+ raw? ( >=media-libs/libraw-0.15.4:0= ) |
79 |
+ sdl? ( >=media-libs/libsdl-1.2.0 ) |
80 |
+ svg? ( >=gnome-base/librsvg-2.40.6:2 ) |
81 |
+ tiff? ( >=media-libs/tiff-4:0 ) |
82 |
+ umfpack? ( sci-libs/umfpack ) |
83 |
+ v4l? ( >=media-libs/libv4l-1.0.1 ) |
84 |
+ webp? ( >=media-libs/libwebp-0.5.0:= ) |
85 |
+" |
86 |
+ |
87 |
+DEPEND="${RDEPEND}" |
88 |
+ |
89 |
+BDEPEND=" |
90 |
+ dev-lang/perl |
91 |
+ >=dev-util/gtk-doc-am-1 |
92 |
+ >=sys-devel/gettext-0.19.8 |
93 |
+ >=sys-devel/libtool-2.2 |
94 |
+ virtual/pkgconfig |
95 |
+ test? ( $(python_gen_any_dep '>=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]') ) |
96 |
+ vala? ( $(vala_depend) ) |
97 |
+" |
98 |
+ |
99 |
+pkg_setup() { |
100 |
+ use test && use introspection && python-any-r1_pkg_setup |
101 |
+} |
102 |
+ |
103 |
+PATCHES=( |
104 |
+ "${FILESDIR}"/${PN}-0.3.12-failing-tests.patch |
105 |
+ "${FILESDIR}"/${PN}-0.4.0-ffmpeg-4-0-compat-1.patch # bug 654172 |
106 |
+ "${FILESDIR}"/${PN}-0.4.0-ffmpeg-4-0-compat-2.patch # bug 654172 |
107 |
+) |
108 |
+ |
109 |
+src_prepare() { |
110 |
+ default |
111 |
+ |
112 |
+ # FIXME: the following should be proper patch sent to upstream |
113 |
+ # fix OSX loadable module filename extension |
114 |
+ sed -i -e 's/\.dylib/.bundle/' configure.ac || die |
115 |
+ # don't require Apple's OpenCL on versions of OSX that don't have it |
116 |
+ if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -le 9 ]] ; then |
117 |
+ sed -i -e 's/#ifdef __APPLE__/#if 0/' gegl/opencl/* || die |
118 |
+ fi |
119 |
+ |
120 |
+ # commit 7c78497b : tests that use gegl.png are broken on non-amd64 |
121 |
+ sed -e '/clones.xml/d' \ |
122 |
+ -e '/composite-transform.xml/d' \ |
123 |
+ -i tests/compositions/Makefile.am || die |
124 |
+ |
125 |
+ eautoreconf |
126 |
+ |
127 |
+ gnome2_environment_reset |
128 |
+ |
129 |
+ use vala && vala_src_prepare |
130 |
+} |
131 |
+ |
132 |
+src_configure() { |
133 |
+ # never enable altering of CFLAGS via profile option |
134 |
+ # libspiro: not in portage main tree |
135 |
+ # disable documentation as the generating is bit automagic |
136 |
+ # if anyone wants to work on it just create bug with patch |
137 |
+ |
138 |
+ # Also please note that: |
139 |
+ # |
140 |
+ # - Some auto-detections are not patched away since the docs are |
141 |
+ # not built (--disable-docs, lack of --enable-gtk-doc) and these |
142 |
+ # tools affect re-generation of docs, only |
143 |
+ # (e.g. ruby, asciidoc, dot (of graphviz), enscript) |
144 |
+ # |
145 |
+ # - Parameter --with-exiv2 compiles a noinst-app only, no use |
146 |
+ # |
147 |
+ # - Parameter --disable-workshop disables any use of Lua, effectivly |
148 |
+ # |
149 |
+ # - v4l support does not work with our media-libs/libv4l-0.8.9, |
150 |
+ # upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675 |
151 |
+ # |
152 |
+ # - There are two checks for dot, one controllable by --with(out)-graphviz |
153 |
+ # which toggles HAVE_GRAPHVIZ that is not used anywhere. Yes. |
154 |
+ # |
155 |
+ # - mrg is not in tree and gexiv2 support only has effect when mrg support |
156 |
+ # is enabled |
157 |
+ # |
158 |
+ # So that's why USE="exif graphviz lua v4l" got resolved. More at: |
159 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=451136 |
160 |
+ # |
161 |
+ econf \ |
162 |
+ --disable-docs \ |
163 |
+ --disable-profile \ |
164 |
+ --disable-workshop \ |
165 |
+ --program-suffix=-${SLOT} \ |
166 |
+ --with-gdk-pixbuf \ |
167 |
+ --with-pango \ |
168 |
+ --without-exiv2 \ |
169 |
+ --without-gexiv2 \ |
170 |
+ --without-graphviz \ |
171 |
+ --without-jasper \ |
172 |
+ --without-libspiro \ |
173 |
+ --without-lua \ |
174 |
+ --without-mrg \ |
175 |
+ $(use_enable cpu_flags_x86_mmx mmx) \ |
176 |
+ $(use_enable cpu_flags_x86_sse sse) \ |
177 |
+ $(use_enable debug) \ |
178 |
+ $(use_with cairo) \ |
179 |
+ $(use_with cairo pangocairo) \ |
180 |
+ $(use_with ffmpeg libavformat) \ |
181 |
+ $(use_with lcms) \ |
182 |
+ $(use_with lensfun) \ |
183 |
+ $(use_with openexr) \ |
184 |
+ $(use_with raw libraw) \ |
185 |
+ $(use_with sdl) \ |
186 |
+ $(use_with svg librsvg) \ |
187 |
+ $(use_with tiff libtiff) \ |
188 |
+ $(use_with umfpack) \ |
189 |
+ $(use_with v4l libv4l) \ |
190 |
+ $(use_with v4l libv4l2) \ |
191 |
+ $(use_enable introspection) \ |
192 |
+ $(use_with vala) \ |
193 |
+ $(use_with webp) |
194 |
+} |
195 |
+ |
196 |
+src_install() { |
197 |
+ default |
198 |
+ find "${D}" -name '*.la' -delete || die |
199 |
+} |