summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-01-06 23:45:40 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2017-01-06 23:45:40 +0100
commitabbe0501207afd394c8fdfb8c0a2f279893e21a0 (patch)
treeb914d266f509fa48b8054182fc11765d11c1c1af
parentc71a831a8d4ce44c2c47fdfffcbe7da8f8ed5c83 (diff)
downloadkde-abbe0501207afd394c8fdfb8c0a2f279893e21a0.tar.gz
kde-abbe0501207afd394c8fdfb8c0a2f279893e21a0.tar.bz2
kde-abbe0501207afd394c8fdfb8c0a2f279893e21a0.zip
app-office/calligra: Fix DEPENDs, add USE=jpeg2k,phonon
Make USE=lcms do something (enable PLUGIN_COLORENGINES) Make USE=spacenav do sth (enable PLUGIN_SPACENAVIGATOR) Block calligra-l10n:4 Drop unused libpng dependency Move boost,threadweaver RDEPEND -> DEPEND KDE_TEST=forceoptional-recursive to eliminate a truckload of warnings Disable benchmarks as well, nothing is installed Package-Manager: portage-2.3.0
-rw-r--r--app-office/calligra/calligra-9999.ebuild51
-rw-r--r--app-office/calligra/metadata.xml2
2 files changed, 30 insertions, 23 deletions
diff --git a/app-office/calligra/calligra-9999.ebuild b/app-office/calligra/calligra-9999.ebuild
index 916e31ec719..1b17523966b 100644
--- a/app-office/calligra/calligra-9999.ebuild
+++ b/app-office/calligra/calligra-9999.ebuild
@@ -6,20 +6,12 @@ EAPI=6
CHECKREQS_DISK_BUILD="4G"
KDE_HANDBOOK="forceoptional"
-KDE_TEST="forceoptional"
+KDE_TEST="forceoptional-recursive"
inherit check-reqs kde5 versionator
DESCRIPTION="KDE Office Suite"
HOMEPAGE="http://www.calligra.org/"
-
-case ${PV} in
- 3.[0123456789].[789]?)
- # beta or rc releases
- SRC_URI="mirror://kde/unstable/${P}/${P}.tar.gz" ;;
- 3.[0123456789].?)
- # stable releases
- SRC_URI="mirror://kde/stable/${P}/${P}.tar.gz"
-esac
+[[ ${KDE_BUILD_TYPE} == release ]] && SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
LICENSE="GPL-2"
@@ -29,9 +21,9 @@ KEYWORDS="~amd64 ~x86"
CAL_FTS=( karbon plan sheets words )
CAL_EXP_FTS=( braindump stage )
-IUSE="activities +crypt +eigen +fontconfig gsl import-filter +lcms pim marble okular
- openexr +pdf spacenav +truetype vc +xml X $(printf 'calligra_features_%s ' ${CAL_FTS[@]})
- $(printf 'calligra_experimental_features_%s ' ${CAL_EXP_FTS[@]})"
+IUSE="activities +crypt +eigen +fontconfig gsl import-filter jpeg2k +lcms okular openexr +pdf
+phonon pim marble spacenav +truetype vc +xml X $(printf 'calligra_features_%s ' ${CAL_FTS[@]})
+$(printf 'calligra_experimental_features_%s ' ${CAL_EXP_FTS[@]})"
REQUIRED_USE="calligra_features_sheets? ( eigen )"
@@ -55,20 +47,18 @@ COMMON_DEPEND="
$(add_frameworks_dep kio)
$(add_frameworks_dep kitemmodels)
$(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep kjobwidgets)
$(add_frameworks_dep knotifications)
$(add_frameworks_dep knotifyconfig)
$(add_frameworks_dep kparts)
$(add_frameworks_dep kross)
- $(add_frameworks_dep ktexteditor)
$(add_frameworks_dep ktextwidgets)
$(add_frameworks_dep kwallet)
$(add_frameworks_dep kwidgetsaddons)
$(add_frameworks_dep kwindowsystem)
$(add_frameworks_dep kxmlgui)
$(add_frameworks_dep sonnet)
- $(add_frameworks_dep threadweaver)
$(add_qt_dep designer)
- $(add_qt_dep qtconcurrent)
$(add_qt_dep qtdbus)
$(add_qt_dep qtdeclarative)
$(add_qt_dep qtgui)
@@ -79,8 +69,6 @@ COMMON_DEPEND="
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
dev-lang/perl
- dev-libs/boost
- media-libs/libpng:0
sys-libs/zlib
virtual/libiconv
activities? ( $(add_frameworks_dep kactivities) )
@@ -98,10 +86,14 @@ COMMON_DEPEND="
dev-libs/librevenge
media-libs/libvisio
)
- lcms? ( media-libs/lcms:2 )
+ lcms? (
+ media-libs/ilmbase:=
+ media-libs/lcms:2
+ )
marble? ( $(add_kdeapps_dep marble) )
openexr? ( media-libs/openexr )
pdf? ( app-text/poppler:=[qt5] )
+ phonon? ( media-libs/phonon[qt5] )
spacenav? ( dev-libs/libspnav )
truetype? ( media-libs/freetype:2 )
X? (
@@ -113,12 +105,13 @@ COMMON_DEPEND="
$(add_qt_dep qtwebkit)
okular? ( $(add_kdeapps_dep okular) )
)
+ calligra_features_karbon? ( jpeg2k? ( media-libs/openjpeg:= ) )
calligra_features_plan? (
$(add_frameworks_dep khtml)
$(add_qt_dep qtcore '' '' '5=')
dev-libs/kdiagram:5
- dev-libs/kproperty:5
- dev-libs/kreport:5
+ =dev-libs/kproperty-3.0*:5
+ =dev-libs/kreport-3.0*:5
pim? (
$(add_kdeapps_dep akonadi)
$(add_kdeapps_dep akonadi-contacts)
@@ -132,17 +125,20 @@ COMMON_DEPEND="
)
"
DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
sys-devel/gettext
x11-misc/shared-mime-info
+ test? ( $(add_frameworks_dep threadweaver) )
vc? ( >=dev-libs/vc-1.1.0 )
"
RDEPEND="${COMMON_DEPEND}
calligra_features_karbon? ( media-gfx/pstoedit[plotutils] )
!app-office/calligra:4
+ !app-office/calligra-l10n:4
"
RESTRICT+=" test"
-PATCHES=( "${FILESDIR}/${PN}-3.0.0-no-arch-detection.patch" )
+PATCHES=( "${FILESDIR}/${PN}"-3.0.0-no-arch-detection.patch )
pkg_pretend() {
check-reqs_pkg_pretend
@@ -156,6 +152,11 @@ pkg_setup() {
src_prepare() {
kde5_src_prepare
+ if ! use test; then
+ sed -e "/add_subdirectory( *benchmarks *)/s/^/#DONT/" \
+ -i libs/pigment/CMakeLists.txt || die
+ fi
+
# Unconditionally disable deprecated deps (required by QtQuick1)
punt_bogus_dep Qt5 Declarative
punt_bogus_dep Qt5 OpenGL
@@ -195,6 +196,9 @@ src_configure() {
fi
done
+ use lcms && myproducts+=( PLUGIN_COLORENGINES )
+ use spacenav && myproducts+=( PLUGIN_SPACENAVIGATOR )
+
local mycmakeargs=( -DPRODUCTSET="${myproducts[*]}" )
if [[ ${KDE_BUILD_TYPE} == release ]] ; then
@@ -219,6 +223,8 @@ src_configure() {
-DWITH_LibWpd=$(usex import-filter)
-DWITH_LibWpg=$(usex import-filter)
-DWITH_LibWps=$(usex import-filter)
+ $(cmake-utils_use_find_package jpeg2k OpenJPEG)
+ $(cmake-utils_use_find_package phonon Phonon4Qt5)
$(cmake-utils_use_find_package pim KF5Akonadi)
$(cmake-utils_use_find_package pim KF5AkonadiContact)
$(cmake-utils_use_find_package pim KF5CalendarCore)
@@ -228,7 +234,6 @@ src_configure() {
-DWITH_Okular5=$(usex okular)
-DWITH_OpenEXR=$(usex openexr)
-DWITH_Poppler=$(usex pdf)
- $(cmake-utils_use_find_package spacenav Spnav)
-ENABLE_CSTESTER_TESTING=$(usex test)
-DWITH_Freetype=$(usex truetype)
-DWITH_Vc=$(usex vc)
diff --git a/app-office/calligra/metadata.xml b/app-office/calligra/metadata.xml
index 432740f7cad..31b5858d92e 100644
--- a/app-office/calligra/metadata.xml
+++ b/app-office/calligra/metadata.xml
@@ -14,8 +14,10 @@
<flag name="eigen">Enable <pkg>dev-cpp/eigen</pkg> mathematical templates support</flag>
<flag name="import-filter">Enable support for various import filter file formats like WordPerfect, Visio and Apple Keynote</flag>
<flag name="pim">Enable support for KDE PIM resources integration</flag>
+ <flag name="lcms">Build colorengine plugins using <pkg>media-libs/lcms</pkg></flag>
<flag name="marble">Enable displaying of maps using Marble</flag>
<flag name="okular">Enable bindings for <pkg>kde-apps/okular</pkg></flag>
+ <flag name="phonon">Build stage/eventplugins and videoshape plugin using <pkg>media-libs/phonon</pkg></flag>
<flag name="spacenav">Enable support for the 3Dconnexion spacenav input device via <pkg>dev-libs/libspnav</pkg></flag>
<flag name="vc">Build with <pkg>dev-libs/vc</pkg>, could be a significant speed boost</flag>
</use>