From 5679f9ada252b95344c805ac7aeff49fb77323e1 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Fri, 23 Feb 2024 00:55:51 +0200 Subject: [PATCH] +jsonnet.org (#5312) * new file: projects/jsonnet.org/package.yml * gcc? * use clang --- projects/jsonnet.org/package.yml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 projects/jsonnet.org/package.yml diff --git a/projects/jsonnet.org/package.yml b/projects/jsonnet.org/package.yml new file mode 100644 index 00000000..b0016dd1 --- /dev/null +++ b/projects/jsonnet.org/package.yml @@ -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}} +