summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2018-06-06 22:39:44 +0200
committerMichał Górny <mgorny@gentoo.org>2018-06-08 14:03:51 +0200
commit9d57c8db7030ec5cc95a400baa6a55055a4835a0 (patch)
tree13e8ea7a165410f1d1229551081f8307e880ec4f /dev-python/namespace-jaraco
parentx11-libs/libXaw: restore s390 keyword (diff)
downloadgentoo-9d57c8db7030ec5cc95a400baa6a55055a4835a0.tar.gz
gentoo-9d57c8db7030ec5cc95a400baa6a55055a4835a0.tar.bz2
gentoo-9d57c8db7030ec5cc95a400baa6a55055a4835a0.zip
dev-python/namespace-jaraco: new namespace package
Package-Manager: Portage-2.3.38, Repoman-2.3.9
Diffstat (limited to 'dev-python/namespace-jaraco')
-rw-r--r--dev-python/namespace-jaraco/metadata.xml16
-rw-r--r--dev-python/namespace-jaraco/namespace-jaraco-1.ebuild37
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/namespace-jaraco/metadata.xml b/dev-python/namespace-jaraco/metadata.xml
new file mode 100644
index 000000000000..f3390d9bc05c
--- /dev/null
+++ b/dev-python/namespace-jaraco/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sautier.louis@gmail.com</email>
+ <name>Louis Sautier</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/namespace-jaraco/namespace-jaraco-1.ebuild b/dev-python/namespace-jaraco/namespace-jaraco-1.ebuild
new file mode 100644
index 000000000000..438cd5a499b9
--- /dev/null
+++ b/dev-python/namespace-jaraco/namespace-jaraco-1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6}} )
+inherit python-r1
+
+DESCRIPTION="Namespace package declaration for jaraco"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages"
+SRC_URI=""
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~amd64-fbsd ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ !<dev-python/jaraco-logging-1.5.2
+ !<dev-python/jaraco-packaging-5.1
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+"
+DEPEND="${PYTHON_DEPS}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_unpack() {
+ mkdir -p "${S}"/jaraco || die
+ cat > "${S}"/jaraco/__init__.py <<-EOF || die
+ __import__('pkg_resources').declare_namespace(__name__)
+ EOF
+}
+
+src_install() {
+ python_foreach_impl python_domodule jaraco
+}