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/jinja: jinja-2.7.ebuild ChangeLog
Date: Mon, 20 May 2013 14:51:22
Message-Id: 20130520145115.EE23E2171D@flycatcher.gentoo.org
1 djc 13/05/20 14:51:15
2
3 Modified: ChangeLog
4 Added: jinja-2.7.ebuild
5 Log:
6 Version bump jinja to 2.7.
7
8 (Portage version: 2.1.12.1/cvs/Linux x86_64, signed Manifest commit with key 6B065BFB)
9
10 Revision Changes Path
11 1.65 dev-python/jinja/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/jinja/ChangeLog?rev=1.65&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/jinja/ChangeLog?rev=1.65&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/jinja/ChangeLog?r1=1.64&r2=1.65
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/jinja/ChangeLog,v
20 retrieving revision 1.64
21 retrieving revision 1.65
22 diff -u -r1.64 -r1.65
23 --- ChangeLog 28 Apr 2013 16:14:34 -0000 1.64
24 +++ ChangeLog 20 May 2013 14:51:15 -0000 1.65
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/jinja
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/ChangeLog,v 1.64 2013/04/28 16:14:34 chutzpah Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/ChangeLog,v 1.65 2013/05/20 14:51:15 djc Exp $
30 +
31 +*jinja-2.7 (20 May 2013)
32 +
33 + 20 May 2013; Dirkjan Ochtman <djc@g.o> +jinja-2.7.ebuild:
34 + Version bump jinja to 2.7.
35
36 *jinja-2.6-r2 (28 Apr 2013)
37
38
39
40
41 1.1 dev-python/jinja/jinja-2.7.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/jinja/jinja-2.7.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/jinja/jinja-2.7.ebuild?rev=1.1&content-type=text/plain
45
46 Index: jinja-2.7.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/jinja-2.7.ebuild,v 1.1 2013/05/20 14:51:15 djc Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python{2_6,2_7,3_3} pypy{1_9,2_0} )
55
56 inherit eutils distutils-r1
57
58 MY_PN=Jinja2
59 MY_P=${MY_PN}-${PV}
60
61 DESCRIPTION="A small but fast and easy to use stand-alone template engine written in pure Python"
62 HOMEPAGE="http://jinja.pocoo.org/ http://pypi.python.org/pypi/Jinja2"
63 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
64
65 LICENSE="BSD"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
68 IUSE="doc examples"
69
70 RDEPEND="dev-python/markupsafe[${PYTHON_USEDEP}]
71 dev-python/setuptools[${PYTHON_USEDEP}]"
72 DEPEND="${RDEPEND}
73 doc? ( >=dev-python/sphinx-0.6 )"
74
75 # XXX: handle Babel better?
76
77 S=${WORKDIR}/${MY_P}
78
79 wrap_opts() {
80 local mydistutilsargs=()
81
82 if [[ ${EPYTHON} == python* ]]; then
83 mydistutilargs+=( --with-debugsupport )
84 fi
85
86 "${@}"
87 }
88
89 python_compile() {
90 wrap_opts distutils-r1_python_compile
91 }
92
93 python_compile_all() {
94 if use doc; then
95 cd docs || die
96
97 #if [[ ${EPYTHON} == python3* ]]; then
98 # https://github.com/mitsuhiko/jinja2/issues/115
99 # 2to3 -n -w --no-diffs jinjaext.py || die
100 #fi
101
102 emake html
103 fi
104 }
105
106 python_test() {
107 esetup.py test
108 }
109
110 python_install_all() {
111 use doc && local HTML_DOCS=( docs/_build/html/. )
112
113 distutils-r1_python_install_all
114
115 if use examples; then
116 insinto /usr/share/doc/${PF}
117 doins -r examples
118 fi
119
120 insinto /usr/share/vim/vimfiles/syntax
121 doins ext/Vim/*
122 }
123
124 pkg_postinst() {
125 if ! has_version dev-python/Babel; then
126 elog "For i18n support, please emerge dev-python/Babel."
127 fi
128 }