mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
parent
567177d56b
commit
ff60942840
1 changed files with 32 additions and 0 deletions
32
projects/c-ares.org/package.yml
Normal file
32
projects/c-ares.org/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
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
|
Loading…
Reference in a new issue