mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
ac17d7b79a
closes #5432
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
distributable:
|
|
url: https://download.gnome.org/sources/vala/{{version.marketing}}/vala-{{version}}.tar.xz
|
|
strip-components: 1
|
|
versions:
|
|
url: https://download.gnome.org/sources/vala/cache.json
|
|
match: /vala-\d+\.\d+\.\d+\.tar\.xz/
|
|
strip:
|
|
- /^vala-/
|
|
- /\.tar\.xz/
|
|
dependencies:
|
|
gnome.org/glib: '*'
|
|
graphviz.org: '*'
|
|
freedesktop.org/pkg-config: '*'
|
|
gnu.org/gettext: '*'
|
|
build:
|
|
dependencies:
|
|
gnu.org/bison: '*'
|
|
github.com/westes/flex: '*'
|
|
gnome.org/libxslt: '*'
|
|
gnome.org/gobject-introspection: '*'
|
|
script:
|
|
- ./configure $CONFIGURE_ARGS
|
|
- make --jobs {{hw.concurrency}}
|
|
- make --jobs {{hw.concurrency}} install
|
|
- run: |
|
|
for d in vala-{{version.marketing}} valadoc-{{version.marketing}}; do
|
|
if [ -d $d ]; then
|
|
mv $d/* .
|
|
rmdir $d
|
|
ln -s . $d
|
|
fi
|
|
done
|
|
working-directory: ${{prefix}}/include
|
|
- run: |
|
|
for d in vala-{{version.marketing}} valadoc-{{version.marketing}}; do
|
|
if [ -d $d ]; then
|
|
mv $d/* .
|
|
rmdir $d
|
|
ln -s . $d
|
|
fi
|
|
done
|
|
working-directory: ${{prefix}}/lib
|
|
env:
|
|
CONFIGURE_ARGS:
|
|
- --disable-debug
|
|
- --disable-dependency-tracking
|
|
- --prefix="{{prefix}}"
|
|
- --libdir="{{prefix}}/lib"
|
|
- --disable-silent-rules
|
|
provides:
|
|
- bin/vala
|
|
- bin/valac
|
|
- bin/valadoc
|
|
- bin/vala-gen-introspect
|
|
- bin/vapigen
|
|
test:
|
|
dependencies:
|
|
linux:
|
|
llvm.org: '*'
|
|
script:
|
|
- valac -g --cc=clang --save-temps test.vala
|
|
- ls | grep "test.c"
|
|
- ./test | grep "Hello World!"
|
|
- vala --version | grep {{version}}
|