Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/udiskie/
Date: Wed, 14 Jul 2021 18:23:18
Message-Id: 1626286966.7810ae331275b752a2ac6f81153a5b87eaab0190.bkohler@gentoo
1 commit: 7810ae331275b752a2ac6f81153a5b87eaab0190
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 14 18:18:53 2021 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 14 18:22:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7810ae33
7
8 sys-fs/udiskie: enable tests, bump to EAPI=8
9
10 Closes: https://bugs.gentoo.org/802063
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
13
14 sys-fs/udiskie/udiskie-2.3.3-r1.ebuild | 50 ++++++++++++++++++++++++++++++++++
15 1 file changed, 50 insertions(+)
16
17 diff --git a/sys-fs/udiskie/udiskie-2.3.3-r1.ebuild b/sys-fs/udiskie/udiskie-2.3.3-r1.ebuild
18 new file mode 100644
19 index 00000000000..b03588a5d91
20 --- /dev/null
21 +++ b/sys-fs/udiskie/udiskie-2.3.3-r1.ebuild
22 @@ -0,0 +1,50 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +PYTHON_COMPAT=( python3_{7..10} )
28 +DISTUTILS_USE_SETUPTOOLS=rdepend
29 +inherit distutils-r1 xdg-utils
30 +
31 +DESCRIPTION="An automatic disk mounting service using udisks"
32 +HOMEPAGE="https://pypi.org/project/udiskie/ https://github.com/coldfix/udiskie"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~x86"
38 +IUSE=""
39 +
40 +RDEPEND="dev-python/docopt[${PYTHON_USEDEP}]
41 + dev-python/pygobject:3[${PYTHON_USEDEP}]
42 + dev-python/pyyaml[${PYTHON_USEDEP}]
43 + sys-fs/udisks:2"
44 +DEPEND="app-text/asciidoc
45 + dev-python/setuptools[${PYTHON_USEDEP}]"
46 +
47 +distutils_enable_tests pytest
48 +
49 +src_prepare() {
50 + sed -i -e 's:gtk-update-icon-cache:true:' setup.py || die
51 + default
52 +
53 + distutils-r1_src_prepare
54 +}
55 +
56 +src_compile() {
57 + distutils-r1_src_compile
58 + emake -C doc
59 +}
60 +
61 +src_install() {
62 + distutils-r1_src_install
63 + doman doc/${PN}.8
64 +}
65 +
66 +pkg_postinst() {
67 + xdg_icon_cache_update
68 +}
69 +
70 +pkg_postrm() {
71 + xdg_icon_cache_update
72 +}