virtual/python-cffi: Introduce a virtual for cffi package
authorMichał Górny <mgorny@gentoo.org>
Wed, 30 Nov 2016 15:10:01 +0000 (16:10 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 30 Nov 2016 18:05:30 +0000 (19:05 +0100)
virtual/python-cffi/metadata.xml [new file with mode: 0644]
virtual/python-cffi/python-cffi-0.ebuild [new file with mode: 0644]

diff --git a/virtual/python-cffi/metadata.xml b/virtual/python-cffi/metadata.xml
new file mode 100644 (file)
index 0000000..7f4f33c
--- /dev/null
@@ -0,0 +1,8 @@
+<?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>
+               <name>Python</name>
+       </maintainer>
+</pkgmetadata>
diff --git a/virtual/python-cffi/python-cffi-0.ebuild b/virtual/python-cffi/python-cffi-0.ebuild
new file mode 100644 (file)
index 0000000..d5af52c
--- /dev/null
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy{,3} )
+
+inherit python-r1
+
+DESCRIPTION="A virtual for the Python cffi package"
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# built-in in PyPy and PyPy3
+RDEPEND="${PYTHON_DEPS}
+       $(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*')"