From 58da98e6220c358c872b1c1e25f2180ecd6ab46f Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Mon, 6 Feb 2023 21:15:28 -0500 Subject: dev-python/zope-tales: new package, add 5.2 Signed-off-by: Julien Roy --- dev-python/zope-tales/Manifest | 1 + dev-python/zope-tales/metadata.xml | 22 ++++++++++++ dev-python/zope-tales/zope-tales-5.2.ebuild | 53 +++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 dev-python/zope-tales/Manifest create mode 100644 dev-python/zope-tales/metadata.xml create mode 100644 dev-python/zope-tales/zope-tales-5.2.ebuild (limited to 'dev-python') 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 @@ + + + + + Julien Roy + julien@jroy.ca + + + 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. + + + + Zope Foundation and Contributors + zope-dev@zope.org + + https://github.com/zopefoundation/zope.tales/issues + https://github.com/zopefoundation/zope.tales/blob/master/CHANGES.rst + https://zopetales.readthedocs.io + zopefoundation/zope.tales + zope.tales + + 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 +} -- cgit v1.2.3