diff options
-rw-r--r-- | dev-python/zope-tales/Manifest | 1 | ||||
-rw-r--r-- | dev-python/zope-tales/metadata.xml | 22 | ||||
-rw-r--r-- | dev-python/zope-tales/zope-tales-5.2.ebuild | 53 |
3 files changed, 76 insertions, 0 deletions
diff --git a/dev-python/zope-tales/Manifest b/dev-python/zope-tales/Manifest new file mode 100644 index 0000000..0fd680f --- /dev/null +++ b/dev-python/zope-tales/Manifest @@ -0,0 +1 @@ +DIST zope-tales-5.2.gh.tar.gz 29078 BLAKE2B dc9254150a47e5e262a8dd724b7c6ee64877b4cbfcca03f4d811c7571584f72b7f26c719eb9e17f60abd5261208446520a1d1215b7f77eff8b07b99c7a4a657d SHA512 d46d5612b43ad1f3aea052b6b33fdd24909432a78cf8caa8ffc24403ea042f39b52bcbe56b0eccab2c1d0e2102c57ceece8639b6702eaa901ec3b32a15d53345 diff --git a/dev-python/zope-tales/metadata.xml b/dev-python/zope-tales/metadata.xml new file mode 100644 index 0000000..9f7ab07 --- /dev/null +++ b/dev-python/zope-tales/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Julien Roy</name> + <email>julien@jroy.ca</email> + </maintainer> + <longdescription> + zope.tales (Template Attribute Language - Expression Syntax) is an expression language designed to work with zope.tal (although it can be used independently). The two are integrated to produce page templates in zope.pagetemplate. + </longdescription> + <upstream> + <maintainer> + <name>Zope Foundation and Contributors</name> + <email>zope-dev@zope.org</email> + </maintainer> + <bugs-to>https://github.com/zopefoundation/zope.tales/issues</bugs-to> + <changelog>https://github.com/zopefoundation/zope.tales/blob/master/CHANGES.rst</changelog> + <doc>https://zopetales.readthedocs.io</doc> + <remote-id type="github">zopefoundation/zope.tales</remote-id> + <remote-id type="pypi">zope.tales</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/zope-tales/zope-tales-5.2.ebuild b/dev-python/zope-tales/zope-tales-5.2.ebuild new file mode 100644 index 0000000..e86e069 --- /dev/null +++ b/dev-python/zope-tales/zope-tales-5.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="Template Attribute Language - Expression Syntax" +HOMEPAGE="https://github.com/zopefoundation/zope.tales" +SRC_URI="https://github.com/zopefoundation/zope.tales/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${PN/-/\.}-${PV}" + +LICENSE="ZPL" +SLOT="0" +KEYWORDS="~amd64" +# Zope Testrunner +RESTRICT="test" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}] + doc? ( + dev-python/repoze-sphinx-autointerface[${PYTHON_USEDEP}] + dev-python/zope-tal[${PYTHON_USEDEP}] + ) + test? ( + dev-python/zope-testing[${PYTHON_USEDEP}] + dev-python/zope-testrunner[${PYTHON_USEDEP}] + ) +" +DEPEND="${RDEPEND}" + +distutils_enable_sphinx docs +distutils_enable_tests unittest + +src_prepare() { + # strip rdep specific to namespaces + sed -i -e "/'setuptools'/d" setup.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}" -name '*.pth' -delete || die +} + +src_test() { + cd "${S}/src/zope/untrustedpython" || die + distutils-r1_src_test +} |