diff options
-rw-r--r-- | dev-python/zope-datetime/Manifest | 1 | ||||
-rw-r--r-- | dev-python/zope-datetime/metadata.xml | 19 | ||||
-rw-r--r-- | dev-python/zope-datetime/zope-datetime-4.3.0.ebuild | 46 |
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/zope-datetime/Manifest b/dev-python/zope-datetime/Manifest new file mode 100644 index 0000000..ea7f5c9 --- /dev/null +++ b/dev-python/zope-datetime/Manifest @@ -0,0 +1 @@ +DIST zope-datetime-4.3.0.gh.tar.gz 47391 BLAKE2B 2230232c2ade2b7a4e8ec496ed186547c2181e61de56febf761258d9825b8eff8e61db5cd23dcaba1a0ee7b11c1dff6b98ddc318346fb68feb10b70edb04f2db SHA512 22b7c769a1be1f7ed7ec557ea79ae66dc9f3917f939afda0d3c866262e2331f7ef7266bc013b79a860795a2a777c1532772b1b33b78fafb5dba336c4c43c716e diff --git a/dev-python/zope-datetime/metadata.xml b/dev-python/zope-datetime/metadata.xml new file mode 100644 index 0000000..8e83161 --- /dev/null +++ b/dev-python/zope-datetime/metadata.xml @@ -0,0 +1,19 @@ +<?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> + <upstream> + <maintainer> + <name>Zope Foundation and Contributors</name> + <email>zope-dev@zope.org</email> + </maintainer> + <bugs-to>https://github.com/zopefoundation/zope.datetime/issues</bugs-to> + <changelog>https://github.com/zopefoundation/zope.datetime/blob/master/CHANGES.rst</changelog> + <doc>https://zopedatetime.readthedocs.io</doc> + <remote-id type="github">zopefoundation/zope.datetime</remote-id> + <remote-id type="pypi">zope.datetime</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/zope-datetime/zope-datetime-4.3.0.ebuild b/dev-python/zope-datetime/zope-datetime-4.3.0.ebuild new file mode 100644 index 0000000..6eefdbc --- /dev/null +++ b/dev-python/zope-datetime/zope-datetime-4.3.0.ebuild @@ -0,0 +1,46 @@ +# 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="Commonly used date and time related utility functions" +HOMEPAGE="https://github.com/zopefoundation/zope.datetime" +SRC_URI="https://github.com/zopefoundation/zope.datetime/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}] + doc? ( dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] ) + test? ( 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 +} |