pantry/projects/vlang.io/package.yml
Jacob Heider 0718677e3d +vlang.io
2023-01-19 03:04:02 -05:00

40 lines
805 B
YAML

distributable:
url: https://github.com/vlang/v/archive/refs/tags/{{ version }}.tar.gz
strip-components: 1
versions:
github: vlang/v/tags
ignore: /weekly\./
interprets:
extensions: v
args: [v, run]
build:
dependencies:
tea.xyz/gx/cc: '*'
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
make
mkdir {{prefix}}/{libexec,bin}
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