mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 17:05:07 +03:00
29 lines
646 B
YAML
29 lines
646 B
YAML
|
distributable:
|
||
|
url: https://github.com/skystrife/cpptoml/archive/v0.1.1.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: skystrife/cpptoml
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
gnu.org/gcc: '*'
|
||
|
tea.xyz/gx/make: '*'
|
||
|
cmake.org: '*'
|
||
|
script: |
|
||
|
cmake -S . -B build $ARGS
|
||
|
cmake --build build
|
||
|
cmake --install build
|
||
|
env:
|
||
|
LD_LIBRARY_PATH: "{{deps.gnu.org/gcc.prefix}}"
|
||
|
ARGS:
|
||
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||
|
- -DENABLE_LIBCXX="ON"
|
||
|
- -DCPPTOML_BUILD_EXAMPLES=OFF
|
||
|
|
||
|
test:
|
||
|
dependencies:
|
||
|
tea.xyz/gx/cc: c99
|
||
|
script: |
|
||
|
g++ -std=c++11 -I {{prefix}}/include test.cc -o test
|
||
|
./test | grep "Hello, Tea"
|