mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
+jsonnet.org (#5312)
* new file: projects/jsonnet.org/package.yml * gcc? * use clang
This commit is contained in:
parent
9a323ba993
commit
5679f9ada2
1 changed files with 36 additions and 0 deletions
36
projects/jsonnet.org/package.yml
Normal file
36
projects/jsonnet.org/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/google/jsonnet/archive/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: google/jsonnet
|
||||||
|
|
||||||
|
build:
|
||||||
|
script:
|
||||||
|
- make --jobs={{hw.concurrency}}
|
||||||
|
- install -D jsonnet {{prefix}}/bin/jsonnet
|
||||||
|
- install -D jsonnetfmt {{prefix}}/bin/jsonnetfmt
|
||||||
|
env:
|
||||||
|
linux:
|
||||||
|
CC: clang
|
||||||
|
CXX: clang++
|
||||||
|
LD: clang
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/jsonnet
|
||||||
|
- bin/jsonnetfmt
|
||||||
|
|
||||||
|
test:
|
||||||
|
- run: jsonnet $FIXTURE | grep 'Hello Alice!'
|
||||||
|
fixture:
|
||||||
|
content: |
|
||||||
|
{
|
||||||
|
person1: {
|
||||||
|
name: "Alice",
|
||||||
|
welcome: "Hello " + self.name + "!",
|
||||||
|
},
|
||||||
|
person2: self.person1 { name: "Bob" },
|
||||||
|
}
|
||||||
|
extname: jsonnet
|
||||||
|
- jsonnetfmt --version | grep {{version}}
|
||||||
|
|
Loading…
Reference in a new issue