pantry/projects/gnome.org/libxml2/package.yml
2022-09-23 10:36:43 -04:00

30 lines
685 B
YAML

distributable:
url: https://download.gnome.org/sources/libxml2/{{ version.marketing }}/libxml2-{{ version }}.tar.xz
strip-components: 1
versions:
github: GNOME/libxml2/tags
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }}
make install
cd {{prefix}}/bin
sed -i.bak 's|{{prefix}}|"$(cd "$(dirname "$0")/.." \&\& pwd)"|' xml2-config
rm *.bak
env:
ARGS:
- --prefix={{prefix}}
- --without-python # mysterious build failure in GHA macOS-11
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc `xml2-config --cflags --libs` test.c
./a.out