Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/jinja2: ChangeLog jinja2-2.1.1.ebuild
Date: Sat, 24 Jan 2009 17:04:05
Message-Id: E1LQlvL-0007Et-6j@stork.gentoo.org
1 patrick 09/01/24 17:03:59
2
3 Modified: ChangeLog
4 Added: jinja2-2.1.1.ebuild
5 Log:
6 Bump to 2.1.1, fixes #255445
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 dev-python/jinja2/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/ChangeLog?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/ChangeLog?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/ChangeLog?r1=1.3&r2=1.4
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- ChangeLog 6 Dec 2008 23:25:55 -0000 1.3
23 +++ ChangeLog 24 Jan 2009 17:03:59 -0000 1.4
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-python/jinja2
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v 1.3 2008/12/06 23:25:55 patrick Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v 1.4 2009/01/24 17:03:59 patrick Exp $
30 +
31 +*jinja2-2.1.1 (24 Jan 2009)
32 +
33 + 24 Jan 2009; Patrick Lauer <patrick@g.o> +jinja2-2.1.1.ebuild:
34 + Bump to 2.1.1, fixes #255445
35
36 *jinja2-2.1 (06 Dec 2008)
37
38
39
40
41 1.1 dev-python/jinja2/jinja2-2.1.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/jinja2-2.1.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/jinja2-2.1.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: jinja2-2.1.1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/jinja2-2.1.1.ebuild,v 1.1 2009/01/24 17:03:59 patrick Exp $
51 # Ebuild generated by g-pypi 0.2.2 (rev. 214)
52
53 inherit distutils
54
55 MY_PN="Jinja2"
56 MY_P="${MY_PN}-${PV}"
57
58 DESCRIPTION="A small but fast and easy to use stand-alone template engine written in pure python."
59 HOMEPAGE="http://jinja.pocoo.org/"
60 SRC_URI="http://pypi.python.org/packages/source/J/${MY_PN}/${MY_P}.tar.gz"
61 LICENSE="BSD"
62 KEYWORDS="~amd64 ~x86"
63 SLOT="0"
64 IUSE="doc examples i18n test"
65
66 CDEPEND="virtual/python
67 dev-python/setuptools"
68 DEPEND="${CDEPEND}
69 doc? ( >=dev-python/docutils-0.4
70 >=dev-python/sphinx-0.3 )"
71 RDEPEND="${CDEPEND}
72 i18n? ( >=dev-python/Babel-0.9.3 )"
73
74 S="${WORKDIR}/${MY_P}"
75 DOCS="CHANGES"
76
77 src_compile(){
78 distutils_src_compile
79 epatch "${FILESDIR}/${PN}-2.0_no_docs.patch"
80
81 if use doc ; then
82 cd "${S}/docs"
83 PYTHONPATH=../ emake html || die "Error building docs"
84 fi
85 }
86
87 src_install(){
88 distutils_src_install
89
90 if use doc ; then
91 dohtml -r docs/_build/html/* ||
92 die "Failed to install docs"
93 fi
94
95 if use examples ; then
96 #Eliminate pyc files going into /usr/share
97 $(find examples -name '*.pyc' -exec rm -rf {} \;)
98
99 insinto "/usr/share/doc/${PF}"
100 doins -r examples ||
101 die "Failed to install examples"
102 fi
103 }
104
105 src_test(){
106 "${python}" setup.py test || die "Tests failed"
107 }