mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
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:
parent
0371d6dd5a
commit
ecefa879ef
2 changed files with 39 additions and 0 deletions
34
projects/lloyd.github.io/yajl/package.yml
Normal file
34
projects/lloyd.github.io/yajl/package.yml
Normal 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"
|
5
projects/lloyd.github.io/yajl/test.json
Normal file
5
projects/lloyd.github.io/yajl/test.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"a": 1,
|
||||||
|
"b": 2,
|
||||||
|
"c": 3
|
||||||
|
}
|
Loading…
Reference in a new issue