diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-17 21:36:29 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-17 21:36:29 +0000 |
commit | 8d79b406a4c73f070252d9646f885bdee7ffbf1c (patch) | |
tree | b69477dd0b66cd37d3705754a461289beabe9a2c /net-zope/documenttemplate | |
parent | Add patch for sip 4.10.3. Thanks everyone on bug #328135. (diff) | |
download | gentoo-2-8d79b406a4c73f070252d9646f885bdee7ffbf1c.tar.gz gentoo-2-8d79b406a4c73f070252d9646f885bdee7ffbf1c.tar.bz2 gentoo-2-8d79b406a4c73f070252d9646f885bdee7ffbf1c.zip |
Initial addition.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'net-zope/documenttemplate')
-rw-r--r-- | net-zope/documenttemplate/ChangeLog | 10 | ||||
-rw-r--r-- | net-zope/documenttemplate/documenttemplate-2.13.1.ebuild | 73 | ||||
-rw-r--r-- | net-zope/documenttemplate/metadata.xml | 5 |
3 files changed, 88 insertions, 0 deletions
diff --git a/net-zope/documenttemplate/ChangeLog b/net-zope/documenttemplate/ChangeLog new file mode 100644 index 000000000000..06c9606fbd4d --- /dev/null +++ b/net-zope/documenttemplate/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-zope/documenttemplate +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/documenttemplate/ChangeLog,v 1.1 2010/07/17 21:36:29 arfrever Exp $ + +*documenttemplate-2.13.1 (17 Jul 2010) + + 17 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +documenttemplate-2.13.1.ebuild, +metadata.xml: + Initial addition. Ebuild written by me. + diff --git a/net-zope/documenttemplate/documenttemplate-2.13.1.ebuild b/net-zope/documenttemplate/documenttemplate-2.13.1.ebuild new file mode 100644 index 000000000000..a3c4bb050770 --- /dev/null +++ b/net-zope/documenttemplate/documenttemplate-2.13.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/documenttemplate/documenttemplate-2.13.1.ebuild,v 1.1 2010/07/17 21:36:29 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" +# DISTUTILS_SRC_TEST="nosetests" + +inherit distutils + +MY_PN="DocumentTemplate" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Document Templating Markup Language (DTML)" +HOMEPAGE="http://pypi.python.org/pypi/DocumentTemplate" +SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" + +LICENSE="ZPL" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~sparc ~x86" +IUSE="" + +RDEPEND="dev-python/restrictedpython + net-zope/accesscontrol + net-zope/acquisition + net-zope/extensionclass + net-zope/zexceptions + net-zope/zope-sequencesort + net-zope/zope-structuredtext" +DEPEND="${RDEPEND} + app-arch/unzip + dev-python/setuptools" + +# Tests are broken. +RESTRICT="test" + +S="${WORKDIR}/${MY_P}" + +DOCS="CHANGES.txt README.txt" +PYTHON_MODNAME="DocumentTemplate TreeDisplay" + +src_prepare() { + distutils_src_prepare + + # Disable broken tests. + rm -f src/DocumentTemplate/sequence/tests/testSequence.py + sed \ + -e "s/test_fmt_reST_include_directive_raises/_&/" \ + -e "s/test_fmt_reST_raw_directive_disabled/_&/" \ + -e "s/test_fmt_reST_raw_directive_file_option_raises/_&/" \ + -e "s/test_fmt_reST_raw_directive_url_option_raises/_&/" \ + -i src/DocumentTemplate/tests/testDTML.py || die "sed failed" +} + +distutils_src_test_pre_hook() { + local module + for module in DocumentTemplate; do + ln -fs "../../$(ls -d build-${PYTHON_ABI}/lib.*)/${module}/c${module}.so" "src/${module}/c${module}.so" || die "Symlinking ${module}/c${module}.so failed with Python ${PYTHON_ABI}" + done +} + +src_install() { + distutils_src_install + python_clean_installation_image + + delete_tests() { + rm -fr "${ED}$(python_get_sitedir)/DocumentTemplate/sequence/tests" + rm -fr "${ED}$(python_get_sitedir)/DocumentTemplate/tests" + } + python_execute_function -q delete_tests +} diff --git a/net-zope/documenttemplate/metadata.xml b/net-zope/documenttemplate/metadata.xml new file mode 100644 index 000000000000..42125e6223db --- /dev/null +++ b/net-zope/documenttemplate/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>net-zope</herd> +</pkgmetadata> |