diff options
author | 2010-02-10 08:51:42 +0000 | |
---|---|---|
committer | 2010-02-10 08:51:42 +0000 | |
commit | 7d7dbc8ccc3e3e320e77c04673ad87ad663eb9ff (patch) | |
tree | 78592c5a2d86f28b8dfd2aef00ab0b3f0c55f00c /dev-python | |
parent | old (diff) | |
download | gentoo-2-7d7dbc8ccc3e3e320e77c04673ad87ad663eb9ff.tar.gz gentoo-2-7d7dbc8ccc3e3e320e77c04673ad87ad663eb9ff.tar.bz2 gentoo-2-7d7dbc8ccc3e3e320e77c04673ad87ad663eb9ff.zip |
Version bump dev-python/jinja2 to 2.3.
(Portage version: 2.1.7.16/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/jinja2/ChangeLog | 9 | ||||
-rw-r--r-- | dev-python/jinja2/jinja2-2.3.ebuild | 64 |
2 files changed, 71 insertions, 2 deletions
diff --git a/dev-python/jinja2/ChangeLog b/dev-python/jinja2/ChangeLog index 4b8f917ef6c6..478fe6d717ae 100644 --- a/dev-python/jinja2/ChangeLog +++ b/dev-python/jinja2/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/jinja2 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v 1.31 2009/11/14 16:41:52 armin76 Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v 1.32 2010/02/10 08:51:42 djc Exp $ + +*jinja2-2.3 (10 Feb 2010) + + 10 Feb 2010; Dirkjan Ochtman <djc@gentoo.org> +jinja2-2.3.ebuild: + Version bump to 2.3. 14 Nov 2009; Raúl Porcel <armin76@gentoo.org> jinja2-2.2.1.ebuild: ia64/s390/sh/sparc stable wrt #287618 diff --git a/dev-python/jinja2/jinja2-2.3.ebuild b/dev-python/jinja2/jinja2-2.3.ebuild new file mode 100644 index 000000000000..e303f5d554db --- /dev/null +++ b/dev-python/jinja2/jinja2-2.3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/jinja2-2.3.ebuild,v 1.1 2010/02/10 08:51:42 djc Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +MY_PN="Jinja2" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A small but fast and easy to use stand-alone template engine written in pure python." +HOMEPAGE="http://jinja.pocoo.org/ http://pypi.python.org/pypi/Jinja2" +SRC_URI="http://pypi.python.org/packages/source/J/${MY_PN}/${MY_P}.tar.gz" +LICENSE="BSD" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" +SLOT="0" +IUSE="doc examples i18n test" + +CDEPEND="dev-python/setuptools" +DEPEND="${CDEPEND} + doc? ( >=dev-python/sphinx-0.6 ) + test? ( dev-python/nose )" +RDEPEND="${CDEPEND} + i18n? ( >=dev-python/Babel-0.9.3 )" +RESTRICT_PYTHON_ABIS="3.*" # test suite doesn't work on 3.x + +S="${WORKDIR}/${MY_P}" + +DISTUTILS_GLOBAL_OPTIONS=("--with-speedups") +DOCS="CHANGES" + +src_compile(){ + distutils_src_compile + + if use doc; then + cd "${S}/docs" + PYTHONPATH=.. emake html || die "Building of documentation failed" + fi +} + +src_test(){ + testing() { + PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" nosetests-${PYTHON_ABI} -v || return 1 + } + python_execute_function testing +} + +src_install(){ + distutils_src_install + + if use doc; then + dohtml -r docs/_build/html/* || die "Installation of documentation failed" + fi + + if use examples; then + # Eliminate .pyc files going into /usr/share + find examples -name "*.pyc" -print0 | xargs -0 rm -fr + + insinto "/usr/share/doc/${PF}" + doins -r examples || die "Failed to install examples" + fi +} |