From: Lorenz Wildberg Date: Mon, 10 Apr 2023 19:56:32 +0000 (+0200) Subject: flatpak: Add manifests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=660e189775bfd81b1aa767abca1c9ff196ab56b3;p=thirdparty%2Fvala.git flatpak: Add manifests org.freedesktop.Sdk.Extension.vala-nightly builds the Vala Sdk extension and dev.vala.valac is for quickly providing a development environment. --- diff --git a/.gitignore b/.gitignore index 21a2dba5a..51191aa0d 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,13 @@ Makefile .libs libvala-*.vapi -build-aux +build-aux/compile +build-aux/depcomp +build-aux/install-sh +build-aux/ltmain.sh +build-aux/missing +build-aux/test-driver +build-aux/ylwrap config.* aclocal.m4 autom4te.cache @@ -40,3 +46,5 @@ Makecache *.dll *.exe + +.flatpak-builder \ No newline at end of file diff --git a/build-aux/flatpak/dev.vala.valac.json b/build-aux/flatpak/dev.vala.valac.json new file mode 100644 index 000000000..8ac0cafe0 --- /dev/null +++ b/build-aux/flatpak/dev.vala.valac.json @@ -0,0 +1,41 @@ +{ + "id": "dev.vala.valac", + "runtime": "org.gnome.Platform", + "sdk": "org.gnome.Sdk", + "runtime-version": "44", + "sdk-extensions" : [ + "org.freedesktop.Sdk.Extension.vala" + ], + "build-options": { + "append-path" : "/usr/lib/sdk/vala/bin", + "append-ld-library-path" : "/usr/lib/sdk/vala/lib" + }, + "command": "valac", + "modules": [ + { + "name": "valac", + "buildsystem": "autotools", + "sources": [ + { + "type": "git", + "url": "https://gitlab.gnome.org/gnome/vala", + "branch": "main" + } + ], + "run-tests": true, + "modules": [ + { + "name": "graphviz", + "buildsystem": "autotools", + "sources": [ + { + "type": "archive", + "url": "https://gitlab.com/graphviz/graphviz/-/archive/7.1.0/graphviz-7.1.0.tar.gz", + "sha256": "8b28a283644a8442e6925b15d95055228d25172c7c30681810625616cbb23913" + } + ] + } + ] + } + ] +} diff --git a/build-aux/flatpak/org.freedesktop.Sdk.Extension.vala-nightly.appdata.xml b/build-aux/flatpak/org.freedesktop.Sdk.Extension.vala-nightly.appdata.xml new file mode 100644 index 000000000..62b02d54b --- /dev/null +++ b/build-aux/flatpak/org.freedesktop.Sdk.Extension.vala-nightly.appdata.xml @@ -0,0 +1,43 @@ + + + + + org.freedesktop.Sdk.Extension.vala-nightly + + + CC0-1.0 + + + Vala nightly Sdk extension + + + An object-oriented programming language with a self-hosting compiler that + generates C code and uses the GObject system + + +

+ Vala is a programming language using modern high level abstractions + without imposing additional runtime requirements and without using + a different ABI compared to applications and libraries written in C. + Vala uses the GObject type system and has additional code generation + routines that make targeting the GNOME stack simple. + Vala has many other uses where native binaries are required. +

