mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(poppler)
fixes versions finder; flattens includes
This commit is contained in:
parent
3cdb74198c
commit
e98ea8fb0a
1 changed files with 33 additions and 11 deletions
|
@ -1,10 +1,13 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://poppler.freedesktop.org/poppler-{{version}}.tar.xz
|
url: https://poppler.freedesktop.org/poppler-{{version.raw}}.tar.xz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
github: freedesktop/poppler/tags
|
url: https://poppler.freedesktop.org/releases.html
|
||||||
strip: /^poppler-/
|
match: /poppler-(\d+\.\d+\.\d+)\.tar\.xz/
|
||||||
|
strip:
|
||||||
|
- /^poppler-/
|
||||||
|
- /\.tar\.xz$/
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/pdfattach
|
- bin/pdfattach
|
||||||
|
@ -34,28 +37,47 @@ dependencies:
|
||||||
poppler.freedesktop.org/poppler-data: '*'
|
poppler.freedesktop.org/poppler-data: '*'
|
||||||
simplesystems.org/libtiff: '*'
|
simplesystems.org/libtiff: '*'
|
||||||
zlib.net: '*'
|
zlib.net: '*'
|
||||||
|
mozilla.org/nss: '>=3.68'
|
||||||
|
gnupg.org/gpgme: '>=1.19'
|
||||||
|
gnupg.org/libgpg-error: 1
|
||||||
|
gnupg.org/libassuan: 2
|
||||||
|
littlecms.com: ^2.9
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cmake.org: '>=3.16.0'
|
cmake.org: '>=3.16.0'
|
||||||
freedesktop.org/pkg-config: '*'
|
freedesktop.org/pkg-config: '*'
|
||||||
gnome.org/gobject-introspection: '>=1.64.0'
|
gnome.org/gobject-introspection: '>=1.64.0'
|
||||||
script: |
|
script:
|
||||||
cmake -S . -B build_shared $ARGS
|
- cmake -S . -B build_shared $ARGS
|
||||||
cmake --build build_shared
|
- cmake --build build_shared
|
||||||
cmake --install build_shared
|
- cmake --install build_shared
|
||||||
|
|
||||||
cmake -S . -B build_static $ARGS -DBUILD_SHARED_LIBS=OFF
|
- cmake -S . -B build_static $ARGS -DBUILD_SHARED_LIBS=OFF
|
||||||
cmake --build build_static
|
- cmake --build build_static
|
||||||
install -c build_static/libpoppler.a build_static/cpp/libpoppler-cpp.a build_static/glib/libpoppler-glib.a {{prefix}}/lib
|
- install -c build_static/libpoppler.a build_static/cpp/libpoppler-cpp.a build_static/glib/libpoppler-glib.a {{prefix}}/lib
|
||||||
|
- run: |
|
||||||
|
for d in poppler cpp glib; do
|
||||||
|
if [ -d $d ]; then
|
||||||
|
mv $d/* .
|
||||||
|
rmdir $d
|
||||||
|
ln -s . $d
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
working-directory: ${{prefix}}/include
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||||
|
- -DENABLE_QT5=OFF
|
||||||
|
- -DENABLE_QT6=OFF
|
||||||
linux/x86-64:
|
linux/x86-64:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -DCMAKE_C_FLAGS=-fPIC
|
- -DCMAKE_C_FLAGS=-fPIC
|
||||||
- -DCMAKE_CXX_FLAGS=-fPIC
|
- -DCMAKE_CXX_FLAGS=-fPIC
|
||||||
- -DCMAKE_EXE_LINKER_FLAGS=-pie
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie,-lstdc++fs
|
||||||
|
linux/aarch64:
|
||||||
|
ARGS:
|
||||||
|
- -DCMAKE_EXE_LINKER_FLAGS=-lstdc++fs
|
||||||
|
|
||||||
test: pdfinfo test.pdf
|
test: pdfinfo test.pdf
|
||||||
|
|
Loading…
Reference in a new issue