Gentoo Archives: gentoo-commits

From: "Rafael Martins (rafaelmartins)" <rafaelmartins@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/chameleon: metadata.xml ChangeLog chameleon-2.2.ebuild
Date: Fri, 29 Jul 2011 23:59:13
Message-Id: 20110729235901.4D2C52004B@flycatcher.gentoo.org
1 rafaelmartins 11/07/29 23:59:01
2
3 Added: metadata.xml ChangeLog chameleon-2.2.ebuild
4 Log:
5 Initial version. Thanks to Jan Matějka (bug #361629).
6
7 (Portage version: 2.2.0_alpha46/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-python/chameleon/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chameleon/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chameleon/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <herd>python</herd>
21 </pkgmetadata>
22
23
24
25
26 1.1 dev-python/chameleon/ChangeLog
27
28 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chameleon/ChangeLog?rev=1.1&view=markup
29 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chameleon/ChangeLog?rev=1.1&content-type=text/plain
30
31 Index: ChangeLog
32 ===================================================================
33 # ChangeLog for dev-python/chameleon
34 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
35 # $Header: /var/cvsroot/gentoo-x86/dev-python/chameleon/ChangeLog,v 1.1 2011/07/29 23:59:01 rafaelmartins Exp $
36
37 *chameleon-2.2 (29 Jul 2011)
38
39 29 Jul 2011; Rafael G. Martins <rafaelmartins@g.o>
40 +chameleon-2.2.ebuild, +metadata.xml:
41 Initial version. Thanks to Jan Matějka (bug #361629).
42
43
44
45
46 1.1 dev-python/chameleon/chameleon-2.2.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chameleon/chameleon-2.2.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chameleon/chameleon-2.2.ebuild?rev=1.1&content-type=text/plain
50
51 Index: chameleon-2.2.ebuild
52 ===================================================================
53 # Copyright 1999-2011 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/dev-python/chameleon/chameleon-2.2.ebuild,v 1.1 2011/07/29 23:59:01 rafaelmartins Exp $
56
57 EAPI=3
58
59 SUPPORT_PYTHON_ABIS=1
60 PYTHON_DEPEND="2:2.7 3"
61
62 inherit distutils python
63
64 MY_PN="Chameleon"
65 MY_P="${MY_PN}-${PV}"
66
67 DESCRIPTION="Fast XML template compiler for Python"
68 HOMEPAGE="http://chameleon.repoze.org"
69 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
70
71 LICENSE="repoze"
72 SLOT="0"
73 KEYWORDS="~amd64 ~x86"
74 IUSE="doc test"
75
76 DEPEND="doc? ( dev-python/sphinx )
77 test? ( net-zope/zope-pagetemplate
78 net-zope/zope-component
79 net-zope/zope-i18n
80 net-zope/zope-testing )"
81 RDEPEND=""
82
83 S="${WORKDIR}/${MY_P}"
84
85 RESTRICT_PYTHON_ABIS="2.[456]"
86
87 src_compile() {
88 distutils_src_compile
89
90 if use doc ; then
91 emake html || die "make html failed"
92 fi
93 }
94
95 src_test() {
96 testing() {
97 PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" setup.py "test"
98 }
99 python_execute_function testing
100 }
101
102 src_install() {
103 distutils_src_install
104
105 if use doc ; then
106 dohtml -r _build/html/* || die "dohtml failed"
107 fi
108 }