2023-01-19 10:55:00 +03:00
|
|
|
distributable:
|
2023-05-01 17:56:35 +03:00
|
|
|
url: https://github.com/vlang/v/archive/refs/tags/{{ version }}.tar.gz
|
2023-01-19 10:55:00 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-04-16 04:22:42 +03:00
|
|
|
github: vlang/v
|
2023-01-19 10:55:00 +03:00
|
|
|
|
|
|
|
interprets:
|
|
|
|
extensions: v
|
|
|
|
args: [v, run]
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
2023-04-16 03:45:24 +03:00
|
|
|
tea.xyz/gx/cc: c99
|
2023-01-19 10:55:00 +03:00
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
git-scm.org: '*'
|
|
|
|
script: |
|
|
|
|
if test "{{version}}" = "0.3.2"; then
|
|
|
|
# fixed in https://github.com/vlang/v/commit/ca484430e0380a3fc591b842aadda4fe18deaae5
|
|
|
|
git apply props/int-types.diff
|
|
|
|
fi
|
|
|
|
|
2023-04-16 04:22:42 +03:00
|
|
|
make
|
2023-04-16 03:45:24 +03:00
|
|
|
mkdir -p "{{prefix}}/"{libexec,bin}
|
2023-01-19 10:55:00 +03:00
|
|
|
|
|
|
|
cp -R cmd thirdparty v v.mod vlib {{prefix}}/libexec/
|
|
|
|
|
|
|
|
cd {{prefix}}/bin
|
|
|
|
ln -s ../libexec/v v
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
cp $FIXTURE hello-world.v
|
|
|
|
test "$(v run hello-world.v)" = "Hello, World!"
|
|
|
|
fixture: println('Hello, World!')
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/v
|