diff options
author | 2023-12-22 22:36:05 +0100 | |
---|---|---|
committer | 2023-12-22 20:45:12 -0800 | |
commit | b1e9fd41d35880e69155ae77784089e71a79359a (patch) | |
tree | 73fdc941d5fd9048f6a42d77ee9058bb6155d383 /sys-apps | |
parent | profiles/arch/mips: mask dev-lang/rust[lto] (diff) | |
download | gentoo-b1e9fd41d35880e69155ae77784089e71a79359a.tar.gz gentoo-b1e9fd41d35880e69155ae77784089e71a79359a.tar.bz2 gentoo-b1e9fd41d35880e69155ae77784089e71a79359a.zip |
sys-apps/flatpak: add 1.14.5, python3_12
Closes: https://bugs.gentoo.org/920319
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/34431
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/flatpak/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/flatpak/flatpak-1.14.5.ebuild | 120 |
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-apps/flatpak/Manifest b/sys-apps/flatpak/Manifest index e1398473899f..56ef409d4835 100644 --- a/sys-apps/flatpak/Manifest +++ b/sys-apps/flatpak/Manifest @@ -1,2 +1,3 @@ DIST flatpak-1.12.8.tar.xz 1568984 BLAKE2B 6db457eba6b5c03ae4b7037e55f0537821152a80cad8746939fe93008922a9a33ff9f08635613e56a84f2d151826130c497c1e9f7f1e41a5b2dc215882f2eb14 SHA512 5a37d94e12c18a746b222c1ddbd20bddfb22079af1d3a79dc819cdb25f04774c9e4b3a51f9b5ed64f210317e7ec9fb97324ae38ec3430c6a515ba4042805fc57 DIST flatpak-1.14.4.tar.xz 1637484 BLAKE2B cf208c581ad76d46489ba473d290c35907da0d1d473bf2b4792fb56c31e7110cd38f1c6fc4ad04aa3675868d17116ba52a84b028d7b7789c1736cfe26f3cabfe SHA512 3f97096affd4f1de184ded353f1ab403d9f1813b199b9a1595596cc7c5d6b46062aa2ef184255823f50ae95ca60d0542d9b9e520f9a605f9bc51091863bf89b0 +DIST flatpak-1.14.5.tar.xz 1637692 BLAKE2B 180dc094ef3feef1ccefceb562836f55f6e875016588a5984435ea3157498a8746305c16aa2c83044c107fd7f0e8f6c034c326b4ae29ade1c657e82cff353d47 SHA512 552deaaf3e6712a56f33698c20e6b8225c8893fe9a375af897fd99e19c487bf79b19c3e4ce3b00f3caf90020019ff67c628ca6a8f2ae1e6e01db397d2081ab2b diff --git a/sys-apps/flatpak/flatpak-1.14.5.ebuild b/sys-apps/flatpak/flatpak-1.14.5.ebuild new file mode 100644 index 000000000000..528b56bf57ed --- /dev/null +++ b/sys-apps/flatpak/flatpak-1.14.5.ebuild @@ -0,0 +1,120 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{10..12} ) + +inherit linux-info python-any-r1 systemd tmpfiles + +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz" +DESCRIPTION="Linux application sandboxing and distribution framework" +HOMEPAGE="https://flatpak.org/" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="doc introspection policykit seccomp systemd X" +RESTRICT="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:= + >=sys-apps/bubblewrap-0.5.0 + sys-apps/dbus + >=sys-fs/fuse-3.1.1:3= + sys-apps/xdg-dbus-proxy + X? ( + x11-apps/xauth + x11-libs/libXau:= + ) + x11-libs/gdk-pixbuf:2= + policykit? ( >=sys-auth/polkit-0.98:= ) + seccomp? ( sys-libs/libseccomp:= ) + systemd? ( sys-apps/systemd:= ) +" + +DEPEND="${RDEPEND}" +BDEPEND=" + >=sys-devel/automake-1.13.4 + >=sys-devel/gettext-0.18.2 + virtual/pkgconfig + dev-util/gdbus-codegen + sys-devel/bison + $(python_gen_any_dep 'dev-python/pyparsing[${PYTHON_USEDEP}]') + introspection? ( >=dev-libs/gobject-introspection-1.40 ) + doc? ( + app-text/xmlto + dev-libs/libxslt + ) +" + +PDEPEND="sys-apps/xdg-desktop-portal" + +PATCHES=( + "${FILESDIR}"/${PN}-1.14.4-fuse-3-slotted.patch +) + +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 myeconfargs=( + --enable-sandboxed-triggers + --localstatedir="${EPREFIX}"/var + --with-system-bubblewrap + --with-system-dbus-proxy + --with-tmpfilesdir="/usr/lib/tmpfiles.d" + $(use_enable X xauth) + $(use_enable doc documentation) + $(use_enable doc docbook-docs) + $(use_enable introspection) + $(use_enable policykit system-helper) + $(use_enable seccomp) + $(use_with systemd) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + # 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 +} |