diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-03-10 12:26:39 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-03-10 12:34:02 +0000 |
commit | ad5af478e9ceaac49cee6a0d9f1d3075808da83f (patch) | |
tree | b57df1dfe58841b0bf1f744aefb82e799c4cfe85 /dev-python/namespace-ruamel | |
parent | sci-mathematics/octave: new upstream version 6.2.0. (diff) | |
download | gentoo-ad5af478e9ceaac49cee6a0d9f1d3075808da83f.tar.gz gentoo-ad5af478e9ceaac49cee6a0d9f1d3075808da83f.tar.bz2 gentoo-ad5af478e9ceaac49cee6a0d9f1d3075808da83f.zip |
dev-python/namespace-ruamel: new namespace package
Needed for dev-python/ruamel-std-pathlib to be actually usable.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python/namespace-ruamel')
-rw-r--r-- | dev-python/namespace-ruamel/metadata.xml | 7 | ||||
-rw-r--r-- | dev-python/namespace-ruamel/namespace-ruamel-1.ebuild | 34 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/namespace-ruamel/metadata.xml b/dev-python/namespace-ruamel/metadata.xml new file mode 100644 index 000000000000..266e3f19ca59 --- /dev/null +++ b/dev-python/namespace-ruamel/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-python/namespace-ruamel/namespace-ruamel-1.ebuild b/dev-python/namespace-ruamel/namespace-ruamel-1.ebuild new file mode 100644 index 000000000000..2eb907705dcf --- /dev/null +++ b/dev-python/namespace-ruamel/namespace-ruamel-1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{7..9} ) + +inherit python-r1 + +DESCRIPTION="Namespace package declaration for ruamel" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages" +SRC_URI="" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + ${PYTHON_DEPS}" +DEPEND="${PYTHON_DEPS}" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_unpack() { + mkdir -p "${S}"/ruamel || die + cat > "${S}"/ruamel/__init__.py <<-EOF || die + __import__('pkg_resources').declare_namespace(__name__) + EOF +} + +src_install() { + python_foreach_impl python_domodule ruamel +} |