pantry/projects/gnome.org/libxslt/package.yml
Marc Seitz 3833cf86b0
+libxslt (#395)
* add libxslt

* fix libxslt test

* fix libxslt test

* fix libxslt test

* build w/ libxml2 include prefix

* add libxml2 prefix to inlcude

* restart ci

* test fix

* use pkg-config

* fix

* wip

* wip

* wip

* wip

---------

Co-authored-by: Max Howell <mxcl@me.com>
2023-02-19 13:02:44 -05:00

46 lines
1,022 B
YAML
Raw 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:
freedesktop.org/pkg-config: ^0.29
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/patch: '*'
script: |
patch -p1 < props/xslt-config.patch.in
./configure $ARGS
make --jobs {{ hw.concurrency }}
make install
cd "{{prefix}}/bin"
sed -i.bak \
-e 's|{{prefix}}|"$prefix"|g' \
-e 's|{{deps.gnome.org/libxml2.prefix}}|""$libxml2_prefix""|g' \
xslt-config
rm xslt-config.bak
env:
ARGS:
- --prefix={{prefix}}
- --without-python # we dont yet know how to support this
- --without-plugins # doesnt build and we couldnt debug
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc `xslt-config --cflags --libs` test.c
./a.out
provides:
- bin/xslt-config
- bin/xsltproc