diff options
author | Jesus Rivero <neurogeek@gentoo.org> | 2009-07-13 21:51:42 +0000 |
---|---|---|
committer | Jesus Rivero <neurogeek@gentoo.org> | 2009-07-13 21:51:42 +0000 |
commit | 5f3f7ab5e08589f98df2ba3aad97ed5d3e247bfb (patch) | |
tree | 8b515f9d26b5320ad6c4baa303a99633b681d9d9 /dev-python/jinja2 | |
parent | Automated update of use.local.desc (diff) | |
download | gentoo-2-5f3f7ab5e08589f98df2ba3aad97ed5d3e247bfb.tar.gz gentoo-2-5f3f7ab5e08589f98df2ba3aad97ed5d3e247bfb.tar.bz2 gentoo-2-5f3f7ab5e08589f98df2ba3aad97ed5d3e247bfb.zip |
Added patch to make Jinja2 compile with doc USE flag. Closes bug #277462. Thanks to plevine457@verizon.net for the heads up. Change to EAPI 2
(Portage version: 2.2_rc23/cvs/Linux i686)
Diffstat (limited to 'dev-python/jinja2')
-rw-r--r-- | dev-python/jinja2/ChangeLog | 9 | ||||
-rw-r--r-- | dev-python/jinja2/files/jinja2_docs_sphinx.patch | 16 | ||||
-rw-r--r-- | dev-python/jinja2/jinja2-2.1.1-r1.ebuild | 66 |
3 files changed, 90 insertions, 1 deletions
diff --git a/dev-python/jinja2/ChangeLog b/dev-python/jinja2/ChangeLog index 2049572b7ed9..f6ccfdc79c80 100644 --- a/dev-python/jinja2/ChangeLog +++ b/dev-python/jinja2/ChangeLog @@ -1,6 +1,13 @@ # 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.13 2009/07/05 20:59:40 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v 1.14 2009/07/13 21:51:42 neurogeek Exp $ + +*jinja2-2.1.1-r1 (13 Jul 2009) + + 13 Jul 2009; Jesus Rivero <neurogeek@gentoo.org> + +files/jinja2_docs_sphinx.patch, +jinja2-2.1.1-r1.ebuild: + Added patch to make Jinja2 compile with doc USE flag. Closes bug #277462. + Thanks to plevine457@verizon.net for the heads up. Change to EAPI 2 05 Jul 2009; Alexis Ballier <aballier@gentoo.org> jinja2-2.1.1.ebuild: keyword ~x86-fbsd diff --git a/dev-python/jinja2/files/jinja2_docs_sphinx.patch b/dev-python/jinja2/files/jinja2_docs_sphinx.patch new file mode 100644 index 000000000000..793b5a268b60 --- /dev/null +++ b/dev-python/jinja2/files/jinja2_docs_sphinx.patch @@ -0,0 +1,16 @@ +#Patch to fix a bug when building +#Jinja2's documentation using Sphinx +#Thanks to plevine457@verizon.net for patch +#Path url: Debian bug #527486 +# Added by neurogeek@gentoo.org 07/13/2009 +--- jinja2-2.1.1.orig/docs/conf.py ++++ jinja2-2.1.1/docs/conf.py +@@ -96,7 +96,7 @@ + #html_use_smartypants = True + + # use jinja2 for templates +-template_bridge = 'jinjaext.Jinja2Bridge' ++template_bridge = 'sphinx.jinja2glue.BuiltinTemplateLoader' + + # no modindex + html_use_modindex = False diff --git a/dev-python/jinja2/jinja2-2.1.1-r1.ebuild b/dev-python/jinja2/jinja2-2.1.1-r1.ebuild new file mode 100644 index 000000000000..e99086854802 --- /dev/null +++ b/dev-python/jinja2/jinja2-2.1.1-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/jinja2-2.1.1-r1.ebuild,v 1.1 2009/07/13 21:51:42 neurogeek Exp $ +# Ebuild generated by g-pypi 0.2.2 (rev. 214) + +EAPI="2" + +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/" +SRC_URI="http://pypi.python.org/packages/source/J/${MY_PN}/${MY_P}.tar.gz" +LICENSE="BSD" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +SLOT="0" +IUSE="doc examples i18n test" + +CDEPEND="virtual/python + dev-python/setuptools" +DEPEND="${CDEPEND} + doc? ( >=dev-python/docutils-0.4 + >=dev-python/sphinx-0.3 )" +RDEPEND="${CDEPEND} + i18n? ( >=dev-python/Babel-0.9.3 )" + +S="${WORKDIR}/${MY_P}" +DOCS="CHANGES" + +src_prepare(){ + epatch "${FILESDIR}/${PN}-2.0_no_docs.patch" + epatch "${FILESDIR}/${PN}_docs_sphinx.patch" +} + +src_compile(){ + distutils_src_compile + + if use doc ; then + cd "${S}/docs" + PYTHONPATH=../ emake html || die "Error building docs" + fi +} + +src_install(){ + distutils_src_install + + if use doc ; then + dohtml -r docs/_build/html/* || + die "Failed to install docs" + fi + + if use examples ; then + #Eliminate pyc files going into /usr/share + $(find examples -name '*.pyc' -exec rm -rf {} ';') + + insinto "/usr/share/doc/${PF}" + doins -r examples || + die "Failed to install examples" + fi +} + +src_test(){ + "${python}" setup.py test || die "Tests failed" +} |