diff options
author | Ben Kohler <bkohler@gentoo.org> | 2023-07-08 08:30:32 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2023-07-08 13:41:40 -0500 |
commit | 8945c5e00bb42869dd3ce0864296358395d35cfb (patch) | |
tree | e8581c922b31f479033a91a924ecbc06cb8943d2 /sys-fs/udiskie | |
parent | app-text/grip: update EAPI 7 -> 8, use PEP517 build (diff) | |
download | gentoo-8945c5e00bb42869dd3ce0864296358395d35cfb.tar.gz gentoo-8945c5e00bb42869dd3ce0864296358395d35cfb.tar.bz2 gentoo-8945c5e00bb42869dd3ce0864296358395d35cfb.zip |
sys-fs/udiskie: use PEP517 build, fix warning for missing docs
Closes: https://bugs.gentoo.org/910038
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'sys-fs/udiskie')
-rw-r--r-- | sys-fs/udiskie/udiskie-2.4.2-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sys-fs/udiskie/udiskie-2.4.2-r1.ebuild b/sys-fs/udiskie/udiskie-2.4.2-r1.ebuild new file mode 100644 index 000000000000..3cbcb7c7ed2b --- /dev/null +++ b/sys-fs/udiskie/udiskie-2.4.2-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 pypi xdg-utils + +DESCRIPTION="An automatic disk mounting service using udisks" +HOMEPAGE="https://pypi.org/project/udiskie/ https://github.com/coldfix/udiskie" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND="dev-python/docopt[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + sys-fs/udisks:2" +DEPEND="app-text/asciidoc + test? ( dev-python/keyutils[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e 's:gtk-update-icon-cache:true:' setup.py || die + sed -i -e 's: HACKING.rst, TRANSLATIONS.rst,::' setup.cfg || die + default + + distutils-r1_src_prepare +} + +src_compile() { + distutils-r1_src_compile + emake -C doc +} + +src_install() { + distutils-r1_src_install + doman doc/${PN}.8 +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} |