summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreroen <eroen@occam.eroen.eu>2013-09-27 16:30:58 +0200
committereroen <eroen@occam.eroen.eu>2013-09-27 16:30:58 +0200
commit0e137e4805f1e68b30243f74bc7f17f37b52ab65 (patch)
treeeb953497fb2c25b095325b503a80ca5c41d48c81 /dev-python
parenttermite-6 - git-r3.eclass (diff)
downloaderoen-0e137e4805f1e68b30243f74bc7f17f37b52ab65.tar.gz
eroen-0e137e4805f1e68b30243f74bc7f17f37b52ab65.tar.bz2
eroen-0e137e4805f1e68b30243f74bc7f17f37b52ab65.zip
mako-0.7.3-r1 from gentoo
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/mako/Manifest4
-rw-r--r--dev-python/mako/files/test-fix.patch11
-rw-r--r--dev-python/mako/mako-0.7.3-r1.ebuild53
-rw-r--r--dev-python/mako/metadata.xml5
4 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/mako/Manifest b/dev-python/mako/Manifest
new file mode 100644
index 0000000..698eb01
--- /dev/null
+++ b/dev-python/mako/Manifest
@@ -0,0 +1,4 @@
+AUX test-fix.patch 432 SHA256 344aee637baf354951849e979ab4e7e61026b34c2ff0510f3944db7fc78ae6f1 SHA512 2c13f048cebaac8dc37c08529fada9416f55b338b7f1fc4a2244cc199f8026ad05688fab1d7b1b1ba48dc8b23ac56b39964a39c0712e6f459d729d2be752bc2d WHIRLPOOL 928f7d9f00e09f61ca19094577530b891ee5930959e70b11191152ba01304e55d53c5ffc66ccea58f3cd11483cf2c06c8c67ec959be0ce9d99d7ea6aee945115
+DIST Mako-0.7.3.tar.gz 401787 SHA256 5e1d17fbd1aed57ebeea74ee3809015b121e142d73069066a113a125a4ec2ef5 SHA512 3134a05fcacb5d8e41ebab3bedb6c1a31eec94afb56f2c8319fee4b749930fcc7df5ed86e0de26cafbaea966b920921e29788f1c6ba5810eedb4d98f322085f9 WHIRLPOOL 8d3011b472a4bd04c4ef0ddad4767357bd1c570228702e900c956582c2e1e7e668765a34e4e450e18b8a1e0562d9b024ee1ae8b82efc891023154cf442f16d8a
+EBUILD mako-0.7.3-r1.ebuild 1367 SHA256 12732501a1bb591f862744f9adc0c228e08b75f3413f57df64eb7f235707e2d6 SHA512 dd5c26f1ddb05ef3af2bae1d341f9f6ac3dd5164f3c6ab7eb0f2a80879961509d14d730ad2a8ab7f154bdd6756ef9f07ecdd5549d9dbc4244390dac5936fd2a8 WHIRLPOOL 8cc4bea8e037c60a338d7d49bc2d1356c8b1bbf068035bdba6ad96d69a77bc75c94e453959d77b78e714e38065ea3efd3484763cf65267748be76041f13f6e48
+MISC metadata.xml 160 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a SHA512 7c02a1de1ddcb6b7c6378cceff0458da3a15d5381417f7cdf01874e7c372664b8899863f41b3a2fd8d6ad67ceb732dac6da0cc17575bf8e3e6d89480417c6628 WHIRLPOOL ed2795e4466eda8c804d5067c87386e269a59fe959393057ca5ddc36851e00f5210c4da1adf4bbdfdbb7d1d3d5c60aced25727ca12fdc8305d9e263a3aca9b13
diff --git a/dev-python/mako/files/test-fix.patch b/dev-python/mako/files/test-fix.patch
new file mode 100644
index 0000000..3792e3e
--- /dev/null
+++ b/dev-python/mako/files/test-fix.patch
@@ -0,0 +1,11 @@
+diff -ur Mako-0.7.0.orig/test/test_template.py Mako-0.7.0/test/test_template.py
+--- test/test_template.py 2012-03-31 07:52:02.000000000 +0800
++++ test/test_template.py 2012-04-11 20:25:23.797168875 +0800
+@@ -1,5 +1,5 @@
+ # -*- coding: utf-8 -*-
+-
++from __future__ import with_statement
+ from mako.template import Template, ModuleTemplate
+ from mako.lookup import TemplateLookup
+ from mako.ext.preprocessors import convert_comments
+
diff --git a/dev-python/mako/mako-0.7.3-r1.ebuild b/dev-python/mako/mako-0.7.3-r1.ebuild
new file mode 100644
index 0000000..6935364
--- /dev/null
+++ b/dev-python/mako/mako-0.7.3-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1998-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/mako/mako-0.7.3-r1.ebuild,v 1.9 2013/09/05 18:46:35 mgorny Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7,3_2} )
+
+inherit distutils-r1
+
+MY_P="Mako-${PV}"
+
+DESCRIPTION="A Python templating language"
+HOMEPAGE="http://www.makotemplates.org/ http://pypi.python.org/pypi/Mako"
+SRC_URI="http://www.makotemplates.org/downloads/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ia64 ppc ~ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="doc test"
+
+RDEPEND=">=dev-python/beaker-1.1[${PYTHON_USEDEP}]
+ >=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/test-fix.patch"
+)
+
+python_test() {
+ cp -r -l test "${BUILD_DIR}"/ || die
+
+ if [[ ${EPYTHON} == python3.* ]]; then
+ # Notes:
+ # -W is not supported by python3.1
+ # -n causes Python to write into hardlinked files
+ 2to3 --no-diffs -w "${BUILD_DIR}"/test || die
+ fi
+
+ cd "${BUILD_DIR}"/test || die
+ nosetests || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ rm -rf doc/build
+
+ use doc && local HTML_DOCS=( doc/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/mako/metadata.xml b/dev-python/mako/metadata.xml
new file mode 100644
index 0000000..301d220
--- /dev/null
+++ b/dev-python/mako/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+</pkgmetadata>