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