diff --git a/projects/gnome.org/json-glib/package.yml b/projects/gnome.org/json-glib/package.yml index d30378e1..9135319f 100644 --- a/projects/gnome.org/json-glib/package.yml +++ b/projects/gnome.org/json-glib/package.yml @@ -1,14 +1,17 @@ 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: '*' @@ -16,11 +19,20 @@ build: mesonbuild.com: '*' ninja-build.org: '*' script: + # clang-15 finds some kind of syntax error here + - run: sed -i 's/guint fchar/;guint fchar/' json-scanner.c + if: darwin + working-directory: json-glib + # avoid requiring a bunch more stuff + - run: MESON_ARGS="$MESON_ARGS -Ddocumentation=disabled" + if: '>=1.9.2' + - 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" + working-directory: '{{prefix}}/include' env: MESON_ARGS: - --prefix="{{prefix}}" @@ -29,6 +41,7 @@ build: - --wrap-mode=nofallback - -Dintrospection=enabled - -Dman=false + test: script: - cc test.c $ARGS -o test