pantry/projects/gnome.org/libxslt/package.yml
2024-07-02 12:59:20 -04:00

43 lines
986 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://download.gnome.org/sources/libxslt/{{ version.marketing }}/libxslt-{{ version }}.tar.xz
strip-components: 1
versions:
github: GNOME/libxslt/tags
dependencies:
gnome.org/libxml2: '*'
build:
dependencies:
gnu.org/patch: '*'
script:
- patch -p1 < props/xslt-config.patch.in
- ./configure $ARGS
- make --jobs {{ hw.concurrency }}
- make install
- run: sed -i
-e 's|{{prefix}}|"$prefix"|g'
-e 's|{{deps.gnome.org/libxml2.prefix}}|""$libxml2_prefix""|g'
xslt-config
working-directory: '{{prefix}}/bin'
- run: find . -name \*.la -exec rm {} \;
working-directory: '{{prefix}}/lib'
env:
ARGS:
- --prefix={{prefix}}
- --without-python # we dont yet know how to support this
- --without-plugins # doesnt build and we couldnt debug
test:
script: |
cc `xslt-config --cflags --libs` test.c
./a.out
provides:
- bin/xslt-config
- bin/xsltproc