Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/cogl: cogl-1.18.2.ebuild ChangeLog
Date: Sat, 05 Jul 2014 14:31:12
Message-Id: 20140705143109.C1F8C2004E@flycatcher.gentoo.org
1 pacho 14/07/05 14:31:09
2
3 Modified: ChangeLog
4 Added: cogl-1.18.2.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.50 media-libs/cogl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/cogl/ChangeLog?rev=1.50&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/cogl/ChangeLog?rev=1.50&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/cogl/ChangeLog?r1=1.49&r2=1.50
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/cogl/ChangeLog,v
20 retrieving revision 1.49
21 retrieving revision 1.50
22 diff -u -r1.49 -r1.50
23 --- ChangeLog 27 Apr 2014 17:30:40 -0000 1.49
24 +++ ChangeLog 5 Jul 2014 14:31:09 -0000 1.50
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/cogl
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/cogl/ChangeLog,v 1.49 2014/04/27 17:30:40 eva Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/cogl/ChangeLog,v 1.50 2014/07/05 14:31:09 pacho Exp $
30 +
31 +*cogl-1.18.2 (05 Jul 2014)
32 +
33 + 05 Jul 2014; Pacho Ramos <pacho@g.o> +cogl-1.18.2.ebuild:
34 + Version bump
35
36 *cogl-1.18.0 (27 Apr 2014)
37
38
39
40
41 1.1 media-libs/cogl/cogl-1.18.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/cogl/cogl-1.18.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/cogl/cogl-1.18.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: cogl-1.18.2.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-libs/cogl/cogl-1.18.2.ebuild,v 1.1 2014/07/05 14:31:09 pacho Exp $
51
52 EAPI="5"
53 CLUTTER_LA_PUNT="yes"
54
55 # Inherit gnome2 after clutter to download sources from gnome.org
56 inherit clutter gnome2 multilib virtualx
57
58 DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures"
59 HOMEPAGE="http://www.cogl3d.org/"
60
61 LICENSE="MIT BSD"
62 SLOT="1.0/20" # subslot = .so version
63 # doc and profile disable for now due bugs #484750 and #483332
64 IUSE="examples gles2 gstreamer +introspection +opengl +pango test" # doc profile
65 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
66
67 COMMON_DEPEND="
68 >=dev-libs/glib-2.32:2
69 x11-libs/cairo:=
70 >=x11-libs/gdk-pixbuf-2:2
71 x11-libs/libdrm:=
72 x11-libs/libX11
73 >=x11-libs/libXcomposite-0.4
74 x11-libs/libXdamage
75 x11-libs/libXext
76 >=x11-libs/libXfixes-3
77 >=x11-libs/libXrandr-1.2
78 virtual/opengl
79 gles2? ( media-libs/mesa[gles2] )
80 gstreamer? (
81 media-libs/gstreamer:1.0
82 media-libs/gst-plugins-base:1.0 )
83
84 introspection? ( >=dev-libs/gobject-introspection-1.34.2 )
85 pango? ( >=x11-libs/pango-1.20.0[introspection?] )
86 "
87 # before clutter-1.7, cogl was part of clutter
88 RDEPEND="${COMMON_DEPEND}
89 !<media-libs/clutter-1.7"
90 DEPEND="${COMMON_DEPEND}
91 >=dev-util/gtk-doc-am-1.13
92 sys-devel/gettext
93 virtual/pkgconfig
94 test? (
95 app-admin/eselect-opengl
96 media-libs/mesa[classic] )
97 "
98
99 # Need classic mesa swrast for tests, llvmpipe causes a test failure
100 # Fox some reason GL3 conformance test all fails again...
101 RESTRICT="test"
102
103 src_prepare() {
104 # Do not build examples
105 sed -e "s/^\(SUBDIRS +=.*\)examples\(.*\)$/\1\2/" \
106 -i Makefile.am Makefile.in || die
107
108 if ! use test ; then
109 # For some reason the configure switch will not completely disable
110 # tests being built
111 sed -e "s/^\(SUBDIRS =.*\)test-fixtures\(.*\)$/\1\2/" \
112 -e "s/^\(SUBDIRS +=.*\)tests\(.*\)$/\1\2/" \
113 -e "s/^\(.*am__append.* \)tests\(.*\)$/\1\2/" \
114 -i Makefile.am Makefile.in || die
115 fi
116
117 gnome2_src_prepare
118 }
119
120 src_configure() {
121 # TODO: think about kms-egl, quartz, sdl, wayland
122 # Prefer gl over gles2 if both are selected
123 # Profiling needs uprof, which is not available in portage yet, bug #484750
124 # FIXME: Doesn't provide prebuilt docs, but they can neither be rebuilt, bug #483332
125 gnome2_src_configure \
126 --disable-examples-install \
127 --disable-maintainer-flags \
128 --enable-cairo \
129 --enable-deprecated \
130 --enable-gdk-pixbuf \
131 --enable-glib \
132 $(use_enable opengl glx) \
133 $(use_enable opengl gl) \
134 $(use_enable gles2) \
135 $(use_enable gles2 cogl-gles2) \
136 $(use_enable gles2 xlib-egl-platform) \
137 $(usex gles2 --with-default-driver=$(usex opengl gl gles2)) \
138 $(use_enable gstreamer cogl-gst) \
139 $(use_enable introspection) \
140 $(use_enable pango cogl-pango) \
141 $(use_enable test unit-tests) \
142 --disable-profile
143 # $(use_enable profile)
144 }
145
146 src_test() {
147 # Use swrast for tests, llvmpipe is incomplete and "test_sub_texture" fails
148 # NOTE: recheck if this is needed after every mesa bump
149 if [[ "$(eselect opengl show)" != "xorg-x11" ]]; then
150 ewarn "Skipping tests because a binary OpenGL library is enabled. To"
151 ewarn "run tests for ${PN}, you need to enable the Mesa library:"
152 ewarn "# eselect opengl set xorg-x11"
153 return
154 fi
155 LIBGL_DRIVERS_PATH="${EROOT}/usr/$(get_libdir)/mesa" Xemake check
156 }
157
158 src_install() {
159 DOCS="NEWS README"
160 EXAMPLES="examples/{*.c,*.jpg}"
161
162 clutter_src_install
163
164 # Remove silly examples-data directory
165 rm -rvf "${ED}/usr/share/cogl/examples-data/" || die
166 }