mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+github.com/adamritter/fastgron (#4920)
* +github.com/adamritter/fastgron * +github.com/adamritter/fastgron * cleanup * be verbose * make it build on linux * do not depend on nproc; make it build on linux * -std=c++20 * cxxflags? * gcc maybe? * libstdc++ --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
9fb78aee49
commit
1dfc1d2992
1 changed files with 41 additions and 0 deletions
41
projects/github.com/adamritter/fastgron/package.yml
Normal file
41
projects/github.com/adamritter/fastgron/package.yml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/adamritter/fastgron/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: adamritter/fastgron
|
||||||
|
strip:
|
||||||
|
- /^v/
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
curl.se: '*'
|
||||||
|
linux:
|
||||||
|
gnu.org/gcc: '*' # libstdc++
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
gnu.org/bash: '^5'
|
||||||
|
gnu.org/make: '*'
|
||||||
|
cmake.org: '^3'
|
||||||
|
env:
|
||||||
|
CMAKE_ARGS:
|
||||||
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
||||||
|
- -DCMAKE_BUILD_PARALLEL_LEVEL={{hw.concurrency}}
|
||||||
|
darwin:
|
||||||
|
CMAKE_ARGS:
|
||||||
|
- -DCMAKE_CXX_COMPILER=clang++
|
||||||
|
linux:
|
||||||
|
CMAKE_ARGS:
|
||||||
|
- -DCMAKE_POSITION_INDEPENDENT_CODE=true
|
||||||
|
script:
|
||||||
|
- cmake -B build ${CMAKE_ARGS}
|
||||||
|
- cmake --build build --verbose
|
||||||
|
- cmake --install build
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/fastgron
|
||||||
|
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
curl.se: '*'
|
||||||
|
script: test "$(fastgron --version 2>&1| cut -d' ' -f 3)" = {{version}}
|
Loading…
Reference in a new issue