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