lloyd.github.io/yajl (#3893)

* new file:   projects/lloyd.github.io/yajl/package.yml
	new file:   projects/lloyd.github.io/yajl/test.json

* oops
This commit is contained in:
Andrew 2023-10-30 16:01:58 +02:00 committed by GitHub
parent 0371d6dd5a
commit ecefa879ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,34 @@
distributable:
url: https://github.com/lloyd/yajl/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: lloyd/yajl/tags
build:
dependencies:
cmake.org: '*'
linux:
gnu.org/gcc: '*'
gnu.org/make: '*'
script:
- cmake . $CMAKE_ARGS
- make install
- mkdir -p {{prefix}}/include/yajl
- cp src/api/*.h {{prefix}}/include/yajl/
env:
CMAKE_ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_FIND_FRAMEWORK=LAST
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
provides:
- bin/json_reformat
- bin/json_verify
test:
dependencies:
freedesktop.org/pkg-config: '*'
script:
- pkg-config --modversion yajl | grep {{version}}
- json_verify < test.json | grep "JSON is valid"

View file

@ -0,0 +1,5 @@
{
"a": 1,
"b": 2,
"c": 3
}