From 7bf675f16239ec34a069c47b6fd9c5c58c62f57d Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:39:01 +0200 Subject: [PATCH] gnome.org/json-glib (#4097) * new file: projects/gnome.org/json-glib/package.yml new file: projects/gnome.org/json-glib/test.c * wip * wip --- projects/gnome.org/json-glib/package.yml | 42 ++++++++++++++++++++++++ projects/gnome.org/json-glib/test.c | 6 ++++ 2 files changed, 48 insertions(+) create mode 100644 projects/gnome.org/json-glib/package.yml create mode 100644 projects/gnome.org/json-glib/test.c diff --git a/projects/gnome.org/json-glib/package.yml b/projects/gnome.org/json-glib/package.yml new file mode 100644 index 00000000..d30378e1 --- /dev/null +++ b/projects/gnome.org/json-glib/package.yml @@ -0,0 +1,42 @@ +distributable: + url: https://download.gnome.org/sources/json-glib/{{version.marketing}}/json-glib-{{version}}.tar.xz + strip-components: 1 +versions: + url: https://download.gnome.org/sources/json-glib/cache.json + match: /json-glib-\d+\.\d+\.\d+\.tar\.xz/ + strip: + - /^json-glib-/ + - /\.tar\.xz/ +dependencies: + gnome.org/glib: ^2.78 +build: + dependencies: + gnu.org/gettext: '*' + gnome.org/gobject-introspection: '*' + mesonbuild.com: '*' + ninja-build.org: '*' + script: + - meson setup build $MESON_ARGS + - meson compile -C build --verbose + - meson install -C build + - run: ln -s json-glib-1.0/json-glib json-glib + working-directory: "{{prefix}}/include" + env: + MESON_ARGS: + - --prefix="{{prefix}}" + - --libdir="{{prefix}}/lib" + - --buildtype=release + - --wrap-mode=nofallback + - -Dintrospection=enabled + - -Dman=false +test: + script: + - cc test.c $ARGS -o test + - ./test + env: + ARGS: + - -D_REENTRANT + - -lgio-2.0 + - -lglib-2.0 + - -lgobject-2.0 + - -ljson-glib-1.0 diff --git a/projects/gnome.org/json-glib/test.c b/projects/gnome.org/json-glib/test.c new file mode 100644 index 00000000..1a8b81ad --- /dev/null +++ b/projects/gnome.org/json-glib/test.c @@ -0,0 +1,6 @@ +#include + +int main(int argc, char *argv[]) { + JsonParser *parser = json_parser_new(); + return 0; +} \ No newline at end of file