pantry/projects/gnome.org/libxml2/package.yml

43 lines
919 B
YAML
Raw Normal View History

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
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
# a lot of stuff is surprised at the libxml2 prefix
cd {{prefix}}/include
mv libxml2/libxml .
rmdir libxml2
ln -s . libxml2
2022-08-20 00:15:02 +03:00
env:
ARGS:
- --prefix={{prefix}}
- --without-python # mysterious build failure in GHA macOS-11
2022-10-20 03:24:57 +03:00
- --without-lzma
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
2022-12-05 22:10:34 +03:00
provides:
- bin/xml2-config
- bin/xmlcatalog
- bin/xmllint