diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-02-08 07:58:42 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-02-09 17:46:50 +0100 |
commit | 4f696c6bdc8770d5238f75a360d658cc912eb030 (patch) | |
tree | ae0ff345ba2cbdf15318ae913a48197d5216ea11 /sys-fs/traydevice/traydevice-1.6.2-r2.ebuild | |
parent | sci-misc/vitables: Switch to PYTHON_MULTI_USEDEP API (diff) | |
download | gentoo-4f696c6bdc8770d5238f75a360d658cc912eb030.tar.gz gentoo-4f696c6bdc8770d5238f75a360d658cc912eb030.tar.bz2 gentoo-4f696c6bdc8770d5238f75a360d658cc912eb030.zip |
sys-fs/traydevice: Switch to PYTHON_MULTI_USEDEP API
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-fs/traydevice/traydevice-1.6.2-r2.ebuild')
-rw-r--r-- | sys-fs/traydevice/traydevice-1.6.2-r2.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sys-fs/traydevice/traydevice-1.6.2-r2.ebuild b/sys-fs/traydevice/traydevice-1.6.2-r2.ebuild new file mode 100644 index 000000000000..43f07a7fa705 --- /dev/null +++ b/sys-fs/traydevice/traydevice-1.6.2-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python2_7 ) +inherit distutils-r1 + +DESCRIPTION="A little desktop application displaying systray icon for UDisks" +HOMEPAGE="https://savannah.nongnu.org/projects/traydevice/" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_MULTI_USEDEP}] + dev-python/lxml[${PYTHON_MULTI_USEDEP}] + dev-python/pyxdg[${PYTHON_MULTI_USEDEP}] + ') + sys-fs/udisks:2" +DEPEND="app-text/docbook2X" + +src_compile() { :; } + +python_install() { + distutils-r1_python_install \ + --prefix=/usr \ + --install-data=/usr/share/${PN} \ + --install-man=/usr/share/man \ + --docbook2man=docbook2man.pl +} + +python_install_all() { + distutils-r1_python_install_all + rm -f "${ED}"/usr/share/${PN}/doc/*.txt +} |