[gitg] flatpak: Add flatpak manifest



commit 7db899fb9c0e5f4f0eeaeca81253cc68ba1639bd
Author: albfan <albertofanjul gmail com>
Date:   Thu Apr 19 03:32:44 2018 +0200

    flatpak: Add flatpak manifest

 fix-libgit2-glib-pc.patch |  18 ++++++
 org.gnome.Gitg.json       | 162 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 180 insertions(+)
---
diff --git a/fix-libgit2-glib-pc.patch b/fix-libgit2-glib-pc.patch
new file mode 100644
index 00000000..413502d7
--- /dev/null
+++ b/fix-libgit2-glib-pc.patch
@@ -0,0 +1,18 @@
+From: Roy Buitenhuis <roy buitenhuis94 gmail com>
+Subject: [PATCH] package-config generation bug, wrong format used in meson.build
+
+https://bugzilla.gnome.org/show_bug.cgi?id=795730
+
+diff --git a/libgit2-glib/meson.build b/libgit2-glib/meson.build
+index bab4f61..62a7eba 100644
+--- a/libgit2-glib/meson.build
++++ b/libgit2-glib/meson.build
+@@ -220,7 +220,7 @@ pkg.generate(
+   description: 'libgit2-glib, a a glib wrapper library around the libgit2 git access library.',
+   filebase: libgit2_glib_api_name,
+   subdirs: libgit2_glib_api_name,
+-  requires: 'libgit2 >= @0@, glib-2.0 >= @1@, gobject-2.0 >= @1@, gio-2.0 >= @1@'.format(git2_req, 
glib_req),
++  requires: ['libgit2 >= ' + git2_req, 'glib-2.0 >= ' + glib_req, 'gobject-2.0 >= ' + glib_req, 'gio-2.0 >= 
' + glib_req],
+   variables: 'exec_prefix=${prefix}',
+   extra_cflags: extra_args
+ )
diff --git a/org.gnome.Gitg.json b/org.gnome.Gitg.json
new file mode 100644
index 00000000..e25b9aae
--- /dev/null
+++ b/org.gnome.Gitg.json
@@ -0,0 +1,162 @@
+{
+    "app-id" : "org.gnome.gitg",
+    "runtime" : "org.gnome.Platform",
+    "runtime-version" : "3.28",
+    "branch" : "master",
+    "sdk" : "org.gnome.Sdk",
+    "command" : "gitg",
+    "rename-desktop-file" : "gitg.desktop",
+    "rename-appdata-file" : "gitg.appdata.xml",
+    "rename-icon" : "gitg",
+    "copy-icon" : true,
+    "tags" : [
+    ],
+    "finish-args" : [
+        "--share=ipc",
+        "--share=network",
+        "--socket=x11",
+        "--socket=wayland",
+        "--filesystem=host",
+        "--filesystem=xdg-run/dconf",
+        "--filesystem=~/.config/dconf:ro",
+        "--talk-name=ca.desrt.dconf",
+        "--talk-name=org.gtk.vfs.*",
+        "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
+        "--talk-name=org.freedesktop.secrets",
+        "--filesystem=xdg-run/keyring"
+    ],
+    "build-options" : {
+        "cflags" : "-O2 -g",
+        "cxxflags" : "-O2 -g",
+        "env" : {
+            "V" : "1"
+        }
+    },
+    "cleanup" : [
+        "/include",
+        "/lib/pkgconfig",
+        "/share/pkgconfig",
+        "/share/aclocal",
+        "/man",
+        "/share/man",
+        "/share/gtk-doc",
+        "/share/vala",
+        "*.la",
+        "*.a"
+    ],
+    "modules" : [
+        {
+            "name" : "libssh2",
+            "buildsystem" : "cmake",
+            "config-opts" : [
+                "-DCMAKE_INSTALL_LIBDIR:PATH=/app/lib",
+                "-DBUILD_SHARED_LIBS:BOOL=ON"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://github.com/libssh2/libssh2.git";,
+                    "branch" : "libssh2-1.8.0"
+                }
+            ]
+        },
+        {
+            "name" : "libgit2",
+            "buildsystem" : "cmake",
+            "config-opts" : [
+                "-DBUILD_SHARED_LIBS:BOOL=ON",
+                "-DTHREADSAFE=ON"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://github.com/libgit2/libgit2.git";,
+                    "branch" : "maint/v0.26"
+                }
+            ]
+        },
+        {
+            "name" : "libgit2-glib",
+            "config-opts" : [
+                "--buildtype=debugoptimized"
+            ],
+            "buildsystem" : "meson",
+            "builddir" : true,
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/libgit2-glib";
+                },
+                {
+                    "type" : "patch",
+                    "path" : "fix-libgit2-glib-pc.patch"
+                }
+            ]
+        },
+        {
+            "name" : "libpeas",
+            "cleanup" : [
+                "/bin/*",
+                "/lib/peas-demo",
+                "/lib/libpeas-gtk*"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/libpeas.git";
+                }
+            ]
+        },
+        {
+            "name" : "libgee",
+            "build-options" : {
+                "make-install-args" : [
+                    "girdir=/app/share/gir-1.0",
+                    "typelibdir=/app/lib/girepository-1.0"
+                ]
+            },
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/libgee.git";
+                }
+            ]
+        },
+        {
+            "name" : "gtkspell3",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://sourceforge.net/projects/gtkspell/files/3.0.9/gtkspell3-3.0.9.tar.xz";,
+                    "sha256" : "a4f4a4a2789f7499563e26d96b22d8085222ebe278da47d026b2de782b8b4d26"
+                }
+            ]
+        },
+        {
+            "name" : "gtksourceview",
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/gtksourceview.git";,
+                    "tag" : "gnome-3-24"
+                }
+            ]
+        },
+        {
+            "name" : "gitg",
+            "buildsystem" : "meson",
+            "builddir" : true,
+            "config-opts" : [
+                "--buildtype=debugoptimized",
+                "-Ddeprecations=true"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/gitg";,
+                    "branch" : "master"
+                }
+            ]
+        }
+    ]
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]