Gentoo Archives: gentoo-commits

From: "Dirkjan Ochtman (djc)" <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/jinja2: ChangeLog jinja2-2.3.ebuild
Date: Wed, 10 Feb 2010 08:51:45
Message-Id: E1Nf8IR-00041z-Ei@stork.gentoo.org
1 djc 10/02/10 08:51:43
2
3 Modified: ChangeLog
4 Added: jinja2-2.3.ebuild
5 Log:
6 Version bump dev-python/jinja2 to 2.3.
7 (Portage version: 2.1.7.16/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.32 dev-python/jinja2/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/ChangeLog?rev=1.32&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/ChangeLog?rev=1.32&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/ChangeLog?r1=1.31&r2=1.32
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v
19 retrieving revision 1.31
20 retrieving revision 1.32
21 diff -u -r1.31 -r1.32
22 --- ChangeLog 14 Nov 2009 16:41:52 -0000 1.31
23 +++ ChangeLog 10 Feb 2010 08:51:42 -0000 1.32
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-python/jinja2
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v 1.31 2009/11/14 16:41:52 armin76 Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v 1.32 2010/02/10 08:51:42 djc Exp $
30 +
31 +*jinja2-2.3 (10 Feb 2010)
32 +
33 + 10 Feb 2010; Dirkjan Ochtman <djc@g.o> +jinja2-2.3.ebuild:
34 + Version bump to 2.3.
35
36 14 Nov 2009; Raúl Porcel <armin76@g.o> jinja2-2.2.1.ebuild:
37 ia64/s390/sh/sparc stable wrt #287618
38
39
40
41 1.1 dev-python/jinja2/jinja2-2.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/jinja2-2.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/jinja2/jinja2-2.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: jinja2-2.3.ebuild
47 ===================================================================
48 # Copyright 1999-2010 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.3.ebuild,v 1.1 2010/02/10 08:51:42 djc Exp $
51
52 EAPI="2"
53 SUPPORT_PYTHON_ABIS="1"
54
55 inherit distutils
56
57 MY_PN="Jinja2"
58 MY_P="${MY_PN}-${PV}"
59
60 DESCRIPTION="A small but fast and easy to use stand-alone template engine written in pure python."
61 HOMEPAGE="http://jinja.pocoo.org/ http://pypi.python.org/pypi/Jinja2"
62 SRC_URI="http://pypi.python.org/packages/source/J/${MY_PN}/${MY_P}.tar.gz"
63 LICENSE="BSD"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
65 SLOT="0"
66 IUSE="doc examples i18n test"
67
68 CDEPEND="dev-python/setuptools"
69 DEPEND="${CDEPEND}
70 doc? ( >=dev-python/sphinx-0.6 )
71 test? ( dev-python/nose )"
72 RDEPEND="${CDEPEND}
73 i18n? ( >=dev-python/Babel-0.9.3 )"
74 RESTRICT_PYTHON_ABIS="3.*" # test suite doesn't work on 3.x
75
76 S="${WORKDIR}/${MY_P}"
77
78 DISTUTILS_GLOBAL_OPTIONS=("--with-speedups")
79 DOCS="CHANGES"
80
81 src_compile(){
82 distutils_src_compile
83
84 if use doc; then
85 cd "${S}/docs"
86 PYTHONPATH=.. emake html || die "Building of documentation failed"
87 fi
88 }
89
90 src_test(){
91 testing() {
92 PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" nosetests-${PYTHON_ABI} -v || return 1
93 }
94 python_execute_function testing
95 }
96
97 src_install(){
98 distutils_src_install
99
100 if use doc; then
101 dohtml -r docs/_build/html/* || die "Installation of documentation failed"
102 fi
103
104 if use examples; then
105 # Eliminate .pyc files going into /usr/share
106 find examples -name "*.pyc" -print0 | xargs -0 rm -fr
107
108 insinto "/usr/share/doc/${PF}"
109 doins -r examples || die "Failed to install examples"
110 fi
111 }