mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
33 lines
648 B
YAML
33 lines
648 B
YAML
|
distributable:
|
||
|
url: https://c-ares.org/download/c-ares-{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
- 1.19.0
|
||
|
|
||
|
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 <stdio.h>
|
||
|
#include <ares.h>
|
||
|
int main() {
|
||
|
ares_library_init(ARES_LIB_INIT_ALL);
|
||
|
ares_library_cleanup();
|
||
|
return 0;
|
||
|
}
|
||
|
script: |
|
||
|
mv $FIXTURE b.c
|
||
|
cc b.c -lcares
|
||
|
./a.out
|