diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/jinja | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/jinja')
-rw-r--r-- | dev-python/jinja/Manifest | 2 | ||||
-rw-r--r-- | dev-python/jinja/files/jinja-2.6-python3.3.patch | 15 | ||||
-rw-r--r-- | dev-python/jinja/files/jinja-2.7-docs.patch | 53 | ||||
-rw-r--r-- | dev-python/jinja/jinja-2.7.3.ebuild | 73 | ||||
-rw-r--r-- | dev-python/jinja/jinja-2.8.ebuild | 72 | ||||
-rw-r--r-- | dev-python/jinja/metadata.xml | 8 |
6 files changed, 223 insertions, 0 deletions
diff --git a/dev-python/jinja/Manifest b/dev-python/jinja/Manifest new file mode 100644 index 000000000000..e01678447717 --- /dev/null +++ b/dev-python/jinja/Manifest @@ -0,0 +1,2 @@ +DIST Jinja2-2.7.3.tar.gz 378470 SHA256 2e24ac5d004db5714976a04ac0e80c6df6e47e98c354cb2c0d82f8879d4f8fdb SHA512 2810db2b52fe800e2a4a47ea41a07f997b1647a2b7ad05fe564f9d554d6a402283c84c4e2491e5dad8d22acd83d3ca420f0983ed2effc732f6d79600a846071b WHIRLPOOL ece9b68dff414739103eac202b5903d96802939f5742a2bf3ff421d87ef49043ed9a4b2a3a6bf0c2f3d9be0d8295b73c47b253553731b44912cb58add8f233c0 +DIST Jinja2-2.8.tar.gz 357055 SHA256 bc1ff2ff88dbfacefde4ddde471d1417d3b304e8df103a7a9437d47269201bf4 SHA512 2e80d6d9ad10dafcce1e6dd24493f5dffc43a17f71a30a650415638e12d3a3891738ebacc569701129214026d062d91a2b10e4f7a2c7b85d801dde26ded1bebb WHIRLPOOL 31adc38738848aa224cceb0d0afb2b85eb080d166ed84f145eb0576eeedfb91cf8d99d7c98b6a6cc6ab4fedf33fdbe3171c80fd559df48036a7441232702e749 diff --git a/dev-python/jinja/files/jinja-2.6-python3.3.patch b/dev-python/jinja/files/jinja-2.6-python3.3.patch new file mode 100644 index 000000000000..29bd38ead6df --- /dev/null +++ b/dev-python/jinja/files/jinja-2.6-python3.3.patch @@ -0,0 +1,15 @@ +diff --git a/jinja2/environment.py b/jinja2/environment.py +index ebb5454..1b5dc40 100644 +--- a/jinja2/environment.py ++++ b/jinja2/environment.py +@@ -570,6 +570,10 @@ class Environment(object): + py_header = imp.get_magic() + \ + u'\xff\xff\xff\xff'.encode('iso-8859-15') + ++ # Python 3.3 added a source filesize to the header ++ if sys.version_info >= (3, 3): ++ py_header += u'\x00\x00\x00\x00'.encode('iso-8859-15') ++ + def write_file(filename, data, mode): + if zip: + info = ZipInfo(filename) diff --git a/dev-python/jinja/files/jinja-2.7-docs.patch b/dev-python/jinja/files/jinja-2.7-docs.patch new file mode 100644 index 000000000000..d543f54d6cd7 --- /dev/null +++ b/dev-python/jinja/files/jinja-2.7-docs.patch @@ -0,0 +1,53 @@ +From da94a8b504d981cb5f877219811d169823a2095e Mon Sep 17 00:00:00 2001 +From: Armin Ronacher <armin.ronacher@active-4.com> +Date: Mon, 20 May 2013 14:06:59 +0100 +Subject: [PATCH] Fixed docs not building + +--- + docs/faq.rst | 2 +- + docs/jinjaext.py | 2 +- + docs/templates.rst | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/docs/faq.rst b/docs/faq.rst +index 4db5079..00a4d0d 100644 +--- a/docs/faq.rst ++++ b/docs/faq.rst +@@ -157,7 +157,7 @@ Python 2.3 support you either have to use `Jinja 1`_ or other templating + engines that still support 2.3. + + My Macros are overridden by something +------------------------------------- ++------------------------------------- + + In some situations the Jinja scoping appears arbitrary: + +diff --git a/docs/jinjaext.py b/docs/jinjaext.py +index 8395a55..3c217f8 100644 +--- a/docs/jinjaext.py ++++ b/docs/jinjaext.py +@@ -23,7 +23,7 @@ + from pygments.token import Keyword, Name, Comment, String, Error, \ + Number, Operator, Generic + from jinja2 import Environment, FileSystemLoader +-from jinja2.utils import next ++from jinja2._compat import next + + + def parse_rst(state, content_offset, doc): +diff --git a/docs/templates.rst b/docs/templates.rst +index e0a19fa..4a6a379 100644 +--- a/docs/templates.rst ++++ b/docs/templates.rst +@@ -579,7 +579,7 @@ Inside of a for-loop block you can access some special variables: + | `loop.depth` | Indicates how deep in deep in a recursive loop | + | | the rendering currently is. Starts at level 1 | + +-----------------------+---------------------------------------------------+ +-| `loop.depth0 | Indicates how deep in deep in a recursive loop | ++| `loop.depth0` | Indicates how deep in deep in a recursive loop | + | | the rendering currently is. Starts at level 0 | + +-----------------------+---------------------------------------------------+ + +-- +1.8.1.6 + diff --git a/dev-python/jinja/jinja-2.7.3.ebuild b/dev-python/jinja/jinja-2.7.3.ebuild new file mode 100644 index 000000000000..5dfca3cc0651 --- /dev/null +++ b/dev-python/jinja/jinja-2.7.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 ) + +inherit eutils distutils-r1 + +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="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 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" +IUSE="doc examples" + +RDEPEND="dev-python/markupsafe[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + !dev-python/jinja:compat" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +# XXX: handle Babel better? + +S=${WORKDIR}/${MY_P} +PATCHES=( "${FILESDIR}/jinja-2.7-docs.patch" ) + +wrap_opts() { + local mydistutilsargs=() + + if [[ ${EPYTHON} == python* ]]; then + mydistutilargs+=( --with-debugsupport ) + fi + + "${@}" +} + +python_compile() { + wrap_opts distutils-r1_python_compile + if [[ ${EPYTHON} == python3.2 ]]; then + 2to3 --no-diffs -n -w -f unicode "${BUILD_DIR}/lib" || die + fi +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + use examples && local EXAMPLES=( examples/. ) + + distutils-r1_python_install_all + + insinto /usr/share/vim/vimfiles/syntax + doins ext/Vim/* +} + +pkg_postinst() { + if ! has_version dev-python/Babel; then + elog "For i18n support, please emerge dev-python/Babel." + fi +} diff --git a/dev-python/jinja/jinja-2.8.ebuild b/dev-python/jinja/jinja-2.8.ebuild new file mode 100644 index 000000000000..e77e0da8195a --- /dev/null +++ b/dev-python/jinja/jinja-2.8.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 ) + +inherit eutils distutils-r1 + +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="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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" +IUSE="doc examples" + +RDEPEND="dev-python/markupsafe[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + !dev-python/jinja:compat" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +# XXX: handle Babel better? + +S=${WORKDIR}/${MY_P} + +wrap_opts() { + local mydistutilsargs=() + + if [[ ${EPYTHON} == python* ]]; then + mydistutilargs+=( --with-debugsupport ) + fi + + "${@}" +} + +python_compile() { + wrap_opts distutils-r1_python_compile + if [[ ${EPYTHON} == python3.2 ]]; then + 2to3 --no-diffs -n -w -f unicode "${BUILD_DIR}/lib" || die + fi +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + use examples && local EXAMPLES=( examples/. ) + + distutils-r1_python_install_all + + insinto /usr/share/vim/vimfiles/syntax + doins ext/Vim/* +} + +pkg_postinst() { + if ! has_version dev-python/Babel; then + elog "For i18n support, please emerge dev-python/Babel." + fi +} diff --git a/dev-python/jinja/metadata.xml b/dev-python/jinja/metadata.xml new file mode 100644 index 000000000000..45bb8cf511c3 --- /dev/null +++ b/dev-python/jinja/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> + <upstream> + <remote-id type="pypi">Jinja2</remote-id> + </upstream> +</pkgmetadata> |