From fd7d09e19443a57b8d1cdbed4e7b35b345cfcdb0 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Mon, 2 Oct 2023 22:13:54 +0300 Subject: [PATCH] new file: projects/gnome.org/vala/package.yml new file: projects/gnome.org/vala/test.vala --- projects/gnome.org/vala/package.yml | 42 +++++++++++++++++++++++++++++ projects/gnome.org/vala/test.vala | 3 +++ 2 files changed, 45 insertions(+) create mode 100644 projects/gnome.org/vala/package.yml create mode 100644 projects/gnome.org/vala/test.vala diff --git a/projects/gnome.org/vala/package.yml b/projects/gnome.org/vala/package.yml new file mode 100644 index 00000000..18259300 --- /dev/null +++ b/projects/gnome.org/vala/package.yml @@ -0,0 +1,42 @@ +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: '*' + script: + - ./configure $CONFIGURE_ARGS + - make --jobs {{hw.concurrency}} + - make --jobs {{hw.concurrency}} install + 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: + script: + - valac -g --cc=cc --save-temps test.vala + - ls | grep "test.c" + - ./test | grep "Hello World!" + - vala --version | grep {{version}} diff --git a/projects/gnome.org/vala/test.vala b/projects/gnome.org/vala/test.vala new file mode 100644 index 00000000..f374c3cd --- /dev/null +++ b/projects/gnome.org/vala/test.vala @@ -0,0 +1,3 @@ +void main () { + print ("Hello World!"); +} \ No newline at end of file