diff options
Diffstat (limited to 'dev-python/zope-pagetemplate')
-rw-r--r-- | dev-python/zope-pagetemplate/Manifest | 1 | ||||
-rw-r--r-- | dev-python/zope-pagetemplate/metadata.xml | 24 | ||||
-rw-r--r-- | dev-python/zope-pagetemplate/zope-pagetemplate-4.6.0.ebuild | 58 |
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-python/zope-pagetemplate/Manifest b/dev-python/zope-pagetemplate/Manifest new file mode 100644 index 0000000..3c3a377 --- /dev/null +++ b/dev-python/zope-pagetemplate/Manifest @@ -0,0 +1 @@ +DIST zope-pagetemplate-4.6.0.gh.tar.gz 36142 BLAKE2B b3e654104931dbd4840a6957cc4f2eb83c50d73114b4dea15080166e1645e87d31537f0840c0aece8229584644ed174770ad5e76c54b9f2eede7faa4318869c5 SHA512 50f26ed4013d0aeb440c48deeed0faaf5adda1ee42b84aecd6b793cc17d677a911e1713390ec9e8b3b008b7a3b6bdcd4c309a67c0298a4f01ef3ebf9f6bfe213 diff --git a/dev-python/zope-pagetemplate/metadata.xml b/dev-python/zope-pagetemplate/metadata.xml new file mode 100644 index 0000000..20a85cc --- /dev/null +++ b/dev-python/zope-pagetemplate/metadata.xml @@ -0,0 +1,24 @@ +<?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> + Page Templates provide an elegant templating mechanism that achieves a clean separation of presentation and application logic while allowing for designers to work with templates in their visual editing tools (FrontPage, Dreamweaver, GoLive, etc.). + + Page Templates are based on a Template Attribute Language with expressions provided by TALES. For a description of their syntax, see the reference documentation. + </longdescription> + <upstream> + <maintainer> + <name>Zope Foundation and Contributors</name> + <email>zope-dev@zope.org</email> + </maintainer> + <bugs-to>https://github.com/zopefoundation/zope.pagetemplate/issues</bugs-to> + <changelog>https://github.com/zopefoundation/zope.pagetemplate/blob/master/CHANGES.rst</changelog> + <doc>https://zopepagetemplate.readthedocs.io</doc> + <remote-id type="github">zopefoundation/zope.pagetemplate</remote-id> + <remote-id type="pypi">zope.pagetemplate</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/zope-pagetemplate/zope-pagetemplate-4.6.0.ebuild b/dev-python/zope-pagetemplate/zope-pagetemplate-4.6.0.ebuild new file mode 100644 index 0000000..da07017 --- /dev/null +++ b/dev-python/zope-pagetemplate/zope-pagetemplate-4.6.0.ebuild @@ -0,0 +1,58 @@ +# 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="Zope Page Templates" +HOMEPAGE="https://github.com/zopefoundation/zope.pagetemplate" +SRC_URI="https://github.com/zopefoundation/zope.pagetemplate/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-component[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}] + dev-python/zope-i18n[${PYTHON_USEDEP}] + dev-python/zope-i18nmessageid[${PYTHON_USEDEP}] + dev-python/zope-tal[${PYTHON_USEDEP}] + dev-python/zope-tales[${PYTHON_USEDEP}] + dev-python/zope-traversing[${PYTHON_USEDEP}] + doc? ( dev-python/repoze-sphinx-autointerface[${PYTHON_USEDEP}] ) + test? ( + dev-python/zope-proxy[${PYTHON_USEDEP}] + dev-python/zope-security[${PYTHON_USEDEP}] + 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 +} |