mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
1bb1a1180c
commit
b9a4a06ac6
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue