gentoo/sys-fs/udiskie/udiskie-2.5.8.ebuild
Ben Kohler 6df224d845
sys-fs/udiskie: add 2.5.8
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
2025-08-28 11:18:17 -05:00

53 lines
1.1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..13} )
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="libnotify"
RDEPEND="dev-python/docopt[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
sys-fs/udisks:2[daemon]
libnotify? ( x11-libs/libnotify[introspection] )"
DEPEND="app-text/asciidoc
test? ( dev-python/keyutils[${PYTHON_USEDEP}]
dev-python/pyyaml[${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
}