summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2016-12-10 00:21:03 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2016-12-10 02:05:05 +0000
commitb5d8435a1be8b264bf4b209ca3425e5ac7bf34bf (patch)
tree0716b455c0468a1f714c11cb56173de4f8cce9fc /dev-python/QtPy
parentdev-python/rootpy: version bump (diff)
downloadgentoo-b5d8435a1be8b264bf4b209ca3425e5ac7bf34bf.tar.gz
gentoo-b5d8435a1be8b264bf4b209ca3425e5ac7bf34bf.tar.bz2
gentoo-b5d8435a1be8b264bf4b209ca3425e5ac7bf34bf.zip
dev-python/QtPy: initial import
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-python/QtPy')
-rw-r--r--dev-python/QtPy/Manifest1
-rw-r--r--dev-python/QtPy/QtPy-1.1.2.ebuild38
-rw-r--r--dev-python/QtPy/metadata.xml25
3 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/QtPy/Manifest b/dev-python/QtPy/Manifest
new file mode 100644
index 000000000000..2ed02ac56e71
--- /dev/null
+++ b/dev-python/QtPy/Manifest
@@ -0,0 +1 @@
+DIST QtPy-1.1.2.tar.gz 14390 SHA256 2abb462decc80fa4f0ba9ff18feaaab21a765d7d2d0808120f001f9a4c385946 SHA512 5f610e60ac6ed2f2b0eed59dd24537b34ccff8816afad059e056f47dd95d2dd49939ec6e0ebb816520a2ef075d8f9619903a4b2c79f18ed12e16eb60718e5c1d WHIRLPOOL 297112c79003b868aadbe404f70926bdbc0045c852b1f5f8d6000d0e7ce74c46a54667e7117787d1b5488e71a3120ef1553a3abb3d0f26f5416441c9314dac86
diff --git a/dev-python/QtPy/QtPy-1.1.2.ebuild b/dev-python/QtPy/QtPy-1.1.2.ebuild
new file mode 100644
index 000000000000..ae4e1e0cbe5a
--- /dev/null
+++ b/dev-python/QtPy/QtPy-1.1.2.ebuild
@@ -0,0 +1,38 @@
+# 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} )
+
+inherit distutils-r1
+
+DESCRIPTION="Abtraction layer for PyQt5/PyQt4/PySide"
+HOMEPAGE="https://github.com/spyder-ide/qtpy"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="designer gui svg testlib webkit"
+
+RDEPEND="
+ || (
+ dev-python/PyQt5[${PYTHON_USEDEP},designer=,svg=,webkit=]
+ dev-python/PyQt4[${PYTHON_USEDEP},designer=,svg=,webkit=]
+ dev-python/pyside[${PYTHON_USEDEP},designer=,svg=,webkit=]
+ )
+ gui? ( || (
+ dev-python/PyQt5[${PYTHON_USEDEP},gui]
+ dev-python/PyQt4[${PYTHON_USEDEP},X]
+ dev-python/pyside[${PYTHON_USEDEP},X]
+ ) )
+ testlib? ( || (
+ dev-python/PyQt5[${PYTHON_USEDEP},testlib]
+ dev-python/PyQt4[${PYTHON_USEDEP},testlib]
+ dev-python/pyside[${PYTHON_USEDEP},X]
+ ) )"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
diff --git a/dev-python/QtPy/metadata.xml b/dev-python/QtPy/metadata.xml
new file mode 100644
index 000000000000..1f974af52376
--- /dev/null
+++ b/dev-python/QtPy/metadata.xml
@@ -0,0 +1,25 @@
+<?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>Gentoo Python Project</name>
+ </maintainer>
+ <longdescription>
+ QtPy is a small abstraction layer that lets you write
+ applications using a single API call to either PyQt or
+ PySide. QtPy also provides a set of additional QWidgets. It
+ provides support for PyQt5, PyQt4 and PySide using the PyQt5
+ layout (where the QtGui module has been split into QtGui and
+ QtWidgets).
+ Basically, you write your code as if you were using PyQt5 but
+ import qt from QtPy instead of PyQt5.
+ </longdescription>
+ <use>
+ <flag name="designer">Build bindings for the QtDesigner module and enable the designer plugin</flag>
+ <flag name="gui">Build bindings for the QtGui module</flag>
+ <flag name="svg">Build bindings for the QtSvg module</flag>
+ <flag name="testlib">Build bindings for the QtTest module</flag>
+ <flag name="webkit">Build bindings for the QtWebKit module</flag>
+ </use>
+</pkgmetadata>