commit: 20b5d06291dacca192f08b6b901050c834c9e2b0
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 12 17:07:17 2021 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Jun 12 17:07:17 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20b5d062
app-text/poppler: Make splash backend build optional
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
app-text/poppler/metadata.xml | 1 +
app-text/poppler/poppler-21.06.1.ebuild | 10 ++++++----
app-text/poppler/poppler-9999.ebuild | 10 ++++++----
3 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/app-text/poppler/metadata.xml b/app-text/poppler/metadata.xml
index 6f044d376b2..91f9161a0e0 100644
--- a/app-text/poppler/metadata.xml
+++ b/app-text/poppler/metadata.xml
@@ -22,6 +22,7 @@
</upstream>
<use>
<flag name="nss">Enable signatures handling with
<pkg>dev-libs/nss</pkg></flag>
+ <flag name="splash">Build the Splash graphics backend (requires
<pkg>dev-libs/boost</pkg>)</flag>
<flag name="utils">Install command-line PDF converters and various
utilities.</flag>
</use>
<slots>
diff --git a/app-text/poppler/poppler-21.06.1.ebuild
b/app-text/poppler/poppler-21.06.1.ebuild
index d635ec8b9d3..048302fba12 100644
--- a/app-text/poppler/poppler-21.06.1.ebuild
+++ b/app-text/poppler/poppler-21.06.1.ebuild
@@ -19,13 +19,12 @@ DESCRIPTION="PDF rendering library based on the xpdf-3.0
code base"
HOMEPAGE="https://poppler.freedesktop.org/"
LICENSE="GPL-2"
-IUSE="cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png
qt5 tiff +utils"
+IUSE="cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png
qt5 +splash tiff +utils"
# No test data provided
RESTRICT="test"
BDEPEND="
- dev-libs/boost
dev-util/glib-utils
virtual/pkgconfig
"
@@ -54,6 +53,9 @@ DEPEND="
RDEPEND="${DEPEND}
cjk? ( app-text/poppler-data )
"
+DEPEND+="
+ splash? ( dev-libs/boost )
+"
DOCS=( AUTHORS NEWS README.md README-XPDF )
@@ -89,8 +91,8 @@ src_configure() {
-DBUILD_MANUAL_TESTS=OFF
-DRUN_GPERF_IF_PRESENT=OFF
# Required for SPLASH
- -DENABLE_BOOST=ON
- -DENABLE_SPLASH=ON
+ -DENABLE_BOOST="$(usex splash)"
+ -DENABLE_SPLASH="$(usex splash)"
-DENABLE_ZLIB=ON
-DENABLE_ZLIB_UNCOMPRESS=OFF
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON
diff --git a/app-text/poppler/poppler-9999.ebuild
b/app-text/poppler/poppler-9999.ebuild
index d635ec8b9d3..048302fba12 100644
--- a/app-text/poppler/poppler-9999.ebuild
+++ b/app-text/poppler/poppler-9999.ebuild
@@ -19,13 +19,12 @@ DESCRIPTION="PDF rendering library based on the xpdf-3.0
code base"
HOMEPAGE="https://poppler.freedesktop.org/"
LICENSE="GPL-2"
-IUSE="cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png
qt5 tiff +utils"
+IUSE="cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png
qt5 +splash tiff +utils"
# No test data provided
RESTRICT="test"
BDEPEND="
- dev-libs/boost
dev-util/glib-utils
virtual/pkgconfig
"
@@ -54,6 +53,9 @@ DEPEND="
RDEPEND="${DEPEND}
cjk? ( app-text/poppler-data )
"
+DEPEND+="
+ splash? ( dev-libs/boost )
+"
DOCS=( AUTHORS NEWS README.md README-XPDF )
@@ -89,8 +91,8 @@ src_configure() {
-DBUILD_MANUAL_TESTS=OFF
-DRUN_GPERF_IF_PRESENT=OFF
# Required for SPLASH
- -DENABLE_BOOST=ON
- -DENABLE_SPLASH=ON
+ -DENABLE_BOOST="$(usex splash)"
+ -DENABLE_SPLASH="$(usex splash)"
-DENABLE_ZLIB=ON
-DENABLE_ZLIB_UNCOMPRESS=OFF
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON