mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 12:35:10 +03:00
4ab3dc7e2e
* make it so most includes just work * work out cleaning properly * back to @main --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
42 lines
919 B
YAML
42 lines
919 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
|
|
|
|
# a lot of stuff is surprised at the libxml2 prefix
|
|
cd {{prefix}}/include
|
|
mv libxml2/libxml .
|
|
rmdir libxml2
|
|
ln -s . libxml2
|
|
env:
|
|
ARGS:
|
|
- --prefix={{prefix}}
|
|
- --without-python # mysterious build failure in GHA macOS-11
|
|
- --without-lzma
|
|
|
|
test:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
script: |
|
|
cc `xml2-config --cflags --libs` test.c
|
|
./a.out
|
|
|
|
provides:
|
|
- bin/xml2-config
|
|
- bin/xmlcatalog
|
|
- bin/xmllint
|