mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
049bb4bb07
switch to weekly builds. currently broken due to changes in the v c-compiler. git clone builds, so i expect this will be fixed with the next weekly release. it git clones the current compiler from another archive to build, so all past versions are strictly unbuildable (as is the most recent release).
39 lines
814 B
YAML
39 lines
814 B
YAML
distributable:
|
|
url: https://github.com/vlang/v/archive/refs/tags/weekly.{{ version.raw }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: vlang/v
|
|
strip: /weekly\./
|
|
|
|
interprets:
|
|
extensions: v
|
|
args: [v, run]
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
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 -p "{{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
|