Gentoo Archives: gentoo-commits

From: "Rob Cakebread (pythonhead)" <pythonhead@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/cheetah: ChangeLog cheetah-2.0.1.ebuild cheetah-0.9.17.ebuild
Date: Mon, 26 Nov 2007 19:48:21
Message-Id: E1Iwjw6-0000Zz-I6@stork.gentoo.org
1 pythonhead 07/11/26 19:48:06
2
3 Modified: ChangeLog
4 Added: cheetah-2.0.1.ebuild
5 Removed: cheetah-0.9.17.ebuild
6 Log:
7 Version bump, removed obsolete version
8 (Portage version: 2.1.3.16)
9
10 Revision Changes Path
11 1.38 dev-python/cheetah/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/cheetah/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/cheetah/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/cheetah/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/cheetah/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 12 Oct 2007 23:46:37 -0000 1.37
24 +++ ChangeLog 26 Nov 2007 19:48:05 -0000 1.38
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/cheetah
27 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/cheetah/ChangeLog,v 1.37 2007/10/12 23:46:37 pythonhead Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cheetah/ChangeLog,v 1.38 2007/11/26 19:48:05 pythonhead Exp $
30 +
31 +*cheetah-2.0.1 (26 Nov 2007)
32 +
33 + 26 Nov 2007; Rob Cakebread <pythonhead@g.o> -cheetah-0.9.17.ebuild,
34 + +cheetah-2.0.1.ebuild:
35 + Version bump, removed obsolete version
36
37 *cheetah-2.0 (12 Oct 2007)
38
39
40
41
42 1.1 dev-python/cheetah/cheetah-2.0.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/cheetah/cheetah-2.0.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/cheetah/cheetah-2.0.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cheetah-2.0.1.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/cheetah/cheetah-2.0.1.ebuild,v 1.1 2007/11/26 19:48:05 pythonhead Exp $
52
53 NEED_PYTHON=2.2
54
55 inherit distutils
56
57 MY_PN=Cheetah
58 MY_P=${MY_PN}-${PV/_}
59
60 DESCRIPTION="Python-powered template engine and code generator."
61 HOMEPAGE="http://www.cheetahtemplate.org/"
62 SRC_URI="mirror://sourceforge/cheetahtemplate/${MY_P}.tar.gz"
63 LICENSE="PSF-2.2"
64 IUSE=""
65 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
66 SLOT="0"
67
68 DEPEND="dev-python/setuptools"
69 RDEPEND=""
70
71 S=${WORKDIR}/${MY_P}
72 PYTHON_MODNAME="Cheetah"
73 DOCS="README CHANGES TODO"
74 #Needed for Python 2.4 so setuptools-based pkgs can detect cheetah
75 export CHEETAH_USE_SETUPTOOLS='true'
76
77 pkg_postinst() {
78 ewarn "This release requires re-compilation of all compiled templates!"
79 }
80
81 src_test() {
82 #We need to do the sed here because files don't exist until after src_build
83 local p="$(ls -d ${S}/build/lib.* )"
84 local s="$(ls -d ${S}/build/scripts*)"
85 sed -i \
86 -e "s:\(self\.go(\"\)\(${PN}\):\1PYTHONPATH=\'${p}\' \'${s}/\2\':" \
87 src/Tests/CheetahWrapper.py || die "sed failed"
88
89 PYTHONPATH="${p}" "${python}" src/Tests/Test.py || die "tests failed"
90 }
91
92
93
94 --
95 gentoo-commits@g.o mailing list