commit: 1985c2f94f7a77d1ff4dbb0c389bb017d9125acf Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> AuthorDate: Sun Jan 31 14:30:29 2016 +0000 Commit: Johannes Huber <johu <AT> gentoo <DOT> org> CommitDate: Mon Apr 4 18:54:41 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=1985c2f9
app-office/calligra: Frameworks merged to master Package-Manager: portage-2.2.27 app-office/calligra/calligra-9999.ebuild | 212 +++++++++++++++++++++++++++++++ app-office/calligra/metadata.xml | 23 ++++ 2 files changed, 235 insertions(+) diff --git a/app-office/calligra/calligra-9999.ebuild b/app-office/calligra/calligra-9999.ebuild new file mode 100644 index 0000000..5a48881 --- /dev/null +++ b/app-office/calligra/calligra-9999.ebuild @@ -0,0 +1,212 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +CHECKREQS_DISK_BUILD="4G" +KDE_DOXYGEN="true" +KDE_HANDBOOK="forceoptional" +KDE_TEST="forceoptional" +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.xz" ;; + 3.[0123456789].?) + # stable releases + SRC_URI="mirror://kde/stable/${P}/${P}.tar.xz" +esac + +LICENSE="GPL-2" + +[[ ${KDE_BUILD_TYPE} == release ]] && \ +KEYWORDS="~amd64 ~x86" + +IUSE="activities +crypt +eigen +fontconfig +glib gsl import-filter +lcms kdepim + marble okular openexr opengl +pdf spacenav +threads +truetype vc +xml X" + +# Don't use Active, it's broken on desktops. +CAL_FTS="author braindump flow gemini karbon plan sheets stage words" +for cal_ft in ${CAL_FTS}; do + IUSE+=" calligra_features_${cal_ft}" +done +unset cal_ft + +REQUIRED_USE=" + calligra_features_author? ( calligra_features_words ) + calligra_features_gemini? ( opengl ) + calligra_features_sheets? ( eigen ) + test? ( calligra_features_karbon ) +" + +# calligra_features_gemini ( +# dev-libs/libgit2 +# dev-libs/libqgit2 # needs porting (currently doesn't build) +# ) +COMMON_DEPEND=" + $(add_frameworks_dep karchive) + $(add_frameworks_dep kcmutils) + $(add_frameworks_dep kcodecs) + $(add_frameworks_dep kcompletion) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kdelibs4support) + $(add_frameworks_dep kemoticons) + $(add_frameworks_dep kglobalaccel) + $(add_frameworks_dep kguiaddons) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kiconthemes) + $(add_frameworks_dep kio) + $(add_frameworks_dep kitemmodels) + $(add_frameworks_dep kitemviews) + $(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) + $(add_qt_dep qtnetwork) + $(add_qt_dep qtprintsupport) + $(add_qt_dep qtscript) + $(add_qt_dep qtsvg) + $(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) ) + crypt? ( app-crypt/qca:2[qt5] ) + eigen? ( dev-cpp/eigen:3 ) + fontconfig? ( media-libs/fontconfig ) + glib? ( dev-libs/glib:2 ) + gsl? ( sci-libs/gsl ) + import-filter? ( + $(add_frameworks_dep khtml) + app-text/libetonyek + app-text/libodfgen + app-text/libwpd:* + app-text/libwpg:* + app-text/libwps + dev-libs/librevenge + media-libs/libvisio + ) + lcms? ( media-libs/lcms:2 ) + marble? ( $(add_kdeapps_dep marble) ) + okular? ( $(add_kdeapps_dep okular) ) + opengl? ( $(add_qt_dep qtopengl) ) + openexr? ( media-libs/openexr ) + pdf? ( + app-text/poppler:= + media-gfx/pstoedit + ) + spacenav? ( dev-libs/libspnav ) + truetype? ( media-libs/freetype:2 ) + vc? ( dev-libs/vc ) + X? ( + $(add_qt_dep qtx11extras) + x11-libs/libX11 + ) + calligra_features_plan? ( + $(add_frameworks_dep kdelibs4support) + $(add_kdeapps_dep kdiagram) + $(add_kdeapps_dep kproperty) + $(add_kdeapps_dep kreport) + kdepim? ( + $(add_kdeapps_dep akonadi) + $(add_kdeapps_dep akonadi-contact) + $(add_kdeapps_dep kcalcore) + $(add_kdeapps_dep kcontacts) + $(add_kdeapps_dep kdgantt2) + ) + ) + calligra_features_sheets? ( $(add_frameworks_dep kdelibs4support) ) + calligra_features_words? ( dev-libs/libxslt ) +" +DEPEND="${COMMON_DEPEND} + sys-devel/gettext + x11-misc/shared-mime-info +" +RDEPEND="${COMMON_DEPEND} + !app-office/calligra:4 +" + +#[[ ${PV} == 9999 ]] && LANGVERSION="3.0" || LANGVERSION="$(get_version_component_range 1-2)" +#PDEPEND=">=app-office/calligra-l10n-${LANGVERSION}" + +pkg_pretend() { + check-reqs_pkg_pretend +} + +pkg_setup() { + kde5_pkg_setup + check-reqs_pkg_setup +} + +src_configure() { + local cal_ft myproducts + + # applications + for cal_ft in ${CAL_FTS}; do + local prod=${cal_ft^^} + if use calligra_features_${cal_ft} ; then + myproducts+=( "${prod}" ) + fi + done + + local mycmakeargs=( -DPRODUCTSET="${myproducts[*]}" ) + + mycmakeargs+=( + -DPACKAGERS_BUILD=OFF + -DWITH_Iconv=ON + -DBUILD_cstester=$(usex test) + $(cmake-utils_use_find_package kdepim KF5Akonadi) + $(cmake-utils_use_find_package kdepim KF5AkonadiContact) + $(cmake-utils_use_find_package kdepim KF5CalendarCore) + $(cmake-utils_use_find_package kdepim KF5Contacts) + $(cmake-utils_use_find_package kdepim KGantt) + -DUSEOPENGL=$(usex opengl) + -DWITH_Qca-qt5=$(usex crypt) + -DWITH_Eigen3=$(usex eigen) + -DWITH_Fontconfig=$(usex fontconfig) + -DWITH_GLIB2=$(usex glib) + -DWITH_GSL=$(usex gsl) + -DWITH_LibEtonyek=$(usex import-filter) + -DWITH_LibOdfGen=$(usex import-filter) + -DWITH_LibRevenge=$(usex import-filter) + -DWITH_LibVisio=$(usex import-filter) + -DWITH_LibWpd=$(usex import-filter) + -DWITH_LibWpg=$(usex import-filter) + -DWITH_LibWps=$(usex import-filter) + -DWITH_LCMS2=$(usex lcms) + -DWITH_CalligraMarble=$(usex marble) + -DWITH_Okular=$(usex okular) + -DWITH_OpenEXR=$(usex openexr) + -DWITH_Poppler=$(usex pdf) + -DWITH_Pstoedit=$(usex pdf) + -DWITH_Spnav=$(usex spacenav) + -DWITH_Threads=$(usex threads) + -DWITH_Freetype=$(usex truetype) + -DWITH_Vc=$(usex vc) + ) + + kde5_src_configure +} diff --git a/app-office/calligra/metadata.xml b/app-office/calligra/metadata.xml new file mode 100644 index 0000000..e40c4ea --- /dev/null +++ b/app-office/calligra/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>k...@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <maintainer type="project"> + <email>off...@gentoo.org</email> + <name>Gentoo Office project</name> + </maintainer> + <use> + <flag name="activities">Enable kactivities support</flag> + <flag name="eigen">Enable <pkg>dev-cpp/eigen</pkg> mathematical templates support</flag> + <flag name="glib">Enable support for C library routines from <pkg>dev-libs/glib</pkg></flag> + <flag name="import-filter">Enable support for various import filter file formats like WordPerfect, Visio and Apple Keynote</flag> + <flag name="kdepim">Enable support for KDEPIM resources integration</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="spacenav">Enable support for the 3Dconnexion spacenav input device via <pkg>dev-libs/libspnav</pkg></flag> + <flag name="vc">Enable support for <pkg>dev-libs/vc</pkg>, could be a significant speed boost on krita</flag> + </use> +</pkgmetadata>