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
|
|
|
|
|
2023-03-21 15:57:50 +03:00
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
PYTHONPATH: ${{prefix}}/lib/python3.11/site-packages
|
|
|
|
|
2023-04-17 01:35:20 +03:00
|
|
|
dependencies:
|
|
|
|
zlib.net: ^1
|
|
|
|
|
2022-08-02 14:15:02 +03:00
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
2023-03-21 15:57:50 +03:00
|
|
|
python.org: ^3
|
|
|
|
freedesktop.org/pkg-config: ~0.29
|
2022-08-02 14:15:02 +03:00
|
|
|
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
|
2023-03-05 04:26:28 +03:00
|
|
|
|
|
|
|
# a lot of stuff is surprised at the libxml2 prefix
|
2023-03-21 15:57:50 +03:00
|
|
|
cd ../include
|
2023-03-05 04:26:28 +03:00
|
|
|
mv libxml2/libxml .
|
|
|
|
rmdir libxml2
|
|
|
|
ln -s . libxml2
|
2022-08-20 00:15:02 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix={{prefix}}
|
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
|
2023-03-21 15:57:50 +03:00
|
|
|
python.org: ^3
|
2022-08-02 14:15:02 +03:00
|
|
|
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
|
|
|
|
2023-03-21 15:57:50 +03:00
|
|
|
python -c "import libxml2"
|
|
|
|
|
2022-12-05 22:10:34 +03:00
|
|
|
provides:
|
|
|
|
- bin/xml2-config
|
|
|
|
- bin/xmlcatalog
|
|
|
|
- bin/xmllint
|