summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerenc Erki <erkiferenc@gmail.com>2021-02-08 21:31:59 +0100
committerAlexys Jacob <ultrabug@gentoo.org>2021-02-09 15:42:34 +0100
commit70fa81b2fab8226fe92c4137bbbe6cbe97b96c82 (patch)
treef823e5ff9f809541276f2a9e3b9a9cfb97d6a795 /x11-misc/py3status
parentdev-db/barman: add missing test deps (diff)
downloadgentoo-70fa81b2fab8226fe92c4137bbbe6cbe97b96c82.tar.gz
gentoo-70fa81b2fab8226fe92c4137bbbe6cbe97b96c82.tar.bz2
gentoo-70fa81b2fab8226fe92c4137bbbe6cbe97b96c82.zip
x11-misc/py3status: add minimal USE flag
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Ferenc Erki <erkiferenc@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/19378 Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
Diffstat (limited to 'x11-misc/py3status')
-rw-r--r--x11-misc/py3status/metadata.xml1
-rw-r--r--x11-misc/py3status/py3status-3.33-r1.ebuild30
2 files changed, 31 insertions, 0 deletions
diff --git a/x11-misc/py3status/metadata.xml b/x11-misc/py3status/metadata.xml
index 29c98f85e343..fe9e1147ee80 100644
--- a/x11-misc/py3status/metadata.xml
+++ b/x11-misc/py3status/metadata.xml
@@ -11,6 +11,7 @@
</upstream>
<use>
<flag name="gevent">Install extra requirement <pkg>dev-python/gevent</pkg> to enable green threads.</flag>
+ <flag name="minimal">Don't depend on <pkg>x11-misc/i3status</pkg> if you don't plan to use any of its built-in modules.</flag>
<flag name="udev">Install extra requirement <pkg>dev-python/pyudev</pkg> to enable udev events monitoring on modules.</flag>
</use>
</pkgmetadata>
diff --git a/x11-misc/py3status/py3status-3.33-r1.ebuild b/x11-misc/py3status/py3status-3.33-r1.ebuild
new file mode 100644
index 000000000000..a5c75fc841b1
--- /dev/null
+++ b/x11-misc/py3status/py3status-3.33-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{3_7,3_8} )
+
+SRC_URI="https://github.com/ultrabug/py3status/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+inherit distutils-r1
+
+MY_PN="py3status"
+MY_P="${MY_PN}-${PV/_/-}"
+
+DESCRIPTION="py3status is an extensible i3status wrapper written in python"
+HOMEPAGE="https://github.com/ultrabug/py3status"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gevent minimal +udev"
+
+RDEPEND="
+ !minimal? ( x11-misc/i3status )
+ gevent? ( >=dev-python/gevent-1.2.0[${PYTHON_USEDEP}] )
+ udev? ( >=dev-python/pyudev-0.21.0[${PYTHON_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/${MY_P}