From: | "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/pyclutter: metadata.xml ChangeLog pyclutter-1.0.0.ebuild |
Date: | Fri, 26 Feb 2010 22:42:32 |
Message-Id: | E1Nl8tB-0004Sw-HZ@stork.gentoo.org |
1 | nirbheek 10/02/26 22:42:29 |
2 | |
3 | Added: metadata.xml ChangeLog pyclutter-1.0.0.ebuild |
4 | Log: |
5 | Add initial ebuild for pyclutter, python bindings for clutter |
6 | (Portage version: 2.1.7.17/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-python/pyclutter/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyclutter/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyclutter/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 | </pkgmetadata> |
21 | |
22 | |
23 | |
24 | 1.1 dev-python/pyclutter/ChangeLog |
25 | |
26 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyclutter/ChangeLog?rev=1.1&view=markup |
27 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyclutter/ChangeLog?rev=1.1&content-type=text/plain |
28 | |
29 | Index: ChangeLog |
30 | =================================================================== |
31 | # ChangeLog for dev-python/pyclutter |
32 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
33 | # $Header: /var/cvsroot/gentoo-x86/dev-python/pyclutter/ChangeLog,v 1.1 2010/02/26 22:42:28 nirbheek Exp $ |
34 | |
35 | *pyclutter-1.0.0 (26 Feb 2010) |
36 | |
37 | 26 Feb 2010; Nirbheek Chauhan <nirbheek@g.o> |
38 | +pyclutter-1.0.0.ebuild, |
39 | +files/pyclutter-fix-docs-install-data-hook.patch, +metadata.xml: |
40 | Add initial ebuild for pyclutter, python bindings for clutter |
41 | |
42 | |
43 | |
44 | |
45 | 1.1 dev-python/pyclutter/pyclutter-1.0.0.ebuild |
46 | |
47 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyclutter/pyclutter-1.0.0.ebuild?rev=1.1&view=markup |
48 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyclutter/pyclutter-1.0.0.ebuild?rev=1.1&content-type=text/plain |
49 | |
50 | Index: pyclutter-1.0.0.ebuild |
51 | =================================================================== |
52 | # Copyright 1999-2010 Gentoo Foundation |
53 | # Distributed under the terms of the GNU General Public License v2 |
54 | # $Header: /var/cvsroot/gentoo-x86/dev-python/pyclutter/pyclutter-1.0.0.ebuild,v 1.1 2010/02/26 22:42:28 nirbheek Exp $ |
55 | |
56 | EAPI="2" |
57 | |
58 | inherit eutils python clutter |
59 | |
60 | DESCRIPTION="Python bindings for Clutter" |
61 | |
62 | KEYWORDS="~amd64 ~x86" |
63 | IUSE="doc examples" |
64 | |
65 | SLOT="1.0" |
66 | RDEPEND=">=dev-lang/python-2.5 |
67 | >=dev-python/pygtk-2.8.0 |
68 | >=dev-python/pycairo-1.0.2 |
69 | >=media-libs/clutter-1.0.0:${SLOT}" |
70 | DEPEND="${RDEPEND} |
71 | doc? ( dev-libs/libxslt )" |
72 | EXAMPLES="examples/{*.py,*.png}" |
73 | |
74 | # XXX: If eautoreconf, use AT_M4DIR=build/autotools |
75 | src_prepare() { |
76 | epatch "${FILESDIR}/${PN}-fix-docs-install-data-hook.patch" |
77 | |
78 | ln -sf $(type -P true) py-compile |
79 | } |
80 | |
81 | src_configure() { |
82 | local myconf=" |
83 | $(use_enable doc docs)" |
84 | |
85 | econf ${myconf} |
86 | } |
87 | |
88 | src_install() { |
89 | # FIXME: Parallel make failure in emake install |
90 | MAKEOPTS="-j1" clutter_src_install |
91 | } |
92 | |
93 | pkg_postinst() { |
94 | python_mod_optimize $(python_get_sitedir)/clutter/* |
95 | python_need_rebuild |
96 | } |
97 | |
98 | pkg_postrm() { |
99 | python_mod_cleanup /usr/lib*/python*/site-packages/clutter/* |
100 | } |