Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/clutter: metadata.xml ChangeLog clutter-1.0.10.ebuild
Date: Fri, 26 Feb 2010 21:41:17
Message-Id: E1Nl7vv-00021G-V1@stork.gentoo.org
1 nirbheek 10/02/26 21:41:15
2
3 Added: metadata.xml ChangeLog clutter-1.0.10.ebuild
4 Log:
5 Initial ebuild for clutter, an opengl-based toolkit for user interfaces
6 (Portage version: 2.1.7.17/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 media-libs/clutter/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/clutter/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/clutter/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>gnome</herd>
20 <use>
21 <flag name="gtk">Use gdk-pixbuf from <pkg>x11-libs/gtk+</pkg> as image rendering backend</flag>
22 <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> for
23 introspection</flag>
24 <flag name="opengl">Use <pkg>virtual/opengl</pkg> as the backend for
25 rendering (default). If disabled, <pkg>media-libs/libsdl</pkg> is used.</flag>
26 </use>
27 </pkgmetadata>
28
29
30
31 1.1 media-libs/clutter/ChangeLog
32
33 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/clutter/ChangeLog?rev=1.1&view=markup
34 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/clutter/ChangeLog?rev=1.1&content-type=text/plain
35
36 Index: ChangeLog
37 ===================================================================
38 # ChangeLog for media-libs/clutter
39 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
40 # $Header: /var/cvsroot/gentoo-x86/media-libs/clutter/ChangeLog,v 1.1 2010/02/26 21:41:15 nirbheek Exp $
41
42 *clutter-1.0.10 (26 Feb 2010)
43
44 26 Feb 2010; Nirbheek Chauhan <nirbheek@g.o>
45 +files/clutter-1.0.0-disable-tests.patch, +clutter-1.0.10.ebuild,
46 +metadata.xml:
47 Initial ebuild for clutter, an opengl-based toolkit for user interfaces
48
49
50
51
52 1.1 media-libs/clutter/clutter-1.0.10.ebuild
53
54 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/clutter/clutter-1.0.10.ebuild?rev=1.1&view=markup
55 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/clutter/clutter-1.0.10.ebuild?rev=1.1&content-type=text/plain
56
57 Index: clutter-1.0.10.ebuild
58 ===================================================================
59 # Copyright 1999-2010 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 # $Header: /var/cvsroot/gentoo-x86/media-libs/clutter/clutter-1.0.10.ebuild,v 1.1 2010/02/26 21:41:15 nirbheek Exp $
62
63 EAPI="2"
64
65 inherit autotools clutter
66
67 DESCRIPTION="Clutter is a library for creating graphical user interfaces"
68
69 SLOT="1.0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="debug doc +gtk introspection +opengl"
72
73 RDEPEND=">=dev-libs/glib-2.16
74 >=x11-libs/cairo-1.4
75 >=x11-libs/pango-1.20
76
77 gtk? ( >=x11-libs/gtk+-2.0 )
78 opengl? (
79 virtual/opengl
80 x11-libs/libX11
81 x11-libs/libXext
82 x11-libs/libXdamage
83 x11-libs/libXi
84 x11-proto/inputproto
85
86 >=x11-libs/libXfixes-3
87 >=x11-libs/libXcomposite-0.4 )
88 !opengl? ( media-libs/libsdl )
89 "
90 DEPEND="${RDEPEND}
91 sys-devel/gettext
92 dev-util/gtk-doc-am
93 doc? (
94 >=dev-util/gtk-doc-1.11
95 >=app-text/docbook-sgml-utils-0.6.14[jadetex]
96 app-text/xmlto )
97 introspection? (
98 >=dev-libs/gobject-introspection-0.6.4
99 >=dev-libs/gir-repository-0.6.3[pango] )"
100
101 src_configure() {
102 local myconf=""
103
104 if use opengl; then
105 elog "Using GLX for OpenGL backend"
106 myconf="${myconf} --with-flavour=glx"
107 else
108 elog "Using SDL for OpenGL backend"
109 myconf="${myconf} --with-flavour=sdl"
110 ewarn "You have disabled OpenGL, do not report bugs about breakage"
111 fi
112
113 if use gtk; then
114 myconf="${myconf} --with-imagebackend=gdk-pixbuf"
115 else
116 myconf="${myconf} --with-imagebackend=internal"
117 # Internal image backend is experimental
118 ewarn "You have selected the experimental internal image backend"
119 fi
120
121 if ! use debug; then
122 myconf="${myconf}
123 --enable-debug=minimum
124 --enable-cogl-debug=minimum"
125 fi
126
127 # FIXME: Tests are interactive, not of use for us
128 # FIXME: Using external json-glib breaks introspection
129 myconf="${myconf}
130 --disable-tests
131 --enable-maintainer-flags=no
132 --enable-xinput
133 --with-json=internal
134 $(use_enable introspection)
135 $(use_enable doc manual)"
136 econf ${myconf}
137 }
138
139 src_prepare() {
140 # Make it libtool-1 compatible
141 rm -v build/autotools/lt* build/autotools/libtool.m4 || die "removing libtool macros failed"
142
143 # FIXME: Tests are interactive, not of use for us
144 epatch "${FILESDIR}/${PN}-1.0.0-disable-tests.patch"
145
146 eautoreconf
147 }