From d2c791edc7ed0e77835178b7fd1d84321f6d46cf Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Thu, 7 Sep 2023 02:13:28 -0400 Subject: 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 --- dev-qt/qtwebengine/qtwebengine-6.9999.ebuild | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'dev-qt/qtwebengine/qtwebengine-6.9999.ebuild') 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) -- cgit v1.2.3