2022-08-02 14:15:02 +03:00
|
|
|
distributable:
|
2022-09-18 23:15:38 +03:00
|
|
|
url: https://download.gnome.org/sources/libxml2/{{ version.marketing }}/libxml2-{{ version }}.tar.xz
|
2022-08-02 14:15:02 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: GNOME/libxml2/tags
|
2022-08-20 00:15:02 +03:00
|
|
|
ignore:
|
|
|
|
- v2.10.z # broken configure (only accepts *specifically* Python 3.1 lol)
|
2022-08-02 14:15:02 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
script: |
|
2022-08-20 00:15:02 +03:00
|
|
|
./configure $ARGS
|
2022-08-02 14:15:02 +03:00
|
|
|
make --jobs {{ hw.concurrency }}
|
|
|
|
make install
|
2022-09-18 23:15:38 +03:00
|
|
|
|
|
|
|
cd {{prefix}}/bin
|
|
|
|
sed -i.bak 's|{{prefix}}|"$(cd "$(dirname "$0")/.." \&\& pwd)"|' xml2-config
|
|
|
|
rm *.bak
|
2022-08-20 00:15:02 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix={{prefix}}
|
|
|
|
- --without-python # mysterious build failure in GHA macOS-11
|
2022-08-02 14:15:02 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
script: |
|
2022-08-31 21:05:21 +03:00
|
|
|
cc `xml2-config --cflags --libs` test.c
|
|
|
|
./a.out
|