1 |
commit: 8ba9cde2394186ec915204ebff2b71fe36ea3176 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jun 29 07:12:00 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Jun 29 07:58:39 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=8ba9cde2 |
7 |
|
8 |
media-libs/cogl: new package |
9 |
|
10 |
With version 1.7, clutter has been split into two packages: clutter |
11 |
proper and cogl. |
12 |
|
13 |
--- |
14 |
media-libs/cogl/cogl-1.7.0.ebuild | 69 +++++++++++++++++++++++++++++++++++++ |
15 |
media-libs/cogl/cogl-9999.ebuild | 69 +++++++++++++++++++++++++++++++++++++ |
16 |
profiles/package.mask | 1 + |
17 |
3 files changed, 139 insertions(+), 0 deletions(-) |
18 |
|
19 |
diff --git a/media-libs/cogl/cogl-1.7.0.ebuild b/media-libs/cogl/cogl-1.7.0.ebuild |
20 |
new file mode 100644 |
21 |
index 0000000..f98cfb7 |
22 |
--- /dev/null |
23 |
+++ b/media-libs/cogl/cogl-1.7.0.ebuild |
24 |
@@ -0,0 +1,69 @@ |
25 |
+# Copyright 1999-2011 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+# $Header: $ |
28 |
+ |
29 |
+EAPI="4" |
30 |
+CLUTTER_LA_PUNT="yes" |
31 |
+ |
32 |
+# Inherit gnome2 after clutter to download sources from gnome.org |
33 |
+# since clutter-project.org doesn't provide .xz tarballs |
34 |
+inherit clutter gnome2 |
35 |
+if [[ ${PV} = 9999 ]]; then |
36 |
+ inherit gnome2-live |
37 |
+fi |
38 |
+ |
39 |
+DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures" |
40 |
+HOMEPAGE="http://www.clutter-project.org/" |
41 |
+ |
42 |
+LICENSE="LGPL-2.1" |
43 |
+SLOT="1.0" |
44 |
+IUSE="doc examples +introspection +pango" |
45 |
+if [[ ${PV} = 9999 ]]; then |
46 |
+ KEYWORDS="" |
47 |
+else |
48 |
+ KEYWORDS="~amd64 ~x86" |
49 |
+fi |
50 |
+ |
51 |
+# XXX: need uprof for optional profiling support |
52 |
+COMMON_DEPEND=">=dev-libs/glib-2.26.0:2 |
53 |
+ x11-libs/cairo |
54 |
+ >=x11-libs/gdk-pixbuf-2:2 |
55 |
+ x11-libs/libdrm |
56 |
+ x11-libs/libX11 |
57 |
+ >=x11-libs/libXcomposite-0.4 |
58 |
+ x11-libs/libXdamage |
59 |
+ x11-libs/libXext |
60 |
+ >=x11-libs/libXfixes-3 |
61 |
+ virtual/opengl |
62 |
+ |
63 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) |
64 |
+ pango? ( >=x11-libs/pango-1.20.0[introspection?] )" |
65 |
+# before clutter-1.7, cogl was part of clutter |
66 |
+RDEPEND="${COMMON_DEPEND} |
67 |
+ !!<media-libs/clutter-1.7" |
68 |
+DEPEND="${COMMON_DEPEND} |
69 |
+ dev-util/pkgconfig |
70 |
+ sys-devel/gettext |
71 |
+ doc? ( app-text/docbook-xml-dtd:4.1.2 |
72 |
+ >=dev-util/gtk-doc-1.13 )" |
73 |
+ |
74 |
+pkg_setup() { |
75 |
+ DOCS="NEWS README" |
76 |
+ EXAMPLES="examples/*.c" |
77 |
+ # XXX: think about gles, quartz, wayland |
78 |
+ # --with-pic needed due to https://bugzilla.gnome.org/show_bug.cgi?id=653615 |
79 |
+ G2CONF="${G2CONF} |
80 |
+ --with-pic=both |
81 |
+ --disable-profile |
82 |
+ --disable-maintainer-flags |
83 |
+ --enable-cairo |
84 |
+ --enable-gdk-pixbuf |
85 |
+ --enable-gl |
86 |
+ --enable-glx |
87 |
+ $(use_enable introspection) |
88 |
+ $(use_enable pango cogl-pango)" |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ clutter_src_install |
93 |
+} |
94 |
|
95 |
diff --git a/media-libs/cogl/cogl-9999.ebuild b/media-libs/cogl/cogl-9999.ebuild |
96 |
new file mode 100644 |
97 |
index 0000000..f98cfb7 |
98 |
--- /dev/null |
99 |
+++ b/media-libs/cogl/cogl-9999.ebuild |
100 |
@@ -0,0 +1,69 @@ |
101 |
+# Copyright 1999-2011 Gentoo Foundation |
102 |
+# Distributed under the terms of the GNU General Public License v2 |
103 |
+# $Header: $ |
104 |
+ |
105 |
+EAPI="4" |
106 |
+CLUTTER_LA_PUNT="yes" |
107 |
+ |
108 |
+# Inherit gnome2 after clutter to download sources from gnome.org |
109 |
+# since clutter-project.org doesn't provide .xz tarballs |
110 |
+inherit clutter gnome2 |
111 |
+if [[ ${PV} = 9999 ]]; then |
112 |
+ inherit gnome2-live |
113 |
+fi |
114 |
+ |
115 |
+DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures" |
116 |
+HOMEPAGE="http://www.clutter-project.org/" |
117 |
+ |
118 |
+LICENSE="LGPL-2.1" |
119 |
+SLOT="1.0" |
120 |
+IUSE="doc examples +introspection +pango" |
121 |
+if [[ ${PV} = 9999 ]]; then |
122 |
+ KEYWORDS="" |
123 |
+else |
124 |
+ KEYWORDS="~amd64 ~x86" |
125 |
+fi |
126 |
+ |
127 |
+# XXX: need uprof for optional profiling support |
128 |
+COMMON_DEPEND=">=dev-libs/glib-2.26.0:2 |
129 |
+ x11-libs/cairo |
130 |
+ >=x11-libs/gdk-pixbuf-2:2 |
131 |
+ x11-libs/libdrm |
132 |
+ x11-libs/libX11 |
133 |
+ >=x11-libs/libXcomposite-0.4 |
134 |
+ x11-libs/libXdamage |
135 |
+ x11-libs/libXext |
136 |
+ >=x11-libs/libXfixes-3 |
137 |
+ virtual/opengl |
138 |
+ |
139 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) |
140 |
+ pango? ( >=x11-libs/pango-1.20.0[introspection?] )" |
141 |
+# before clutter-1.7, cogl was part of clutter |
142 |
+RDEPEND="${COMMON_DEPEND} |
143 |
+ !!<media-libs/clutter-1.7" |
144 |
+DEPEND="${COMMON_DEPEND} |
145 |
+ dev-util/pkgconfig |
146 |
+ sys-devel/gettext |
147 |
+ doc? ( app-text/docbook-xml-dtd:4.1.2 |
148 |
+ >=dev-util/gtk-doc-1.13 )" |
149 |
+ |
150 |
+pkg_setup() { |
151 |
+ DOCS="NEWS README" |
152 |
+ EXAMPLES="examples/*.c" |
153 |
+ # XXX: think about gles, quartz, wayland |
154 |
+ # --with-pic needed due to https://bugzilla.gnome.org/show_bug.cgi?id=653615 |
155 |
+ G2CONF="${G2CONF} |
156 |
+ --with-pic=both |
157 |
+ --disable-profile |
158 |
+ --disable-maintainer-flags |
159 |
+ --enable-cairo |
160 |
+ --enable-gdk-pixbuf |
161 |
+ --enable-gl |
162 |
+ --enable-glx |
163 |
+ $(use_enable introspection) |
164 |
+ $(use_enable pango cogl-pango)" |
165 |
+} |
166 |
+ |
167 |
+src_install() { |
168 |
+ clutter_src_install |
169 |
+} |
170 |
|
171 |
diff --git a/profiles/package.mask b/profiles/package.mask |
172 |
index 30c1f3c..f47fb3f 100644 |
173 |
--- a/profiles/package.mask |
174 |
+++ b/profiles/package.mask |
175 |
@@ -11,6 +11,7 @@ |
176 |
# Warning: these are not supported in any way whatsoever |
177 |
=dev-libs/glib-2.29* |
178 |
=dev-libs/gobject-introspection-1* |
179 |
+=media-libs/cogl-1.7* |
180 |
=x11-libs/gtk+-3.1* |
181 |
=x11-libs/pango-1.29* |