blob: 92017b58746b0b04c31d6e41793c933870293132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..11} )
inherit gnome2 meson python-single-r1
DESCRIPTION="Python bindings for the Nautilus file manager"
HOMEPAGE="https://projects.gnome.org/nautilus-python/"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~ppc64"
IUSE="gtk-doc"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# Require pygobject:3 and USE=introspection on nautilus for sanity,
# because no (user) plugins could work without them; meson.build
# requires pygobject:3 and >=nautilus-43.0
RDEPEND="
$(python_gen_cond_dep '
dev-python/pygobject:3[${PYTHON_USEDEP}]
')
>=gnome-base/nautilus-43.0[introspection]
${PYTHON_DEPS}
"
DEPEND="${RDEPEND}"
BDEPEND="
gtk-doc? ( dev-util/gtk-doc )
>=dev-util/gtk-doc-am-1.14
virtual/pkgconfig
"
src_configure() {
local emesonargs=(
$(meson_feature gtk-doc docs)
)
meson_src_configure
}
src_install() {
meson_src_install
mv "${ED}/usr/share/doc/${PN}/"* "${ED}/usr/share/doc/${P}" || die
rm -d "${ED}/usr/share/doc/${PN}" || die
# Directory for systemwide extensions
keepdir /usr/share/nautilus-python/extensions
}
|