mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
@@ -1,2 +1,3 @@
|
||||
DIST flatpak-1.14.10.tar.xz 1647100 BLAKE2B 7a2f8f86c7f9f509e5ea0d45b3171b3fc74d190c1f99d466d31bc032ba2671cc9ecb0b72a3d7993c350a79b9f36bfb76eac39638e165a887214849e0aa8a1858 SHA512 512c8545aea310aa14450f45704a57cd6fbf1d53e9497f210335e4767ac5d8b2030af17f2ee055b33d287ee5c8b761f0cc9c5f10361faab43c2422da2b354a3d
|
||||
DIST flatpak-1.16.0.tar.xz 1186900 BLAKE2B 807144886340edd862d3758664fda60e8a8146e5230b2758bcc7fa65940e9f358a354e9fb0ffdb9bb3049d6c6c2d3ba2924fc249bf94e8f989fc8b784048fbb1 SHA512 57a8b660193ef1f9724718533963d854fa8bb0eb823470261f3f0a685f8ddbd209d6a1ae8378411c131e9c298cba605863d394f43c8d9eccda608001aadbb68d
|
||||
DIST flatpak-1.16.1.tar.xz 1225384 BLAKE2B 55ed154a7e97ae5cd3e7fce425f7cb0b96b28fed756f02235cbd66e6c639c944e6d7fd1f75fd9cb5b310d8049acc4a3fe66e047d0a220451eece0bdbc0b164e0 SHA512 a6d4813984869c4f3b07283b7abcfc45bf9b35878b087f9d2185363fdd87e6164ee11607a62fdb6beb72be6a9fd624e54f6d3d1a2db43d1d2c8337ab73945df0
|
||||
|
||||
124
sys-apps/flatpak/flatpak-1.16.1.ebuild
Normal file
124
sys-apps/flatpak/flatpak-1.16.1.ebuild
Normal file
@@ -0,0 +1,124 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit linux-info meson python-any-r1 systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Linux application sandboxing and distribution framework"
|
||||
HOMEPAGE="https://flatpak.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
||||
IUSE="doc introspection policykit seccomp systemd test X"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/flatpak
|
||||
acct-user/flatpak
|
||||
>=app-arch/libarchive-2.8:=
|
||||
app-arch/zstd:=
|
||||
>=app-crypt/gpgme-1.1.8:=
|
||||
>=dev-libs/appstream-0.12:=
|
||||
>=dev-libs/appstream-glib-0.5.10:=
|
||||
>=dev-libs/glib-2.56:2=
|
||||
>=dev-libs/libxml2-2.4:=
|
||||
dev-libs/json-glib:=
|
||||
dev-libs/libassuan:=
|
||||
>=dev-util/ostree-2020.8:=[gpg(+)]
|
||||
dev-util/ostree[curl]
|
||||
>=gnome-base/dconf-0.26:=
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
net-misc/curl:=
|
||||
net-misc/socat
|
||||
>=sys-apps/bubblewrap-0.10.0
|
||||
sys-apps/dbus
|
||||
>=sys-fs/fuse-3.1.1:3=
|
||||
sys-apps/xdg-dbus-proxy
|
||||
policykit? ( sys-auth/polkit )
|
||||
X? (
|
||||
x11-apps/xauth
|
||||
x11-libs/libXau:=
|
||||
)
|
||||
x11-libs/gdk-pixbuf:2=
|
||||
seccomp? ( sys-libs/libseccomp:= )
|
||||
systemd? ( sys-apps/systemd:= )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
>=dev-build/automake-1.13.4
|
||||
>=sys-devel/gettext-0.18.2
|
||||
virtual/pkgconfig
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/glib-utils
|
||||
dev-util/gtk-doc
|
||||
app-alternatives/yacc
|
||||
$(python_gen_any_dep 'dev-python/pyparsing[${PYTHON_USEDEP}]')
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.40 )
|
||||
doc? (
|
||||
app-text/xmlto
|
||||
dev-libs/libxslt
|
||||
)
|
||||
test? (
|
||||
net-misc/socat
|
||||
sys-auth/polkit
|
||||
)
|
||||
"
|
||||
|
||||
PDEPEND="sys-apps/xdg-desktop-portal"
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version "dev-python/pyparsing[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
local CONFIG_CHECK="~USER_NS"
|
||||
linux-info_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# This line fails because locales are in /usr/lib/locale/locale-archive.
|
||||
sed -i 's:^cp -r /usr/lib/locale/C.*:#\0:' tests/make-test-runtime.sh || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
--localstatedir="${EPREFIX}"/var
|
||||
-Ddbus_config_dir=/usr/share/dbus-1/system.d
|
||||
-Dsystem_bubblewrap=bwrap
|
||||
-Dsystem_dbus_proxy=xdg-dbus-proxy
|
||||
-Dtmpfilesdir=/usr/lib/tmpfiles.d
|
||||
$(meson_use policykit tests)
|
||||
$(meson_use test tests)
|
||||
$(meson_feature policykit system_helper)
|
||||
$(meson_feature introspection gir)
|
||||
$(meson_feature X xauth)
|
||||
$(meson_feature doc docbook_docs)
|
||||
$(meson_feature seccomp seccomp)
|
||||
$(meson_feature systemd systemd)
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
# https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
# resolve conflict with acct-user/flatpak for #856706
|
||||
rm -rf "${ED}/usr/lib/sysusers.d"
|
||||
|
||||
if use systemd; then
|
||||
systemd_dounit "${FILESDIR}"/flatpak-update.{service,timer}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process flatpak.conf
|
||||
}
|
||||
Reference in New Issue
Block a user