Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/calligra/
Date: Wed, 04 Jan 2017 09:50:56
Message-Id: 1483523426.4fe289f4ffe6df26114f3cd8bd67562f1885b933.asturm@gentoo
1 commit: 4fe289f4ffe6df26114f3cd8bd67562f1885b933
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 21:24:21 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 09:50:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fe289f4
7
8 app-office/calligra: 3.0.0.1 version bump
9
10 Package-Manager: portage-2.3.0
11
12 app-office/calligra/Manifest | 1 +
13 app-office/calligra/calligra-3.0.0.1.ebuild | 235 ++++++++++++++++++++++++++++
14 2 files changed, 236 insertions(+)
15
16 diff --git a/app-office/calligra/Manifest b/app-office/calligra/Manifest
17 index ddc8d3e..bf287c4 100644
18 --- a/app-office/calligra/Manifest
19 +++ b/app-office/calligra/Manifest
20 @@ -1,2 +1,3 @@
21 DIST calligra-2.9.11.tar.xz 196039892 SHA256 b18d2d0f87bc92753ec8b1eb780a596770a49141e3e60d811da51e752e54ea09 SHA512 69fbb38dbc3d59a744ed1fae5361f61bde15da298d28942f226d3d99d399a95f5ee67cca755996290c65943aa9babf6367c44f0d0199dacce22a9879346f82f8 WHIRLPOOL 973a17eb639ddfaa5a913b064c90957935ded7fe3fdb5237c27112b6686b3dbe3e411c168f920947ef98c4a3d951842220f849565503fac67ebe75784f339e74
22 +DIST calligra-3.0.0.1.tar.xz 61111072 SHA256 dedc51efc42f7dda37514d450cb772d9db37a658e0abbcf0f513712a04c1f011 SHA512 826495dfa843f51ecb1139ca8d6d19f6a3fd49e4ca186b4c6a5d1498cdecbfb38461a871153bf8b9944e729725e50918434849acc78c375591636d06ef5d5f6a WHIRLPOOL 085be69fbc32fe54b567e81727aaed7bf613d8c6f2fc9d6eaaac3348e5a4e116278b6da86be953d7d17ea8854dc94021c11c81eb29d8c9a68c517b31457d2242
23 DIST calligra-3.0.0.tar.gz 131474815 SHA256 79490a61e876767cb10c9605f48104c3d8b91f76a607424d14ec4c73c0eff0b2 SHA512 8bf93e1fd2b6d152c046c36c1386610d6607dd7846fd86a1d33bcf1d6bee9623c71b5eeb676ac272c8d8fc3843ce2681af2ba00e97a47e759b293aa58e73d5ca WHIRLPOOL 3ffdc9c0ddc868c2e6632c47cbd9028c0212b293ec9317627757403873f2d84978d0e5a04675bf1d864f583ad40d0543657721d6b1ac3b4c80f8526f78c47e78
24
25 diff --git a/app-office/calligra/calligra-3.0.0.1.ebuild b/app-office/calligra/calligra-3.0.0.1.ebuild
26 new file mode 100644
27 index 00000000..15bb5b9
28 --- /dev/null
29 +++ b/app-office/calligra/calligra-3.0.0.1.ebuild
30 @@ -0,0 +1,235 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +
37 +CHECKREQS_DISK_BUILD="4G"
38 +KDE_HANDBOOK="forceoptional"
39 +KDE_TEST="forceoptional"
40 +inherit check-reqs kde5 versionator
41 +
42 +DESCRIPTION="KDE Office Suite"
43 +HOMEPAGE="http://www.calligra.org/"
44 +[[ ${KDE_BUILD_TYPE} == release ]] && SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
45 +
46 +LICENSE="GPL-2"
47 +
48 +[[ ${KDE_BUILD_TYPE} == release ]] && \
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +CAL_FTS=( karbon plan sheets words )
52 +CAL_EXP_FTS=( braindump stage )
53 +
54 +IUSE="activities +crypt +eigen +fontconfig gsl import-filter +lcms pim marble okular
55 + openexr +pdf spacenav +truetype vc +xml X $(printf 'calligra_features_%s ' ${CAL_FTS[@]})
56 + $(printf 'calligra_experimental_features_%s ' ${CAL_EXP_FTS[@]})"
57 +
58 +REQUIRED_USE="calligra_features_sheets? ( eigen )"
59 +
60 +# TODO: Not packaged: Cauchy (https://bitbucket.org/cyrille/cauchy)
61 +# Required for the matlab/octave formula tool
62 +# drop qtcore subslot operator when QT_MINIMAL >= 5.7.0
63 +COMMON_DEPEND="
64 + $(add_frameworks_dep karchive)
65 + $(add_frameworks_dep kcmutils)
66 + $(add_frameworks_dep kcodecs)
67 + $(add_frameworks_dep kcompletion)
68 + $(add_frameworks_dep kconfig)
69 + $(add_frameworks_dep kconfigwidgets)
70 + $(add_frameworks_dep kcoreaddons)
71 + $(add_frameworks_dep kdelibs4support)
72 + $(add_frameworks_dep kemoticons)
73 + $(add_frameworks_dep kglobalaccel)
74 + $(add_frameworks_dep kguiaddons)
75 + $(add_frameworks_dep ki18n)
76 + $(add_frameworks_dep kiconthemes)
77 + $(add_frameworks_dep kio)
78 + $(add_frameworks_dep kitemmodels)
79 + $(add_frameworks_dep kitemviews)
80 + $(add_frameworks_dep knotifications)
81 + $(add_frameworks_dep knotifyconfig)
82 + $(add_frameworks_dep kparts)
83 + $(add_frameworks_dep kross)
84 + $(add_frameworks_dep ktexteditor)
85 + $(add_frameworks_dep ktextwidgets)
86 + $(add_frameworks_dep kwallet)
87 + $(add_frameworks_dep kwidgetsaddons)
88 + $(add_frameworks_dep kwindowsystem)
89 + $(add_frameworks_dep kxmlgui)
90 + $(add_frameworks_dep sonnet)
91 + $(add_frameworks_dep threadweaver)
92 + $(add_qt_dep designer)
93 + $(add_qt_dep qtconcurrent)
94 + $(add_qt_dep qtdbus)
95 + $(add_qt_dep qtdeclarative)
96 + $(add_qt_dep qtgui)
97 + $(add_qt_dep qtnetwork)
98 + $(add_qt_dep qtprintsupport)
99 + $(add_qt_dep qtscript)
100 + $(add_qt_dep qtsvg)
101 + $(add_qt_dep qtwidgets)
102 + $(add_qt_dep qtxml)
103 + dev-lang/perl
104 + dev-libs/boost
105 + media-libs/libpng:0
106 + sys-libs/zlib
107 + virtual/libiconv
108 + activities? ( $(add_frameworks_dep kactivities) )
109 + crypt? ( app-crypt/qca:2[qt5] )
110 + eigen? ( dev-cpp/eigen:3 )
111 + fontconfig? ( media-libs/fontconfig )
112 + gsl? ( sci-libs/gsl )
113 + import-filter? (
114 + $(add_frameworks_dep khtml)
115 + app-text/libetonyek
116 + app-text/libodfgen
117 + app-text/libwpd:*
118 + app-text/libwpg:*
119 + >=app-text/libwps-0.4
120 + dev-libs/librevenge
121 + media-libs/libvisio
122 + )
123 + lcms? ( media-libs/lcms:2 )
124 + marble? ( $(add_kdeapps_dep marble) )
125 + openexr? ( media-libs/openexr )
126 + pdf? ( app-text/poppler:=[qt5] )
127 + spacenav? ( dev-libs/libspnav )
128 + truetype? ( media-libs/freetype:2 )
129 + X? (
130 + $(add_qt_dep qtx11extras)
131 + x11-libs/libX11
132 + )
133 + calligra_experimental_features_braindump? ( $(add_qt_dep qtwebkit) )
134 + calligra_experimental_features_stage? (
135 + $(add_qt_dep qtwebkit)
136 + okular? ( $(add_kdeapps_dep okular) )
137 + )
138 + calligra_features_plan? (
139 + $(add_frameworks_dep khtml)
140 + $(add_qt_dep qtcore '' '' '5=')
141 + dev-libs/kdiagram:5
142 + dev-libs/kproperty:5
143 + dev-libs/kreport:5
144 + pim? (
145 + $(add_kdeapps_dep akonadi)
146 + $(add_kdeapps_dep akonadi-contacts)
147 + $(add_kdeapps_dep kcalcore)
148 + $(add_kdeapps_dep kcontacts)
149 + )
150 + )
151 + calligra_features_words? (
152 + dev-libs/libxslt
153 + okular? ( $(add_kdeapps_dep okular) )
154 + )
155 +"
156 +DEPEND="${COMMON_DEPEND}
157 + sys-devel/gettext
158 + x11-misc/shared-mime-info
159 + vc? ( >=dev-libs/vc-1.1.0 )
160 +"
161 +RDEPEND="${COMMON_DEPEND}
162 + calligra_features_karbon? ( media-gfx/pstoedit[plotutils] )
163 + !app-office/calligra:4
164 +"
165 +RESTRICT+=" test"
166 +
167 +PATCHES=(
168 + "${FILESDIR}/${PN}-3.0.0-no-arch-detection.patch"
169 + "${FILESDIR}/${PN}-3.0.0-optionaldeps.patch"
170 +)
171 +
172 +pkg_pretend() {
173 + check-reqs_pkg_pretend
174 +}
175 +
176 +pkg_setup() {
177 + kde5_pkg_setup
178 + check-reqs_pkg_setup
179 +}
180 +
181 +src_prepare() {
182 + kde5_src_prepare
183 +
184 + # Unconditionally disable deprecated deps (required by QtQuick1)
185 + punt_bogus_dep Qt5 Declarative
186 + punt_bogus_dep Qt5 OpenGL
187 +
188 + if ! use calligra_experimental_features_stage && \
189 + ! use calligra_experimental_features_braindump; then
190 + punt_bogus_dep Qt5 WebKitWidgets
191 + punt_bogus_dep Qt5 WebKit
192 + fi
193 +
194 + # Hack around the excessive use of CMake macros
195 + if use okular && ! use calligra_features_words; then
196 + sed -i -e "/add_subdirectory( *okularodtgenerator *)/ s/^/#DONT/" \
197 + extras/CMakeLists.txt || die "Failed to disable OKULAR_GENERATOR_ODT"
198 + fi
199 +
200 + if use okular && ! use calligra_experimental_features_stage; then
201 + sed -i -e "/add_subdirectory( *okularodpgenerator *)/ s/^/#DONT/" \
202 + extras/CMakeLists.txt || die "Failed to disable OKULAR_GENERATOR_ODP"
203 + fi
204 +}
205 +
206 +src_configure() {
207 + local cal_ft myproducts experimental=OFF
208 +
209 + # applications
210 + for cal_ft in ${CAL_FTS[@]}; do
211 + if use calligra_features_${cal_ft} ; then
212 + myproducts+=( "${cal_ft^^}" )
213 + fi
214 + done
215 + # experimental/unmaintained applications
216 + for cal_ft in ${CAL_EXP_FTS[@]}; do
217 + if use calligra_experimental_features_${cal_ft} ; then
218 + experimental=ON
219 + myproducts+=( "${cal_ft^^}" )
220 + fi
221 + done
222 +
223 + local mycmakeargs=( -DPRODUCTSET="${myproducts[*]}" )
224 +
225 + if [[ ${KDE_BUILD_TYPE} == release ]] ; then
226 + mycmakeargs+=(
227 + -DRELEASE_BUILD=ON
228 + -DBUILD_UNMAINTAINED=${experimental}
229 + )
230 + fi
231 +
232 + mycmakeargs+=(
233 + -DPACKAGERS_BUILD=OFF
234 + -DWITH_Iconv=ON
235 + $(cmake-utils_use_find_package activities KF5Activities)
236 + -DWITH_Qca-qt5=$(usex crypt)
237 + -DWITH_Eigen3=$(usex eigen)
238 + -DWITH_Fontconfig=$(usex fontconfig)
239 + -DWITH_GSL=$(usex gsl)
240 + -DWITH_LibEtonyek=$(usex import-filter)
241 + -DWITH_LibOdfGen=$(usex import-filter)
242 + -DWITH_LibRevenge=$(usex import-filter)
243 + -DWITH_LibVisio=$(usex import-filter)
244 + -DWITH_LibWpd=$(usex import-filter)
245 + -DWITH_LibWpg=$(usex import-filter)
246 + -DWITH_LibWps=$(usex import-filter)
247 + $(cmake-utils_use_find_package pim KF5Akonadi)
248 + $(cmake-utils_use_find_package pim KF5AkonadiContact)
249 + $(cmake-utils_use_find_package pim KF5CalendarCore)
250 + $(cmake-utils_use_find_package pim KF5Contacts)
251 + -DWITH_LCMS2=$(usex lcms)
252 + $(cmake-utils_use_find_package marble Marble)
253 + -DWITH_Okular5=$(usex okular)
254 + -DWITH_OpenEXR=$(usex openexr)
255 + -DWITH_Poppler=$(usex pdf)
256 + $(cmake-utils_use_find_package spacenav Spnav)
257 + -ENABLE_CSTESTER_TESTING=$(usex test)
258 + -DWITH_Freetype=$(usex truetype)
259 + -DWITH_Vc=$(usex vc)
260 + -DCMAKE_DISABLE_FIND_PACKAGE_Libgit2=ON
261 + -DCMAKE_DISABLE_FIND_PACKAGE_Libqgit2=ON
262 + )
263 +
264 + kde5_src_configure
265 +}