app-office/calligra: Add WEBKIT_REQUIRED=optional
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sat, 13 Aug 2016 09:46:09 +0000 (11:46 +0200)
committerMichael Palimaka <kensington@gentoo.org>
Sat, 20 Aug 2016 18:28:26 +0000 (04:28 +1000)
USE=-webkit disables:
- Kexi web form widget
- Web element for Calligra Reports
- Braindump webshape plugin

Package-Manager: portage-2.2.28

app-office/calligra/calligra-2.9.11.ebuild

index 27e08440bd07f0d23de00fc888e1f243e1ea1dae..89311abcdaefa2bae7885c75967ad5bbc08ba894 100644 (file)
@@ -12,6 +12,7 @@ CHECKREQS_DISK_BUILD="4G"
 KDE_HANDBOOK="optional"
 KDE_LINGUAS_LIVE_OVERRIDE="true"
 OPENGL_REQUIRED="optional"
+WEBKIT_REQUIRED="optional"
 inherit check-reqs kde4-base versionator
 
 DESCRIPTION="KDE Office Suite"
@@ -57,6 +58,7 @@ REQUIRED_USE="
        calligra_features_krita? ( eigen exif lcms opengl )
        calligra_features_plan? ( kdepim )
        calligra_features_sheets? ( eigen )
+       calligra_features_stage? ( webkit )
        vc? ( calligra_features_krita )
        test? ( calligra_features_karbon )
 "
@@ -150,6 +152,13 @@ pkg_setup() {
        check-reqs_pkg_setup
 }
 
+src_prepare() {
+       if ! use webkit; then
+               sed -i CMakeLists.txt -e "/^find_package/ s/QtWebKit //" || die
+       fi
+       kde4-base_src_prepare
+}
+
 src_configure() {
        local cal_ft myproducts