summaryrefslogtreecommitdiff
path: root/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-09-07 02:13:28 -0400
committerIonen Wolkens <ionen@gentoo.org>2023-09-07 16:36:57 -0400
commitd2c791edc7ed0e77835178b7fd1d84321f6d46cf (patch)
tree1ad8106fe6c746aa5d3c4e1e44e63da13e6f0ea0 /dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
parent24102089c8bfc982bb9c04499107d3954ccf70d1 (diff)
downloadgentoo-d2c791edc7ed0e77835178b7fd1d84321f6d46cf.tar.gz
gentoo-d2c791edc7ed0e77835178b7fd1d84321f6d46cf.tar.bz2
gentoo-d2c791edc7ed0e77835178b7fd1d84321f6d46cf.zip
dev-qt/qtwebengine: add IUSE=pdf for QtPdf support in live
Nothing seems too special here, so can just enable it. Live-only given IUSE=pdf is a default on desktop profiles and will cause a big unnecessary rebuild (nothing needs QtPdf yet). Note that QtPdf is fairly trivial (and small'ish) after chromium bits are already built either way, and does not hurt as a default. Does require cups at build time (dlopen, left DEPEND-only). May be possible to be optional but would rather no pdf-only IUSE=cups on this big package (may revisit if someone wants this). Would be nicer split (or allow IUSE=-webengine) but, even though the option exists, build system files note that webengine cannot really be disabled and then QtPdf still needs parts of chromium to be built (splitting would cause to rebuild some of the same things twice, but it is not nearly as big as webengine proper). May revisit. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt/qtwebengine/qtwebengine-6.9999.ebuild')
-rw-r--r--dev-qt/qtwebengine/qtwebengine-6.9999.ebuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
index 45ffa95a789a..2ecd3fe98f7b 100644
--- a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
@@ -21,7 +21,7 @@ fi
IUSE="
+alsa bindist custom-cflags designer geolocation +jumbo-build kerberos
- opengl pulseaudio qml screencast +system-icu vulkan +widgets
+ opengl pdf pulseaudio qml screencast +system-icu vulkan +widgets
"
REQUIRED_USE="
designer? ( qml widgets )
@@ -83,6 +83,7 @@ DEPEND="
x11-base/xorg-proto
x11-libs/libxshmfence
screencast? ( media-libs/libepoxy[egl(+)] )
+ pdf? ( net-print/cups )
test? (
widgets? ( app-text/poppler[cxx(+)] )
)
@@ -157,9 +158,9 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
- -DQT_FEATURE_qtpdf_build=OFF # TODO?
- -DQT_FEATURE_qtpdf_quick_build=OFF
- -DQT_FEATURE_qtpdf_widgets_build=OFF
+ $(qt_feature pdf qtpdf_build)
+ $(qt_feature qml qtpdf_quick_build)
+ $(qt_feature widgets qtpdf_widgets_build)
-DQT_FEATURE_qtwebengine_build=ON
$(qt_feature qml qtwebengine_quick_build)