From 9973b7921660ec403e71df823d8aac011a4ae64e Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Sat, 4 Feb 2023 23:32:58 -0500 Subject: dev-python/zope-filerepresentation: new package, add 6.0 Signed-off-by: Julien Roy --- dev-python/zope-filerepresentation/Manifest | 1 + dev-python/zope-filerepresentation/metadata.xml | 19 +++++++++ .../zope-filerepresentation-6.0.ebuild | 48 ++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 dev-python/zope-filerepresentation/Manifest create mode 100644 dev-python/zope-filerepresentation/metadata.xml create mode 100644 dev-python/zope-filerepresentation/zope-filerepresentation-6.0.ebuild (limited to 'dev-python') diff --git a/dev-python/zope-filerepresentation/Manifest b/dev-python/zope-filerepresentation/Manifest new file mode 100644 index 0000000..96e1791 --- /dev/null +++ b/dev-python/zope-filerepresentation/Manifest @@ -0,0 +1 @@ +DIST zope-filerepresentation-6.0.gh.tar.gz 14112 BLAKE2B 9a69165ddbd35baf19eaba0cec273703dafd8c057a57df0b1513e35dc50f191a726797c8055bb0019e4b2b57ae659b4200122b4e47615893a538248576a38f3e SHA512 06616b4148749d02f185fcd5ed9bafcb4bc353d1d733b29cfd6c979076cf7945d7724793232dc7748d36fa56690dd592613d2ac180102f908277578a40e19f2b diff --git a/dev-python/zope-filerepresentation/metadata.xml b/dev-python/zope-filerepresentation/metadata.xml new file mode 100644 index 0000000..e4859cc --- /dev/null +++ b/dev-python/zope-filerepresentation/metadata.xml @@ -0,0 +1,19 @@ + + + + + Julien Roy + julien@jroy.ca + + + + Zope Foundation and Contributors + zope-dev@zope.org + + https://github.com/zopefoundation/zope.filerepresentation/issues + https://github.com/zopefoundation/zope.filerepresentation/blob/master/CHANGES.rst + https://zopefilerepresentation.readthedocs.io + zopefoundation/zope.filerepresentation + zope.filerepresentation + + diff --git a/dev-python/zope-filerepresentation/zope-filerepresentation-6.0.ebuild b/dev-python/zope-filerepresentation/zope-filerepresentation-6.0.ebuild new file mode 100644 index 0000000..cf69443 --- /dev/null +++ b/dev-python/zope-filerepresentation/zope-filerepresentation-6.0.ebuild @@ -0,0 +1,48 @@ +# 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="Interfaces for file-system and file-system-like representations of objects" +HOMEPAGE="https://github.com/zopefoundation/zope.filerepresentation" +SRC_URI="https://github.com/zopefoundation/zope.filerepresentation/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${PN/-/\.}-${PV}" + +LICENSE="ZPL" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/zope-interface[${PYTHON_USEDEP}] + dev-python/zope-schema[${PYTHON_USEDEP}] + doc? ( + dev-python/repoze-sphinx-autointerface[${PYTHON_USEDEP}] + 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/filerepresentation" || die + distutils-r1_src_test +} -- cgit v1.2.3