mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
parent
da91d92898
commit
86a12f3a15
1 changed files with 35 additions and 0 deletions
35
projects/fmt.dev/package.yml
Normal file
35
projects/fmt.dev/package.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
distributable:
|
||||
url: https://github.com/fmtlib/fmt/archive/{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: fmtlib/fmt
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
cmake.org: ^3
|
||||
working-directory:
|
||||
build
|
||||
script: |
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX="{{prefix}}" -DCMAKE_BUILD_TYPE=Release
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
fixture: |
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <fmt/format.h>
|
||||
int main()
|
||||
{
|
||||
std::string str = fmt::format("The answer is {}", 42);
|
||||
std::cout << str;
|
||||
return 0;
|
||||
}
|
||||
script: |
|
||||
mv $FIXTURE fixture.cc
|
||||
c++ fixture.cc -lfmt -std=c++11
|
||||
test "$(./a.out)" = "The answer is 42"
|
Loading…
Reference in a new issue