mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
29 lines
596 B
YAML
29 lines
596 B
YAML
|
distributable:
|
||
|
url: https://github.com/JuliaStrings/utf8proc/archive/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: JuliaStrings/utf8proc
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
tea.xyz/gx/cc: c99
|
||
|
tea.xyz/gx/make: '*'
|
||
|
script:
|
||
|
make install prefix={{prefix}}
|
||
|
|
||
|
test:
|
||
|
dependencies:
|
||
|
tea.xyz/gx/cc: c99
|
||
|
script: |
|
||
|
mv $FIXTURE fixture.c
|
||
|
cc fixture.c -lutf8proc
|
||
|
./a.out
|
||
|
fixture: |
|
||
|
#include <string.h>
|
||
|
#include <utf8proc.h>
|
||
|
|
||
|
int main() {
|
||
|
const char *version = utf8proc_version();
|
||
|
return strnlen(version, sizeof("1.3.1-dev")) > 0 ? 0 : -1;
|
||
|
}
|