2023-10-02 22:13:54 +03:00
|
|
|
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: '*'
|
2024-03-07 02:17:24 +03:00
|
|
|
gnome.org/gobject-introspection: '*'
|
2023-10-02 22:13:54 +03:00
|
|
|
script:
|
|
|
|
- ./configure $CONFIGURE_ARGS
|
|
|
|
- make --jobs {{hw.concurrency}}
|
|
|
|
- make --jobs {{hw.concurrency}} install
|
2024-03-07 02:17:24 +03:00
|
|
|
- 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
|
2023-10-02 22:13:54 +03:00
|
|
|
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:
|
2023-11-13 18:06:50 +03:00
|
|
|
dependencies:
|
|
|
|
linux:
|
|
|
|
llvm.org: '*'
|
2023-10-02 22:13:54 +03:00
|
|
|
script:
|
2023-11-13 18:06:50 +03:00
|
|
|
- valac -g --cc=clang --save-temps test.vala
|
2023-10-02 22:13:54 +03:00
|
|
|
- ls | grep "test.c"
|
|
|
|
- ./test | grep "Hello World!"
|
|
|
|
- vala --version | grep {{version}}
|