Gentoo Archives: gentoo-commits

From: Alexandre Rostovtsev <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: media-libs/cogl/, media-libs/cogl/files/
Date: Thu, 27 Sep 2012 10:49:25
Message-Id: 1348742657.e2ecd06dc280c3e622b86918a7988835a28b9ee1.tetromino@gentoo
1 commit: e2ecd06dc280c3e622b86918a7988835a28b9ee1
2 Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 27 10:10:36 2012 +0000
4 Commit: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 27 10:44:17 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=e2ecd06d
7
8 media-libs/cogl: 1.11.4 → 1.12.0
9
10 Update license.
11
12 ---
13 .../{cogl-1.11.4.ebuild => cogl-1.12.0.ebuild} | 10 +++++-
14 media-libs/cogl/cogl-9999.ebuild | 2 +-
15 .../cogl-1.12.0-fix-experimental-doc-build.patch | 33 ++++++++++++++++++++
16 3 files changed, 42 insertions(+), 3 deletions(-)
17
18 diff --git a/media-libs/cogl/cogl-1.11.4.ebuild b/media-libs/cogl/cogl-1.12.0.ebuild
19 similarity index 91%
20 rename from media-libs/cogl/cogl-1.11.4.ebuild
21 rename to media-libs/cogl/cogl-1.12.0.ebuild
22 index c5243a5..6632c9d 100644
23 --- a/media-libs/cogl/cogl-1.11.4.ebuild
24 +++ b/media-libs/cogl/cogl-1.12.0.ebuild
25 @@ -6,7 +6,7 @@ EAPI="4"
26 CLUTTER_LA_PUNT="yes"
27
28 # Inherit gnome2 after clutter to download sources from gnome.org
29 -inherit clutter gnome2 multilib virtualx
30 +inherit eutils clutter gnome2 multilib virtualx
31 if [[ ${PV} = 9999 ]]; then
32 inherit gnome2-live
33 fi
34 @@ -14,7 +14,7 @@ fi
35 DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures"
36 HOMEPAGE="http://www.clutter-project.org/"
37
38 -LICENSE="LGPL-2.1"
39 +LICENSE="LGPL-2.1+ FDL-1.1+"
40 SLOT="1.0"
41 IUSE="doc examples +introspection +opengl gles2 +pango"
42 if [[ ${PV} = 9999 ]]; then
43 @@ -73,6 +73,12 @@ pkg_setup() {
44 use gles2 && G2CONF="${G2CONF} --with-default-driver=gles2"
45 }
46
47 +src_prepare() {
48 + # https://bugzilla.gnome.org/show_bug.cgi?id=684731
49 + epatch "${FILESDIR}/${PN}-1.12.0-fix-experimental-doc-build.patch"
50 + gnome2_src_prepare
51 +}
52 +
53 src_test() {
54 # Use swrast for tests, llvmpipe is incomplete and "test_sub_texture" fails
55 # NOTE: recheck if this is needed after every mesa bump
56
57 diff --git a/media-libs/cogl/cogl-9999.ebuild b/media-libs/cogl/cogl-9999.ebuild
58 index c5243a5..7fa5842 100644
59 --- a/media-libs/cogl/cogl-9999.ebuild
60 +++ b/media-libs/cogl/cogl-9999.ebuild
61 @@ -14,7 +14,7 @@ fi
62 DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures"
63 HOMEPAGE="http://www.clutter-project.org/"
64
65 -LICENSE="LGPL-2.1"
66 +LICENSE="LGPL-2.1+ FDL-1.1+"
67 SLOT="1.0"
68 IUSE="doc examples +introspection +opengl gles2 +pango"
69 if [[ ${PV} = 9999 ]]; then
70
71 diff --git a/media-libs/cogl/files/cogl-1.12.0-fix-experimental-doc-build.patch b/media-libs/cogl/files/cogl-1.12.0-fix-experimental-doc-build.patch
72 new file mode 100644
73 index 0000000..9bd8018
74 --- /dev/null
75 +++ b/media-libs/cogl/files/cogl-1.12.0-fix-experimental-doc-build.patch
76 @@ -0,0 +1,33 @@
77 +Author: Dimitri <mitya@××××××.org>
78 +
79 +Build breaks on cogl-2.0-experimental docs
80 +
81 +https://bugzilla.gnome.org/show_bug.cgi?id=684731
82 +
83 +--- a/cogl/cogl-context.h
84 ++++ b/cogl/cogl-context.h
85 +@@ -72,19 +72,19 @@
86 + * help applications control the lifetime a context without us needing to
87 + * introduce special api to handle the breakup of internal circular
88 + * references due to internal resources and caches associated with the
89 +- * context.
90 ++ * context.</note>
91 + *
92 +- * One a context has been destroyed then all directly or indirectly
93 ++ * <note>One a context has been destroyed then all directly or indirectly
94 + * dependant resources will be in an inconsistent state and should not
95 +- * be manipulated or queried in any way.
96 ++ * be manipulated or queried in any way.</note>
97 + *
98 +- * For applications that rely on the operating system to clean up
99 ++ * <note>For applications that rely on the operating system to clean up
100 + * resources this policy shouldn't affect them, but for applications
101 + * that need to carefully destroy and re-create Cogl contexts multiple
102 + * times throughout their lifetime (such as Android applications) they
103 + * should be careful to destroy all context dependant resources, such as
104 + * framebuffers or textures etc before unrefing and destroying the
105 +- * context.<note>
106 ++ * context.</note>
107 + */
108 +
109 + #ifdef COGL_ENABLE_EXPERIMENTAL_API