[gedit] build-aux/flatpak: generate JSON manifest from YAML manifest
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] build-aux/flatpak: generate JSON manifest from YAML manifest
- Date: Mon, 1 Aug 2022 14:42:19 +0000 (UTC)
commit 881a7996f6d7a4b239e92b028aed17cdec95b0b7
Author: Jake Dane <3689-jakedane users noreply gitlab gnome org>
Date: Mon Aug 1 14:02:21 2022 +0000
build-aux/flatpak: generate JSON manifest from YAML manifest
build-aux/flatpak/generate-manifest.sh | 29 +++++++++
build-aux/flatpak/org.gnome.gedit.json | 112 +++++++++++++++++++++++++++++++++
build-aux/flatpak/org.gnome.gedit.yml | 2 +
3 files changed, 143 insertions(+)
---
diff --git a/build-aux/flatpak/generate-manifest.sh b/build-aux/flatpak/generate-manifest.sh
new file mode 100644
index 000000000..db8b341e6
--- /dev/null
+++ b/build-aux/flatpak/generate-manifest.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# generate-manifest.sh: Generate JSON manifest from YAML manifest.
+#
+# SPDX-FileCopyrightText: Copyright 2022 Jake Dane
+# SPDX-License-Identifier: GPL-3.0-or-later
+set -e
+
+YAML_FILE='org.gnome.gedit.yml'
+JSON_FILE='org.gnome.gedit.json'
+
+if ! type yq &>/dev/null; then
+ echo "command 'yq' not found" 1>&2
+ exit 1
+fi
+
+if [ ! -e "$YAML_FILE" ]; then
+ echo "'$YAML_FILE' manifest not found" 1>&2
+ exit 1
+fi
+
+temp_file=`mktemp`
+yq '.' "$YAML_FILE" > "$temp_file"
+if ! diff -q "$temp_file" "$JSON_FILE" &>/dev/null; then
+ mv -f "$temp_file" "$JSON_FILE"
+ echo "generated '$JSON_FILE' manifest"
+else
+ rm -f "$temp_file"
+ echo "nothing to do"
+fi
diff --git a/build-aux/flatpak/org.gnome.gedit.json b/build-aux/flatpak/org.gnome.gedit.json
new file mode 100644
index 000000000..9cb850bcb
--- /dev/null
+++ b/build-aux/flatpak/org.gnome.gedit.json
@@ -0,0 +1,112 @@
+{
+ "app-id": "org.gnome.gedit",
+ "runtime": "org.gnome.Platform",
+ "runtime-version": "master",
+ "sdk": "org.gnome.Sdk",
+ "command": "gedit",
+ "tags": [
+ "nightly"
+ ],
+ "desktop-file-name-prefix": "(Nightly) ",
+ "finish-args": [
+ "--share=ipc",
+ "--socket=x11",
+ "--socket=fallback-x11",
+ "--socket=wayland",
+ "--metadata=X-DConf=migrate-path=/org/gnome/gedit/",
+ "--filesystem=host",
+ "--talk-name=org.gtk.vfs.*"
+ ],
+ "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",
+ "/share/gir-1.0",
+ "*.la",
+ "*.a"
+ ],
+ "modules": [
+ {
+ "name": "libpeas",
+ "buildsystem": "meson",
+ "config-opts": [
+ "-Dlua51=false",
+ "-Dvapi=true",
+ "-Ddemos=false",
+ "-Dglade_catalog=false"
+ ],
+ "sources": [
+ {
+ "type": "archive",
+ "url": "https://download.gnome.org/sources/libpeas/1.28/libpeas-1.28.0.tar.xz",
+ "sha256": "42d91993b46ed50f16add6d9577ecc22beb8e2dffa7101e2232c2b63733b8b15"
+ }
+ ]
+ },
+ {
+ "name": "gspell",
+ "cleanup": [
+ "/bin"
+ ],
+ "sources": [
+ {
+ "type": "archive",
+ "url": "https://download.gnome.org/sources/gspell/1.9/gspell-1.9.1.tar.xz",
+ "sha256": "dcbb769dfdde8e3c0a8ed3102ce7e661abbf7ddf85df08b29915e92cd723abdd"
+ }
+ ]
+ },
+ {
+ "name": "amtk",
+ "buildsystem": "meson",
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/amtk.git"
+ }
+ ]
+ },
+ {
+ "name": "tepl",
+ "buildsystem": "meson",
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/tepl.git"
+ }
+ ]
+ },
+ {
+ "name": "gedit",
+ "buildsystem": "meson",
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/gedit.git"
+ }
+ ]
+ },
+ {
+ "name": "gedit-plugins",
+ "buildsystem": "meson",
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/gedit-plugins.git"
+ }
+ ]
+ }
+ ]
+}
diff --git a/build-aux/flatpak/org.gnome.gedit.yml b/build-aux/flatpak/org.gnome.gedit.yml
index 1438abd07..6753b63f2 100644
--- a/build-aux/flatpak/org.gnome.gedit.yml
+++ b/build-aux/flatpak/org.gnome.gedit.yml
@@ -1,3 +1,5 @@
+# After editing this file run generate-manifest.sh to generate the file
+# org.gnome.gedit.json from this file. Don't edit that other file by hand.
---
app-id: org.gnome.gedit
runtime: org.gnome.Platform
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]