summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-02-09 16:52:21 +0100
committerJoonas Niilola <juippis@gentoo.org>2021-03-11 09:17:24 +0200
commit4416b7fb16e03aa5ba2039b8fa6bf5a6c1df1a4c (patch)
tree10cd8d9cbe646facc3045db438604a3993e0cdb4 /app-eselect
parentdev-python/lunr: remove old (diff)
downloadgentoo-4416b7fb16e03aa5ba2039b8fa6bf5a6c1df1a4c.tar.gz
gentoo-4416b7fb16e03aa5ba2039b8fa6bf5a6c1df1a4c.tar.bz2
gentoo-4416b7fb16e03aa5ba2039b8fa6bf5a6c1df1a4c.zip
app-eselect/eselect-QtPy: add eselect module for QtPy
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-eselect')
-rw-r--r--app-eselect/eselect-QtPy/eselect-QtPy-1.0.ebuild25
-rw-r--r--app-eselect/eselect-QtPy/files/qtpy.eselect-1.011
-rw-r--r--app-eselect/eselect-QtPy/metadata.xml16
3 files changed, 52 insertions, 0 deletions
diff --git a/app-eselect/eselect-QtPy/eselect-QtPy-1.0.ebuild b/app-eselect/eselect-QtPy/eselect-QtPy-1.0.ebuild
new file mode 100644
index 00000000000..5987bee82fb
--- /dev/null
+++ b/app-eselect/eselect-QtPy/eselect-QtPy-1.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Manage Qt for Python implementations"
+HOMEPAGE="https://github.com/spyder-ide/qtpy"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="app-admin/eselect"
+
+S="${FILESDIR}"
+
+src_install() {
+ insinto "/usr/share/eselect/modules"
+ newins "qtpy.eselect-${PV}" "qtpy.eselect"
+}
+
+pkg_postinst() {
+ eselect qtpy update
+}
diff --git a/app-eselect/eselect-QtPy/files/qtpy.eselect-1.0 b/app-eselect/eselect-QtPy/files/qtpy.eselect-1.0
new file mode 100644
index 00000000000..108ce47fcb1
--- /dev/null
+++ b/app-eselect/eselect-QtPy/files/qtpy.eselect-1.0
@@ -0,0 +1,11 @@
+# Copyright 2009-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EDITOR_VAR="QT_API"
+EDITOR_ENVFILE="/etc/env.d/99qtpy"
+EDITOR_LIST="pyqt5:/usr/bin/pyrcc5 pyside2:/usr/include/PySide2/QtCore/pyside2_qtcore_python.h"
+
+inherit editor-variable
+
+DESCRIPTION="Manage the ${EDITOR_VAR} environment variable"
+MAINTAINER="andrewammerlaan@riseup.net"
diff --git a/app-eselect/eselect-QtPy/metadata.xml b/app-eselect/eselect-QtPy/metadata.xml
new file mode 100644
index 00000000000..45a3712d3dc
--- /dev/null
+++ b/app-eselect/eselect-QtPy/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="project">
+ <email>python@gentoo.org</email>
+ <name>Gentoo Python Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>andrewammerlaan@riseup.net</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>