mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
+xerces-c
This commit is contained in:
parent
ffb95d9a14
commit
0d7085be06
2 changed files with 67 additions and 0 deletions
8
projects/xerces.apache.org/xerces-c/ducks.xml
Normal file
8
projects/xerces.apache.org/xerces-c/ducks.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
|
|
||||||
|
<ducks>
|
||||||
|
<person id="Red.Duck" >
|
||||||
|
<name><family>Duck</family> <given>One</given></name>
|
||||||
|
<email>duck@foo.com</email>
|
||||||
|
</person>
|
||||||
|
</ducks>
|
59
projects/xerces.apache.org/xerces-c/package.yml
Normal file
59
projects/xerces.apache.org/xerces-c/package.yml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
distributable:
|
||||||
|
url: https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
url: https://archive.apache.org/dist/xerces/c/3/sources/
|
||||||
|
match: /xerces-c-\d+\.\d+\.\d+\.tar\.gz/
|
||||||
|
strip:
|
||||||
|
- /^xerces-c-/
|
||||||
|
- /\.tar\.gz$/
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
curl.se: '*'
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
cmake.org: '*'
|
||||||
|
script: |
|
||||||
|
cmake -S . -B build_shared -DBUILD_SHARED_LIBS=ON $ARGS
|
||||||
|
cmake --build build_shared
|
||||||
|
# FIXME: One test is failing
|
||||||
|
# ctest --test-dir build_shared --verbose
|
||||||
|
cmake --install build_shared
|
||||||
|
|
||||||
|
cmake -S . -B build_static -DBUILD_SHARED_LIBS=OFF $ARGS
|
||||||
|
cmake --build build_static
|
||||||
|
mv build_static/src/*.a {{prefix}}/lib/
|
||||||
|
|
||||||
|
# Remove a sample program that conflicts with libmemcached
|
||||||
|
# on case-insensitive file systems
|
||||||
|
rm -f {{prefix}}/bin/MemParse
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||||
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
|
- -DCMAKE_DISABLE_FIND_PACKAGE_ICU=ON # Prevent opportunistic linkage to `icu4c`
|
||||||
|
- -DCMAKE_INSTALL_RPATH={{prefix}}
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/CreateDOMDocument
|
||||||
|
- bin/DOMCount
|
||||||
|
- bin/DOMPrint
|
||||||
|
- bin/EnumVal
|
||||||
|
- bin/PParse
|
||||||
|
- bin/PSVIWriter
|
||||||
|
- bin/Redirect
|
||||||
|
- bin/SAX2Count
|
||||||
|
- bin/SAX2Print
|
||||||
|
- bin/SAXCount
|
||||||
|
- bin/SAXPrint
|
||||||
|
- bin/SCMPrint
|
||||||
|
- bin/SEnumVal
|
||||||
|
- bin/StdInParse
|
||||||
|
- bin/XInclude
|
||||||
|
|
||||||
|
test: |
|
||||||
|
SAXCount ducks.xml | grep '(6 elems, 1 attrs, 0 spaces, 37 chars)'
|
Loading…
Reference in a new issue