summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-02-07 21:30:25 +0100
committerMichał Górny <mgorny@gentoo.org>2020-02-09 17:37:17 +0100
commitd82ad449acf5c8eac33c3d8d8637841c684e963e (patch)
treeae87973dcea95e6247e114ffa8ab58bea40bb585 /x11-misc/wbarconf/wbarconf-0.7.2.2-r5.ebuild
parentx11-misc/tintwizard: Switch to PYTHON_MULTI_USEDEP API (diff)
downloadgentoo-d82ad449acf5c8eac33c3d8d8637841c684e963e.tar.gz
gentoo-d82ad449acf5c8eac33c3d8d8637841c684e963e.tar.bz2
gentoo-d82ad449acf5c8eac33c3d8d8637841c684e963e.zip
x11-misc/wbarconf: Switch to PYTHON_MULTI_USEDEP API
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'x11-misc/wbarconf/wbarconf-0.7.2.2-r5.ebuild')
-rw-r--r--x11-misc/wbarconf/wbarconf-0.7.2.2-r5.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/x11-misc/wbarconf/wbarconf-0.7.2.2-r5.ebuild b/x11-misc/wbarconf/wbarconf-0.7.2.2-r5.ebuild
new file mode 100644
index 00000000000..91921185ba3
--- /dev/null
+++ b/x11-misc/wbarconf/wbarconf-0.7.2.2-r5.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1
+
+DESCRIPTION="Configuration GUI for x11-misc/wbar"
+HOMEPAGE="http://koti.kapsi.fi/ighea/wbarconf/"
+SRC_URI="http://koti.kapsi.fi/ighea/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="
+ sys-devel/gettext
+"
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=x11-misc/wbar-1.3.3
+ $(python_gen_cond_dep '
+ dev-python/pygobject:2[${PYTHON_MULTI_USEDEP}]
+ dev-python/pygtk:2[${PYTHON_MULTI_USEDEP}]
+ ')
+"
+PATCHES=(
+ "${FILESDIR}"/${P}-install.patch
+)
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+ python_fix_shebang wbarconf
+}
+
+src_install() {
+ ./install.sh "${ED}/usr" || die "./install.sh failed"
+ if [[ "${P}" != "${PF}" ]]; then
+ mv "${ED}"/usr/share/doc/{${P},${PF}} || die
+ fi
+}