summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-12-19 20:52:17 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-12-19 20:52:17 +0000
commitfc33883f7cebca4328990bde6617b6dd3377c3ad (patch)
tree9fa01b24ba56421738505b4888cff00c59b02cb4 /dev-python/cheetah
parentBump for #349112 (diff)
downloadgentoo-2-fc33883f7cebca4328990bde6617b6dd3377c3ad.tar.gz
gentoo-2-fc33883f7cebca4328990bde6617b6dd3377c3ad.tar.bz2
gentoo-2-fc33883f7cebca4328990bde6617b6dd3377c3ad.zip
Version bump. Fixed tests with Python 2.7 (bug #293974).
(Portage version: 2.2.0_alpha9_p4/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/cheetah')
-rw-r--r--dev-python/cheetah/ChangeLog8
-rw-r--r--dev-python/cheetah/cheetah-2.4.4.ebuild58
2 files changed, 65 insertions, 1 deletions
diff --git a/dev-python/cheetah/ChangeLog b/dev-python/cheetah/ChangeLog
index 7619ab23252b..29ecd42fe1c9 100644
--- a/dev-python/cheetah/ChangeLog
+++ b/dev-python/cheetah/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/cheetah
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cheetah/ChangeLog,v 1.74 2010/11/14 14:56:20 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cheetah/ChangeLog,v 1.75 2010/12/19 20:52:17 arfrever Exp $
+
+*cheetah-2.4.4 (19 Dec 2010)
+
+ 19 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +cheetah-2.4.4.ebuild:
+ Version bump. Fixed tests with Python 2.7 (bug #293974).
14 Nov 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-cheetah-2.4.2.1.ebuild:
diff --git a/dev-python/cheetah/cheetah-2.4.4.ebuild b/dev-python/cheetah/cheetah-2.4.4.ebuild
new file mode 100644
index 000000000000..81bc522016b8
--- /dev/null
+++ b/dev-python/cheetah/cheetah-2.4.4.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cheetah/cheetah-2.4.4.ebuild,v 1.1 2010/12/19 20:52:17 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils
+
+MY_PN="Cheetah"
+MY_P="${MY_PN}-${PV/_}"
+
+DESCRIPTION="Python-powered template engine and code generator."
+HOMEPAGE="http://www.cheetahtemplate.org/ http://rtyler.github.com/cheetah/ http://pypi.python.org/pypi/Cheetah"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="PSF-2.2"
+IUSE=""
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+SLOT="0"
+
+RDEPEND="dev-python/markdown"
+DEPEND="${RDEPEND}
+ dev-python/setuptools"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="CHANGES README.markdown TODO"
+PYTHON_MODNAME="Cheetah"
+
+src_prepare() {
+ distutils_src_prepare
+
+ # Disable broken tests.
+ sed \
+ -e "/Unicode/d" \
+ -e "s/if not sys.platform.startswith('java'):/if False:/" \
+ -e "/results =/a\\ sys.exit(not results.wasSuccessful())" \
+ -i cheetah/Tests/Test.py || die "sed failed"
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" cheetah/Tests/Test.py
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+
+ delete_tests() {
+ rm -fr "${ED}$(python_get_sitedir)/Cheetah/Tests"
+ }
+ python_execute_function -q delete_tests
+}