1 |
commit: be1ac05d8556bbe5ead47e8e852731ce65af88b5 |
2 |
Author: David Heidelberg <david <AT> ixit <DOT> cz> |
3 |
AuthorDate: Thu May 7 13:29:20 2020 +0000 |
4 |
Commit: David Heidelberg <david <AT> ixit <DOT> cz> |
5 |
CommitDate: Thu May 7 14:43:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=be1ac05d |
7 |
|
8 |
sys-apps/flatpak: New package. |
9 |
|
10 |
Need: |
11 |
- some extra polishing |
12 |
- re-introduce kde use-flag (& port KDE xdg portal) |
13 |
- other stuff, feel free to touch it directly without my consent |
14 |
|
15 |
I stole it (and slightly improved) from unlisted flatpak overlay, |
16 |
where author has no intention to even get listed in layman overlays. |
17 |
|
18 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
19 |
Signed-off-by: David Heidelberg <david <AT> ixit.cz> |
20 |
|
21 |
sys-apps/flatpak/Manifest | 1 + |
22 |
sys-apps/flatpak/flatpak-1.6.3.ebuild | 85 +++++++++++++++++++++++++++++++++++ |
23 |
sys-apps/flatpak/metadata.xml | 8 ++++ |
24 |
3 files changed, 94 insertions(+) |
25 |
|
26 |
diff --git a/sys-apps/flatpak/Manifest b/sys-apps/flatpak/Manifest |
27 |
new file mode 100644 |
28 |
index 0000000..dd04d79 |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/flatpak/Manifest |
31 |
@@ -0,0 +1 @@ |
32 |
+DIST flatpak-1.6.3.tar.xz 1340936 BLAKE2B ed697161a6ea10de7910438ef19d3a27d6bc4fc6b4ab8d14a955fb0ba6299950d13b25bf356b9b3341395441d378c0d0f3000dc0dd983a922090372d8e67a30d SHA512 8527914dd728d6bc4d28fcc7740514a370aad7c49c65e6126cdc237886dc3a5cb173a7fa69d8374a7502e08b1429b69bf24ee700a7d723fc090f9661534ca7b4 |
33 |
|
34 |
diff --git a/sys-apps/flatpak/flatpak-1.6.3.ebuild b/sys-apps/flatpak/flatpak-1.6.3.ebuild |
35 |
new file mode 100644 |
36 |
index 0000000..e82a738 |
37 |
--- /dev/null |
38 |
+++ b/sys-apps/flatpak/flatpak-1.6.3.ebuild |
39 |
@@ -0,0 +1,85 @@ |
40 |
+# Copyright 1999-2020 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=7 |
44 |
+ |
45 |
+inherit autotools linux-info |
46 |
+ |
47 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz" |
48 |
+DESCRIPTION="Application distribution framework" |
49 |
+HOMEPAGE="http://flatpak.org/" |
50 |
+ |
51 |
+LICENSE="LGPL-2.1" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64" |
54 |
+IUSE="doc gnome gtk introspection policykit seccomp" |
55 |
+ |
56 |
+# FIXME: systemd is automagic dep. |
57 |
+RDEPEND=" |
58 |
+ acct-group/flatpak |
59 |
+ acct-user/flatpak |
60 |
+ >=dev-util/ostree-2019.5[gpg(+)] |
61 |
+ || ( dev-util/ostree[curl] |
62 |
+ dev-util/ostree[soup] ) |
63 |
+ >=net-libs/libsoup-2.4 |
64 |
+ >=gnome-base/dconf-0.26 |
65 |
+ >=dev-libs/appstream-glib-0.5.10 |
66 |
+ x11-libs/gdk-pixbuf:2 |
67 |
+ >=dev-libs/glib-2.56:2 |
68 |
+ >=dev-libs/libxml2-2.4 |
69 |
+ sys-apps/dbus |
70 |
+ dev-libs/json-glib |
71 |
+ x11-apps/xauth |
72 |
+ >=app-arch/libarchive-2.8 |
73 |
+ >=app-crypt/gpgme-1.1.8 |
74 |
+ >=sys-fs/fuse-2.9.9:0 |
75 |
+ policykit? ( >=sys-auth/polkit-0.98 ) |
76 |
+ seccomp? ( sys-libs/libseccomp ) |
77 |
+" |
78 |
+DEPEND="${RDEPEND} |
79 |
+ >=sys-devel/gettext-0.18.2 |
80 |
+ dev-util/gdbus-codegen |
81 |
+ introspection? ( >=dev-libs/gobject-introspection-1.40 ) |
82 |
+ doc? ( >=dev-util/gtk-doc-1.20 |
83 |
+ dev-libs/libxslt ) |
84 |
+" |
85 |
+ |
86 |
+BDEPEND=" |
87 |
+ >=sys-devel/automake-1.13.4 |
88 |
+ sys-devel/bison |
89 |
+ virtual/pkgconfig |
90 |
+" |
91 |
+# FIXME: is there a nicer way to do this? |
92 |
+PDEPEND=" |
93 |
+ gtk? ( >=sys-apps/xdg-desktop-portal-0.10 |
94 |
+ sys-apps/xdg-desktop-portal-gtk ) |
95 |
+ gnome? ( >=sys-apps/xdg-desktop-portal-0.10 |
96 |
+ sys-apps/xdg-desktop-portal-gtk ) |
97 |
+" |
98 |
+ |
99 |
+pkg_setup() { |
100 |
+ local CONFIG_CHECK="~USER_NS" |
101 |
+ linux-info_pkg_setup |
102 |
+} |
103 |
+ |
104 |
+src_configure() { |
105 |
+ # FIXME: the gtk-doc check doesn't seem to be working |
106 |
+ # TODO: split out bubblewrap |
107 |
+ # TODO: split out xdg-dbus-proxy? |
108 |
+ # TODO: We do not provide libmalcontent yet. |
109 |
+ local myeconfargs=( |
110 |
+ --enable-sandboxed-triggers \ |
111 |
+ --enable-xauth \ |
112 |
+ --localstatedir="${EPREFIX}"/var \ |
113 |
+ --without-system-bubblewrap \ |
114 |
+ --without-system-dbus-proxy \ |
115 |
+ $(use_enable doc documentation) \ |
116 |
+ $(use_enable doc gtk-doc) \ |
117 |
+ $(use_enable introspection) \ |
118 |
+ $(use_enable policykit system-helper) \ |
119 |
+ $(use_enable seccomp) |
120 |
+ ) |
121 |
+ |
122 |
+ econf "${myeconfargs[@]}" |
123 |
+ |
124 |
+} |
125 |
|
126 |
diff --git a/sys-apps/flatpak/metadata.xml b/sys-apps/flatpak/metadata.xml |
127 |
new file mode 100644 |
128 |
index 0000000..775bda7 |
129 |
--- /dev/null |
130 |
+++ b/sys-apps/flatpak/metadata.xml |
131 |
@@ -0,0 +1,8 @@ |
132 |
+<?xml version="1.0" encoding="UTF-8"?> |
133 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
134 |
+<pkgmetadata> |
135 |
+ <maintainer type="person"> |
136 |
+ <email>david@××××.cz</email> |
137 |
+ <name>David Heidelberg</name> |
138 |
+ </maintainer> |
139 |
+</pkgmetadata> |