From 114b405207dee4b6d1372967fee87a2a131b2775 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 20 Jan 2020 21:13:23 +0100 Subject: [PATCH] kdevelop: make webengine into an option --- srcpkgs/kdevelop/template | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/srcpkgs/kdevelop/template b/srcpkgs/kdevelop/template index 550dbf8a132..277477b5077 100644 --- a/srcpkgs/kdevelop/template +++ b/srcpkgs/kdevelop/template @@ -1,14 +1,13 @@ # Template file for 'kdevelop' pkgname=kdevelop version=5.4.4 -revision=1 +revision=2 build_style=cmake -hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools" +hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools gettext" makedepends="apr-util-devel clang grantlee5-devel kcmutils-devel kdevelop-pg-qt kitemmodels-devel knewstuff-devel knotifyconfig-devel krunner-devel ktexteditor-devel libkomparediff2-devel libksysguard-devel llvm okteta-devel - purpose-devel qt5-location-devel qt5-webchannel-devel qt5-webengine-devel - subversion-devel" + purpose-devel qt5-location-devel qt5-webchannel-devel subversion-devel" depends="cmake cppcheck git indent kde5-baseapps" short_desc="Integrated Development Environment for C++/C" maintainer="yopito " @@ -18,6 +17,19 @@ distfiles="${KDE_SITE}/${pkgname}/${version}/src/${pkgname}-${version}.tar.xz" checksum=10082f786773f5b202192c853832d08f59e1f13c57dcf77ad7697cf8c67f56b1 nocross="subversion-devel is not available" +build_options="webengine" +desc_option_webengine="Use Qt5 WebEngine for documentation" + +if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then + build_options_default="webengine" +fi + +if [ "$build_option_webengine" ]; then + makedepends+=" qt5-webengine-devel" +else + makedepends+=" qt5-webkit-devel" +fi + kdevelop-devel_package() { depends="kdevelop>=${version}_${revision}" short_desc+=" - development files"