From da91d92898e48d11589225f965ea0ae565bf79fe Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 11 Apr 2023 08:57:00 -0400 Subject: [PATCH] +utf8proc (#1317) --- .../JuliaStrings/utf8proc/package.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 projects/github.com/JuliaStrings/utf8proc/package.yml diff --git a/projects/github.com/JuliaStrings/utf8proc/package.yml b/projects/github.com/JuliaStrings/utf8proc/package.yml new file mode 100644 index 00000000..70d2daf5 --- /dev/null +++ b/projects/github.com/JuliaStrings/utf8proc/package.yml @@ -0,0 +1,29 @@ +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 + #include + + int main() { + const char *version = utf8proc_version(); + return strnlen(version, sizeof("1.3.1-dev")) > 0 ? 0 : -1; + } \ No newline at end of file