summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <neurogeek@gentoo.org>2008-10-24 05:40:29 +0000
committerJesus Rivero <neurogeek@gentoo.org>2008-10-24 05:40:29 +0000
commit51b878ef514d67aa0ae78bf94aad655570182bc4 (patch)
treea57decf25a6858064b3a9c3c2f7c2f394a9a7813 /dev-python/jinja2
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-51b878ef514d67aa0ae78bf94aad655570182bc4.tar.gz
gentoo-2-51b878ef514d67aa0ae78bf94aad655570182bc4.tar.bz2
gentoo-2-51b878ef514d67aa0ae78bf94aad655570182bc4.zip
Initial commit. Bug #237036
(Portage version: 2.2_rc12/cvs/Linux 2.6.18-gentoo-r3 i686)
Diffstat (limited to 'dev-python/jinja2')
-rw-r--r--dev-python/jinja2/ChangeLog10
-rw-r--r--dev-python/jinja2/Manifest5
-rw-r--r--dev-python/jinja2/files/jinja2-2.0_no_docs.patch27
-rw-r--r--dev-python/jinja2/jinja2-2.0.ebuild61
-rw-r--r--dev-python/jinja2/metadata.xml8
5 files changed, 111 insertions, 0 deletions
diff --git a/dev-python/jinja2/ChangeLog b/dev-python/jinja2/ChangeLog
new file mode 100644
index 000000000000..2faab7c6a90d
--- /dev/null
+++ b/dev-python/jinja2/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/jinja2
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/ChangeLog,v 1.1 2008/10/24 05:40:29 neurogeek Exp $
+
+*jinja2-2.0 (24 Oct 2008)
+
+ 24 Oct 2008; Jesus Rivero <neurogeek@gentoo.org>
+ +files/jinja2-2.0_no_docs.patch, +metadata.xml, +jinja2-2.0.ebuild:
+ Initial commit. Bug #237036
+
diff --git a/dev-python/jinja2/Manifest b/dev-python/jinja2/Manifest
new file mode 100644
index 000000000000..1ac811e585c6
--- /dev/null
+++ b/dev-python/jinja2/Manifest
@@ -0,0 +1,5 @@
+AUX jinja2-2.0_no_docs.patch 958 RMD160 d492587d32d01540d9670d0b0c92191a3f51a8f8 SHA1 cb252f7602d6ef0c6ea77c10b6d5b0af97ed2586 SHA256 c16c3eb18bb28c60af83ec1564ccd8e2f901420ccae1e7155679b431f61c1854
+DIST Jinja2-2.0.tar.gz 523360 RMD160 0d4cb29962db3d12a092c778f305256511a8b0e9 SHA1 c2723e7d79ee7ed1f7f3780bde92f2d6cd308cc4 SHA256 15b17b02d6042bbec2511b655b17561633c8cf5dad68c42356f3f82ec24e4c57
+EBUILD jinja2-2.0.ebuild 1330 RMD160 5744ec3f127b00387758edbbbfaffb784c39285d SHA1 479124e83d7f07dbe4ec296924ae69cd6c64e9c0 SHA256 723a9fa902e2f1a0c98dd8265e838b8322a8520f7cd4bf8c4594aaff282ea710
+MISC ChangeLog 297 RMD160 f2f12f645afa4a6ea266ddac3061fc6e48e62bbb SHA1 ce6fe6d1254b3c21766be0d3c34820abc392d288 SHA256 904e52e584e3a2102351d443e02cc138be31afbba64047590841b0c2316750a6
+MISC metadata.xml 260 RMD160 73b34094a529f5ab0dcf98717fe00e6759dfb397 SHA1 48e84c78c92d7b5cdadb9db94c7c5681158ab498 SHA256 02bf37f6abc119298b0af0cfc3ce295479e514b0c1b39465e2c4e8f1b1628f7c
diff --git a/dev-python/jinja2/files/jinja2-2.0_no_docs.patch b/dev-python/jinja2/files/jinja2-2.0_no_docs.patch
new file mode 100644
index 000000000000..40cf60ad3581
--- /dev/null
+++ b/dev-python/jinja2/files/jinja2-2.0_no_docs.patch
@@ -0,0 +1,27 @@
+--- setup.py.orig 2008-10-23 07:58:41.000000000 -0400
++++ setup.py 2008-10-23 07:58:55.000000000 -0400
+@@ -53,15 +53,15 @@
+
+
+ data_files = []
+-documentation_path = 'docs/_build/html'
+-if os.path.exists(documentation_path):
+- documentation_files = []
+- for fn in os.listdir(documentation_path):
+- if not fn.startswith('.'):
+- fn = os.path.join(documentation_path, fn)
+- if os.path.isfile(fn):
+- documentation_files.append(fn)
+- data_files.append(('docs', documentation_files))
++#documentation_path = 'docs/_build/html'
++#if os.path.exists(documentation_path):
++# documentation_files = []
++# for fn in os.listdir(documentation_path):
++# if not fn.startswith('.'):
++# fn = os.path.join(documentation_path, fn)
++# if os.path.isfile(fn):
++# documentation_files.append(fn)
++# data_files.append(('docs', documentation_files))
+
+
+ def get_terminal_width():
diff --git a/dev-python/jinja2/jinja2-2.0.ebuild b/dev-python/jinja2/jinja2-2.0.ebuild
new file mode 100644
index 000000000000..18b978548496
--- /dev/null
+++ b/dev-python/jinja2/jinja2-2.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja2/jinja2-2.0.ebuild,v 1.1 2008/10/24 05:40:29 neurogeek Exp $
+# Ebuild generated by g-pypi 0.2.2 (rev. 214)
+
+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="~x86"
+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_compile(){
+ distutils_src_compile
+ epatch "${FILESDIR}/${P}_no_docs.patch"
+
+ 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"
+}
diff --git a/dev-python/jinja2/metadata.xml b/dev-python/jinja2/metadata.xml
new file mode 100644
index 000000000000..aca2dd1d2030
--- /dev/null
+++ b/dev-python/jinja2/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <use>
+ <flag name='i18n'>Enables support for i18n with <pkg>dev-python/Babel</pkg></flag>
+ </use>
+</pkgmetadata>