+
+ + LGPL-2.1-only + + + https://wiki.gnome.org/Projects/Vala/ + + + https://gitlab.gnome.org/GNOME/vala/-/issues + + + + lorenz@wild-fisch.de + + + + +
diff --git a/build-aux/flatpak/org.freedesktop.Sdk.Extension.vala-nightly.yml b/build-aux/flatpak/org.freedesktop.Sdk.Extension.vala-nightly.yml new file mode 100644 index 000000000..39776e2db --- /dev/null +++ b/build-aux/flatpak/org.freedesktop.Sdk.Extension.vala-nightly.yml @@ -0,0 +1,117 @@ +id: "org.freedesktop.Sdk.Extension.vala-nightly" +branch: "master" +runtime: "org.freedesktop.Sdk" +build-extension: true +sdk: "org.freedesktop.Sdk" +runtime-version: "22.08" +sdk-extensions: ["org.freedesktop.Sdk.Extension.vala"] +separate-locales: false +appstream-compose: false +build-options: + prefix: "/usr/lib/sdk/vala-nightly" + prepend-pkg-config-path: "/usr/lib/sdk/vala-nightly/lib/pkgconfig/:/usr/lib/sdk/vala/lib/pkgconfig/" + prepend-path: "/usr/lib/sdk/vala-nightly/bin/:/usr/lib/sdk/vala/bin/" +cleanup: + - "/share/info" + - "/share/man" + - "/share/doc" + - "/share/gir-1.0" + - "/lib/girepository-1.0" + - "/share/aclocal" + - "/include" + - "/lib/pkgconfig" + - "*.la" + - "/share/vala/Makefile.vapigen" + - "/lib/libgvpr.so*" + - "/share/graphviz/gvpr" +modules: + - name: valac + buildsystem: autotools + sources: + - type: git + url: https://gitlab.gnome.org/gnome/vala.git + branch: main + disable-shallow-clone: true + run-tests: false + modules: + - name: graphviz + buildsystem: autotools + sources: + - type: archive + url: "https://gitlab.com/graphviz/graphviz/-/archive/7.1.0/graphviz-7.1.0.tar.gz" + sha256: "8b28a283644a8442e6925b15d95055228d25172c7c30681810625616cbb23913" + x-checker-data: + type: anitya + project-id: 1249 + stable-only: true + url-template: "https://gitlab.com/graphviz/graphviz/-/archive/$version/graphviz-$version.tar.gz" + cleanup: ["/include", "*.pc", "/share/graphviz/doc", "/bin"] + - name: dbus-run-session + sources: + - type: archive + url: "https://gitlab.freedesktop.org/dbus/dbus/-/archive/dbus-1.15.4/dbus-dbus-1.15.4.tar.gz" + sha256: "dc31de363ae150d3caef7a5b5afd0b1205c74a743fe17a446a2f049a1dde5e60" + x-checker-data: + type: anitya + project-id: 5356 + stable-only: true + url-template: "https://gitlab.freedesktop.org/dbus/dbus/-/archive/dbus-$version/dbus-dbus-$version.tar.gz" + buildsystem: autotools + cleanup: ["*"] + - name: vls + buildsystem: meson + sources: + - type: git + url: "https://github.com/vala-lang/vala-language-server.git" + branch: "master" + build-options: + env: + { + XDG_DATA_DIRS: "/usr/lib/sdk/vala/share/:/usr/lib/sdk/vala-nightly/share/", + } + modules: + - name: jsonrpc + buildsystem: meson + sources: + - type: git + url: "https://gitlab.gnome.org/GNOME/jsonrpc-glib.git" + branch: "main" + - name: gee + buildsystem: autotools + sources: + - type: archive + url: "https://download.gnome.org/sources/libgee/0.20/libgee-0.20.6.tar.xz" + sha256: "1bf834f5e10d60cc6124d74ed3c1dd38da646787fbf7872220b8b4068e476d4d" + x-checker-data: + type: gnome + name: libgee + stable-only: true + - name: uncrustify + buildsystem: cmake-ninja + config-opts: + - "-DCMAKE_BUILD_TYPE=Release" + builddir: true + sources: + - type: archive + url: "https://github.com/uncrustify/uncrustify/archive/uncrustify-0.75.1.tar.gz" + sha256: "fd14acc0a31ed88b33137bdc26d32964327488c835f885696473ef07caf2e182" + - name: scripts + buildsystem: simple + sources: + - type: script + commands: + - export PATH=/usr/lib/sdk/vala-nightly/bin/:$PATH + - export LD_LIBRARY_PATH=/usr/lib/sdk/vala-nightly/lib/:$LD_LIBRARY_PATH + dest-filename: "enable.sh" + build-commands: + - cp enable.sh /usr/lib/sdk/vala-nightly/ + - name: appdata + buildsystem: simple + sources: + - type: file + path: "org.freedesktop.Sdk.Extension.vala-nightly.appdata.xml" + build-commands: + - mkdir -p ${FLATPAK_DEST}/share/metainfo + - cp ${FLATPAK_ID}.appdata.xml ${FLATPAK_DEST}/share/metainfo + - appstream-compose --basename ${FLATPAK_ID} --prefix=${FLATPAK_DEST} --origin=flatpak + ${FLATPAK_ID}