4 |
4 |
EAPI=8
|
5 |
5 |
PYTHON_COMPAT=( python3_{9,10,11} )
|
6 |
6 |
|
7 |
|
inherit linux-info python-any-r1
|
|
7 |
inherit linux-info python-any-r1 systemd
|
8 |
8 |
|
9 |
9 |
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz"
|
10 |
10 |
DESCRIPTION="Linux application sandboxing and distribution framework"
|
... | ... | |
12 |
12 |
|
13 |
13 |
LICENSE="LGPL-2.1+"
|
14 |
14 |
SLOT="0"
|
15 |
|
KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86"
|
|
15 |
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
|
16 |
16 |
IUSE="doc introspection policykit seccomp systemd X"
|
17 |
17 |
RESTRICT="test"
|
18 |
18 |
|
... | ... | |
22 |
22 |
>=app-arch/libarchive-2.8:=
|
23 |
23 |
app-arch/zstd:=
|
24 |
24 |
>=app-crypt/gpgme-1.1.8:=
|
|
25 |
>=dev-libs/appstream-0.12:=
|
25 |
26 |
>=dev-libs/appstream-glib-0.5.10:=
|
26 |
27 |
>=dev-libs/glib-2.56:2=
|
27 |
28 |
>=dev-libs/libxml2-2.4:=
|
28 |
29 |
dev-libs/json-glib:=
|
29 |
30 |
dev-libs/libassuan:=
|
30 |
31 |
>=dev-util/ostree-2020.8:=[gpg(+)]
|
31 |
|
|| (
|
32 |
|
dev-util/ostree[curl]
|
33 |
|
dev-util/ostree[soup]
|
34 |
|
)
|
|
32 |
dev-util/ostree[curl]
|
35 |
33 |
>=gnome-base/dconf-0.26:=
|
36 |
34 |
gnome-base/gsettings-desktop-schemas
|
37 |
|
>=net-libs/libsoup-2.4:2.4=
|
|
35 |
net-misc/curl:=
|
38 |
36 |
>=sys-apps/bubblewrap-0.5.0
|
39 |
37 |
sys-apps/dbus
|
40 |
|
>=sys-fs/fuse-2.9.9:0=
|
|
38 |
>=sys-fs/fuse-3.1.1:3=
|
41 |
39 |
sys-apps/xdg-dbus-proxy
|
42 |
40 |
X? (
|
43 |
41 |
x11-apps/xauth
|
... | ... | |
50 |
48 |
"
|
51 |
49 |
|
52 |
50 |
DEPEND="${RDEPEND}"
|
53 |
|
# pyparsing version pinned for https://bugs.gentoo.org/825230
|
54 |
51 |
BDEPEND="
|
55 |
52 |
>=sys-devel/automake-1.13.4
|
56 |
53 |
>=sys-devel/gettext-0.18.2
|
57 |
54 |
virtual/pkgconfig
|
58 |
55 |
dev-util/gdbus-codegen
|
59 |
56 |
sys-devel/bison
|
|
57 |
$(python_gen_any_dep 'dev-python/pyparsing[${PYTHON_USEDEP}]')
|
60 |
58 |
introspection? ( >=dev-libs/gobject-introspection-1.40 )
|
61 |
59 |
doc? (
|
62 |
|
>=dev-util/gtk-doc-1.20
|
|
60 |
app-text/xmlto
|
63 |
61 |
dev-libs/libxslt
|
64 |
62 |
)
|
65 |
|
$(python_gen_any_dep 'dev-python/pyparsing[${PYTHON_USEDEP}]')
|
66 |
63 |
"
|
67 |
64 |
|
68 |
65 |
PDEPEND="sys-apps/xdg-desktop-portal"
|
69 |
66 |
|
|
67 |
PATCHES=(
|
|
68 |
"${FILESDIR}"/${PN}-1.14.4-fuse-3-slotted.patch
|
|
69 |
)
|
|
70 |
|
70 |
71 |
python_check_deps() {
|
71 |
|
has_version -b "dev-python/pyparsing[${PYTHON_USEDEP}]"
|
|
72 |
python_has_version "dev-python/pyparsing[${PYTHON_USEDEP}]"
|
72 |
73 |
}
|
73 |
74 |
|
74 |
75 |
pkg_setup() {
|
... | ... | |
91 |
92 |
--with-system-dbus-proxy
|
92 |
93 |
$(use_enable X xauth)
|
93 |
94 |
$(use_enable doc documentation)
|
94 |
|
$(use_enable doc gtk-doc)
|
|
95 |
$(use_enable doc docbook-docs)
|
95 |
96 |
$(use_enable introspection)
|
96 |
97 |
$(use_enable policykit system-helper)
|
97 |
98 |
$(use_enable seccomp)
|
... | ... | |
103 |
104 |
|
104 |
105 |
src_install() {
|
105 |
106 |
default
|
|
107 |
# https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303
|
|
108 |
find "${ED}" -name '*.la' -delete || die
|
106 |
109 |
# resolve conflict with acct-user/flatpak for #856706
|
107 |
110 |
rm -rf "${ED}/usr/lib/sysusers.d"
|
|
111 |
|
|
112 |
if use systemd; then
|
|
113 |
systemd_dounit "${FILESDIR}"/flatpak-update.{service,timer}
|
|
114 |
fi
|
108 |
115 |
}
|