mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+digip.org/jansson (#390)
* first attempt * use gcc on linux --------- Co-authored-by: Max Howell <mxcl@me.com>
This commit is contained in:
parent
ed1fede886
commit
1a0a2f104c
11
projects/digip.org/jansson/fixture.c
Normal file
11
projects/digip.org/jansson/fixture.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include <jansson.h>
|
||||
#include <assert.h>
|
||||
int main()
|
||||
{
|
||||
json_t *json;
|
||||
json_error_t error;
|
||||
json = json_loads("\"foo\"", JSON_DECODE_ANY, &error);
|
||||
assert(json && json_is_string(json));
|
||||
json_decref(json);
|
||||
return 0;
|
||||
}
|
25
projects/digip.org/jansson/package.yml
Normal file
25
projects/digip.org/jansson/package.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
distributable:
|
||||
url: https://github.com/akheron/jansson/releases/download/v{{ version.raw }}/jansson-{{ version.raw }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: akheron/jansson/tags
|
||||
strip: /^v/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
linux:
|
||||
gnu.org/gcc: '*'
|
||||
darwin:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
script: |
|
||||
./configure --prefix="{{prefix}}"
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script: |
|
||||
cc fixture.c -ljansson
|
||||
./a.out
|
Loading…
Reference in a new issue