From c96f4a7942d13068e06b1c1e562f344f70cfbf94 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Mon, 24 Oct 2022 14:10:09 +0900 Subject: [PATCH] poppler: Build introspection data --- packages/poppler/build.sh | 9 +- packages/poppler/gir/22.04.0/Poppler-0.18.xml | 502 ++++++++++++++++++ scripts/build/setup/termux_setup_gir.sh | 1 + 3 files changed, 509 insertions(+), 3 deletions(-) create mode 100644 packages/poppler/gir/22.04.0/Poppler-0.18.xml diff --git a/packages/poppler/build.sh b/packages/poppler/build.sh index 04e65f0cc11fee..c183080ad43d66 100644 --- a/packages/poppler/build.sh +++ b/packages/poppler/build.sh @@ -10,14 +10,15 @@ TERMUX_PKG_REVISION=3 _POPPLER_SOVERSION=120 TERMUX_PKG_SRCURL=https://poppler.freedesktop.org/poppler-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=813fb4b90e7bda63df53205c548602bae728887a60f4048aae4dbd9b1927deff -TERMUX_PKG_DEPENDS="fontconfig, freetype, glib, libc++, libcairo, libcurl, libiconv, libjpeg-turbo, libpng, libtiff, littlecms, openjpeg, openjpeg-tools, zlib" -TERMUX_PKG_BUILD_DEPENDS="boost, boost-headers" +TERMUX_PKG_DEPENDS="fontconfig, freetype, glib, libc++, libcairo, libcurl, libiconv, libjpeg-turbo, libpng, libtiff, littlecms, openjpeg, zlib" +TERMUX_PKG_BUILD_DEPENDS="boost, boost-headers, g-ir-scanner, openjpeg-tools" TERMUX_PKG_BREAKS="poppler-dev, poppler-qt (<< 22.04.0-3), poppler-qt (<< ${TERMUX_PKG_VERSION})" TERMUX_PKG_REPLACES="poppler-dev, poppler-qt (<< 22.04.0-3)" +TERMUX_PKG_DISABLE_GIR=false #texlive needs the xpdf headers TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -DENABLE_GLIB=ON --DENABLE_GOBJECT_INTROSPECTION=OFF +-DENABLE_GOBJECT_INTROSPECTION=ON -DENABLE_UNSTABLE_API_ABI_HEADERS=ON -DENABLE_QT5=OFF -DFONT_CONFIGURATION=fontconfig @@ -36,5 +37,7 @@ termux_step_pre_configure() { termux_error_exit "SOVERSION guard check failed (CMakeLists.txt: \"${sover_cmake}\")." fi + termux_setup_gir + CPPFLAGS+=" -DCMS_NO_REGISTER_KEYWORD" } diff --git a/packages/poppler/gir/22.04.0/Poppler-0.18.xml b/packages/poppler/gir/22.04.0/Poppler-0.18.xml new file mode 100644 index 00000000000000..e7e48fce2604d9 --- /dev/null +++ b/packages/poppler/gir/22.04.0/Poppler-0.18.xml @@ -0,0 +1,502 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/build/setup/termux_setup_gir.sh b/scripts/build/setup/termux_setup_gir.sh index 220a1ff7dbdcef..1e3f93664e7911 100644 --- a/scripts/build/setup/termux_setup_gir.sh +++ b/scripts/build/setup/termux_setup_gir.sh @@ -4,6 +4,7 @@ termux_setup_gir() { args="${args//$'\t'/ }" args="${args// --enable-introspection / --disable-introspection }" args="${args// --enable-introspection=yes / --enable-introspection=no }" + args="${args// -DENABLE_GOBJECT_INTROSPECTION=ON / -DENABLE_GOBJECT_INTROSPECTION=OFF }" args="${args// -DENABLE_INTROSPECTION=ON / -DENABLE_INTROSPECTION=OFF }" args="${args// -Dbuild_introspection_data=true / -Dbuild_introspection_data=false }" args="${args// -Denable-gir=true / -Denable-gir=false }"