Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: media-libs/cogl/, profiles/
Date: Sun, 01 Dec 2013 11:30:54
Message-Id: 1385897405.e9bb6342852154a06484222758c85f3b56976fc6.eva@gentoo
1 commit: e9bb6342852154a06484222758c85f3b56976fc6
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 29 20:02:27 2013 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 1 11:30:05 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=e9bb6342
7
8 media-libs/cogl: 1.14.1_pre20130901-r1 → 1.16.0
9
10 ---
11 .../{cogl-1.13.4.ebuild => cogl-1.16.0.ebuild} | 61 +++++++----
12 media-libs/cogl/cogl-9999.ebuild | 112 +++++++++++++--------
13 profiles/package.use.mask | 7 ++
14 3 files changed, 115 insertions(+), 65 deletions(-)
15
16 diff --git a/media-libs/cogl/cogl-1.13.4.ebuild b/media-libs/cogl/cogl-1.16.0.ebuild
17 similarity index 63%
18 rename from media-libs/cogl/cogl-1.13.4.ebuild
19 rename to media-libs/cogl/cogl-1.16.0.ebuild
20 index 0899ddd..9e4f292 100644
21 --- a/media-libs/cogl/cogl-1.13.4.ebuild
22 +++ b/media-libs/cogl/cogl-1.16.0.ebuild
23 @@ -6,19 +6,19 @@ EAPI="5"
24 CLUTTER_LA_PUNT="yes"
25
26 # Inherit gnome2 after clutter to download sources from gnome.org
27 -inherit eutils clutter gnome2 multilib virtualx
28 +inherit clutter gnome2 multilib virtualx
29
30 DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures"
31 HOMEPAGE="http://www.clutter-project.org/"
32
33 LICENSE="LGPL-2.1+ FDL-1.1+"
34 -SLOT="1.0/12"
35 -IUSE="doc examples +introspection +opengl gles2 +pango"
36 +SLOT="1.0/12" # subslot = .so version
37 +# doc and profile disable for now due bugs #484750 and #483332
38 +IUSE="examples gles2 gstreamer +introspection +opengl +pango test" # doc profile
39 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
40
41 -# XXX: need uprof for optional profiling support
42 COMMON_DEPEND="
43 - >=dev-libs/glib-2.32.0:2
44 + >=dev-libs/glib-2.32:2
45 x11-libs/cairo:=
46 >=x11-libs/gdk-pixbuf-2:2
47 x11-libs/libdrm:=
48 @@ -26,10 +26,13 @@ COMMON_DEPEND="
49 >=x11-libs/libXcomposite-0.4
50 x11-libs/libXdamage
51 x11-libs/libXext
52 - x11-libs/libXrandr
53 >=x11-libs/libXfixes-3
54 + >=x11-libs/libXrandr-1.2
55 virtual/opengl
56 gles2? ( media-libs/mesa[gles2] )
57 + gstreamer? (
58 + media-libs/gstreamer:1.0
59 + media-libs/gst-plugins-base:1.0 )
60
61 introspection? ( >=dev-libs/gobject-introspection-1.34.2 )
62 pango? ( >=x11-libs/pango-1.20.0[introspection?] )
63 @@ -41,32 +44,56 @@ DEPEND="${COMMON_DEPEND}
64 >=dev-util/gtk-doc-am-1.13
65 sys-devel/gettext
66 virtual/pkgconfig
67 - doc? ( >=dev-util/gtk-doc-1.13 )
68 - test? ( app-admin/eselect-opengl
69 + test? (
70 + app-admin/eselect-opengl
71 media-libs/mesa[classic] )
72 "
73 +# doc? ( >=dev-util/gtk-doc-1.13 )
74 # Need classic mesa swrast for tests, llvmpipe causes a test failure
75
76 +src_prepare() {
77 + # Do not build examples
78 + sed -e "s/^\(SUBDIRS +=.*\)examples\(.*\)$/\1\2/" \
79 + -i Makefile.am Makefile.in || die
80 +
81 + if ! use test ; then
82 + # For some reason the configure switch will not completely disable
83 + # tests being built
84 + sed -e "s/^\(SUBDIRS =.*\)test-fixtures\(.*\)$/\1\2/" \
85 + -e "s/^\(SUBDIRS +=.*\)tests\(.*\)$/\1\2/" \
86 + -e "s/^\(.*am__append.* \)tests\(.*\)$/\1\2/" \
87 + -i Makefile.am Makefile.in || die
88 + fi
89 +
90 + gnome2_src_prepare
91 +}
92 +
93 src_configure() {
94 - # XXX: think about kms-egl, quartz, sdl, wayland
95 + # TODO: think about kms-egl, quartz, sdl, wayland
96 # Prefer gl over gles2 if both are selected
97 + # Profiling needs uprof, which is not available in portage yet, bug #484750
98 + # FIXME: Doesn't provide prebuilt docs, but they can neither be rebuilt, bug #483332
99 gnome2_src_configure \
100 --disable-examples-install \
101 - --disable-profile \
102 --disable-maintainer-flags \
103 --enable-cairo \
104 --enable-deprecated \
105 --enable-gdk-pixbuf \
106 --enable-glib \
107 - $(use_enable doc gtk-doc) \
108 + --disable-gtk-doc \
109 $(use_enable opengl glx) \
110 $(use_enable opengl gl) \
111 $(use_enable gles2) \
112 $(use_enable gles2 cogl-gles2) \
113 $(use_enable gles2 xlib-egl-platform) \
114 $(usex gles2 --with-default-driver=$(usex opengl gl gles2)) \
115 + $(use_enable gstreamer cogl-gst) \
116 $(use_enable introspection) \
117 - $(use_enable pango cogl-pango)
118 + $(use_enable pango cogl-pango) \
119 + $(use_enable test unit-tests) \
120 + --disable-profile
121 +# $(use_enable doc gtk-doc) \
122 +# $(use_enable profile)
123 }
124
125 src_test() {
126 @@ -90,13 +117,3 @@ src_install() {
127 # Remove silly examples-data directory
128 rm -rvf "${ED}/usr/share/cogl/examples-data/" || die
129 }
130 -
131 -pkg_preinst() {
132 - gnome2_pkg_preinst
133 - preserve_old_lib /usr/$(get_libdir)/libcogl.so.9
134 -}
135 -
136 -pkg_postinst() {
137 - gnome2_pkg_postinst
138 - preserve_old_lib_notify /usr/$(get_libdir)/libcogl.so.9
139 -}
140
141 diff --git a/media-libs/cogl/cogl-9999.ebuild b/media-libs/cogl/cogl-9999.ebuild
142 index 4a4da33..acf6587 100644
143 --- a/media-libs/cogl/cogl-9999.ebuild
144 +++ b/media-libs/cogl/cogl-9999.ebuild
145 @@ -15,16 +15,18 @@ DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures"
146 HOMEPAGE="http://www.clutter-project.org/"
147
148 LICENSE="LGPL-2.1+ FDL-1.1+"
149 -SLOT="1.0/11"
150 -IUSE="doc examples +introspection +opengl gles2 +pango"
151 +SLOT="1.0/12" # subslot = .so version
152 +# doc and profile disable for now due bugs #484750 and #483332
153 +IUSE="examples gles2 gstreamer +introspection +opengl +pango test" # doc profile
154 if [[ ${PV} = 9999 ]]; then
155 KEYWORDS=""
156 + IUSE="${IUSE} doc"
157 else
158 - KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~x86"
159 + KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
160 fi
161
162 -# XXX: need uprof for optional profiling support
163 -COMMON_DEPEND=">=dev-libs/glib-2.28.0:2
164 +COMMON_DEPEND="
165 + >=dev-libs/glib-2.32:2
166 x11-libs/cairo:=
167 >=x11-libs/gdk-pixbuf-2:2
168 x11-libs/libdrm:=
169 @@ -33,50 +35,81 @@ COMMON_DEPEND=">=dev-libs/glib-2.28.0:2
170 x11-libs/libXdamage
171 x11-libs/libXext
172 >=x11-libs/libXfixes-3
173 + >=x11-libs/libXrandr-1.2
174 virtual/opengl
175 gles2? ( media-libs/mesa[gles2] )
176 + gstreamer? (
177 + media-libs/gstreamer:1.0
178 + media-libs/gst-plugins-base:1.0 )
179
180 - introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
181 - pango? ( >=x11-libs/pango-1.20.0[introspection?] )"
182 + introspection? ( >=dev-libs/gobject-introspection-1.34.2 )
183 + pango? ( >=x11-libs/pango-1.20.0[introspection?] )
184 +"
185 # before clutter-1.7, cogl was part of clutter
186 RDEPEND="${COMMON_DEPEND}
187 !<media-libs/clutter-1.7"
188 DEPEND="${COMMON_DEPEND}
189 + >=dev-util/gtk-doc-am-1.13
190 sys-devel/gettext
191 virtual/pkgconfig
192 - doc? ( app-text/docbook-xml-dtd:4.1.2
193 - >=dev-util/gtk-doc-1.13 )
194 - test? ( app-admin/eselect-opengl
195 - media-libs/mesa[classic] )"
196 + test? (
197 + app-admin/eselect-opengl
198 + media-libs/mesa[classic] )
199 +"
200 # Need classic mesa swrast for tests, llvmpipe causes a test failure
201
202 +if [[ ${PV} = 9999 ]]; then
203 + DEPEND="${DEPEND}
204 + doc? (
205 + app-text/docbook-xml-dtd:4.1.2
206 + >=dev-util/gtk-doc-1.13 )"
207 +fi
208 +
209 src_prepare() {
210 - DOCS="NEWS README"
211 - EXAMPLES="examples/{*.c,*.jpg}"
212 - # XXX: think about kms-egl, quartz, sdl, wayland
213 - # Prefer gl over gles2 if both are selected
214 - G2CONF="${G2CONF}
215 - --disable-examples-install
216 - --disable-profile
217 - --disable-maintainer-flags
218 - --enable-cairo
219 - --enable-gdk-pixbuf
220 - $(use_enable opengl glx)
221 - $(use_enable opengl gl)
222 - $(use_enable gles2)
223 - $(use_enable gles2 cogl-gles2)
224 - $(use_enable gles2 xlib-egl-platform)
225 - "$(usex gles2 --with-default-driver=$(usex opengl gl gles2 ) "")"
226 - --enable-glib
227 - --enable-deprecated
228 - $(use_enable introspection)
229 - $(use_enable pango cogl-pango)
230 - $(use_enable doc gtk-doc)"
231 - # Really need --enable-gtk-doc for docs
232 + # Do not build examples
233 + sed -e "s/^\(SUBDIRS +=.*\)examples\(.*\)$/\1\2/" \
234 + -i Makefile.am Makefile.in || die
235 +
236 + if ! use test ; then
237 + # For some reason the configure switch will not completely disable
238 + # tests being built
239 + sed -e "s/^\(SUBDIRS =.*\)test-fixtures\(.*\)$/\1\2/" \
240 + -e "s/^\(SUBDIRS +=.*\)tests\(.*\)$/\1\2/" \
241 + -e "s/^\(.*am__append.* \)tests\(.*\)$/\1\2/" \
242 + -i Makefile.am Makefile.in || die
243 + fi
244
245 gnome2_src_prepare
246 }
247
248 +src_configure() {
249 + # TODO: think about kms-egl, quartz, sdl, wayland
250 + # Prefer gl over gles2 if both are selected
251 + # Profiling needs uprof, which is not available in portage yet, bug #484750
252 + # FIXME: Doesn't provide prebuilt docs, but they can neither be rebuilt, bug #483332
253 + gnome2_src_configure \
254 + --disable-examples-install \
255 + --disable-maintainer-flags \
256 + --enable-cairo \
257 + --enable-deprecated \
258 + --enable-gdk-pixbuf \
259 + --enable-glib \
260 + --disable-gtk-doc \
261 + $(use_enable opengl glx) \
262 + $(use_enable opengl gl) \
263 + $(use_enable gles2) \
264 + $(use_enable gles2 cogl-gles2) \
265 + $(use_enable gles2 xlib-egl-platform) \
266 + $(usex gles2 --with-default-driver=$(usex opengl gl gles2)) \
267 + $(use_enable gstreamer cogl-gst) \
268 + $(use_enable introspection) \
269 + $(use_enable pango cogl-pango) \
270 + $(use_enable test unit-tests) \
271 + --disable-profile
272 +# $(use_enable doc gtk-doc) \
273 +# $(use_enable profile)
274 +}
275 +
276 src_test() {
277 # Use swrast for tests, llvmpipe is incomplete and "test_sub_texture" fails
278 # NOTE: recheck if this is needed after every mesa bump
279 @@ -90,18 +123,11 @@ src_test() {
280 }
281
282 src_install() {
283 + DOCS="NEWS README"
284 + EXAMPLES="examples/{*.c,*.jpg}"
285 +
286 clutter_src_install
287
288 # Remove silly examples-data directory
289 rm -rvf "${ED}/usr/share/cogl/examples-data/" || die
290 }
291 -
292 -pkg_preinst() {
293 - gnome2_pkg_preinst
294 - preserve_old_lib /usr/$(get_libdir)/libcogl.so.9
295 -}
296 -
297 -pkg_postinst() {
298 - gnome2_pkg_postinst
299 - preserve_old_lib_notify /usr/$(get_libdir)/libcogl.so.9
300 -}
301
302 diff --git a/profiles/package.use.mask b/profiles/package.use.mask
303 index 55d7022..b6a6f17 100644
304 --- a/profiles/package.use.mask
305 +++ b/profiles/package.use.mask
306 @@ -6,3 +6,10 @@
307 # gjs: tests fail and support for it was purely and simply removed in master/1.9
308 # python2_6: unit tests fail for this abi, must report usptream
309 dev-libs/libpeas gjs python_targets_python2_6
310 +
311 +# Gilles Dartiguelongue <eva@g.o> (29 Nov 2013)
312 +# Gstreamer support fails to build due to libtool shortcomings when using
313 +# an intermediate library as a dependency of another libtool target dependency.
314 +# Since this is new and unused yet, keep it masked for now and check
315 +# with upstream if there is something that can be done to fix the issue.
316 +media-libs/cogl gstreamer