fix(json-glib)

closes #6560
This commit is contained in:
Jacob Heider 2024-06-30 14:48:32 -04:00 committed by Jacob Heider
parent 1bb1a1180c
commit b9a4a06ac6

View file

@ -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