1 |
commit: 5d02f2c7cee655610658f046b378caf9b1fefe9e |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 6 12:46:08 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 6 12:47:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=5d02f2c7 |
7 |
|
8 |
app-office/calligra: import from main tree |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
app-office/calligra/calligra-2.9.11-r1.ebuild | 227 +++++++++++++++++++++ |
13 |
.../files/calligra-2.9.1-no-arch-detection.patch | 14 ++ |
14 |
.../files/calligra-2.9.11-libwps-0.4.patch | 46 +++++ |
15 |
.../files/calligra-2.9.11-postgresql-9.6.patch | 19 ++ |
16 |
app-office/calligra/metadata.xml | 25 +++ |
17 |
5 files changed, 331 insertions(+) |
18 |
|
19 |
diff --git a/app-office/calligra/calligra-2.9.11-r1.ebuild b/app-office/calligra/calligra-2.9.11-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 0000000..ae488fe |
22 |
--- /dev/null |
23 |
+++ b/app-office/calligra/calligra-2.9.11-r1.ebuild |
24 |
@@ -0,0 +1,227 @@ |
25 |
+# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+# note: files that need to be checked for dependencies etc: |
29 |
+# CMakeLists.txt, kexi/CMakeLists.txt kexi/migration/CMakeLists.txt |
30 |
+# krita/CMakeLists.txt |
31 |
+ |
32 |
+EAPI=6 |
33 |
+ |
34 |
+CHECKREQS_DISK_BUILD="4G" |
35 |
+KDE_HANDBOOK="optional" |
36 |
+KDE_LINGUAS_LIVE_OVERRIDE="true" |
37 |
+OPENGL_REQUIRED="optional" |
38 |
+WEBKIT_REQUIRED="optional" |
39 |
+inherit check-reqs kde4-base versionator |
40 |
+ |
41 |
+DESCRIPTION="KDE Office Suite" |
42 |
+HOMEPAGE="https://www.calligra.org/" |
43 |
+ |
44 |
+case ${PV} in |
45 |
+ 2.[456789].[789]?) |
46 |
+ # beta or rc releases |
47 |
+ SRC_URI="mirror://kde/unstable/${P}/${P}.tar.xz" ;; |
48 |
+ 2.[456789].?|2.[456789].??) |
49 |
+ # stable releases |
50 |
+ SRC_URI="mirror://kde/stable/${P}/${P}.tar.xz" ;; |
51 |
+ 2.[456789].9999) |
52 |
+ # stable branch live ebuild |
53 |
+ SRC_URI="" ;; |
54 |
+ 9999) |
55 |
+ # master branch live ebuild |
56 |
+ SRC_URI="" ;; |
57 |
+esac |
58 |
+ |
59 |
+LICENSE="GPL-2" |
60 |
+SLOT="4" |
61 |
+ |
62 |
+if [[ ${KDE_BUILD_TYPE} == release ]] ; then |
63 |
+ KEYWORDS="amd64 ~arm x86" |
64 |
+fi |
65 |
+ |
66 |
+IUSE="color-management +crypt +eigen +exif fftw +fontconfig freetds +glew +glib |
67 |
++gsf gsl import-filter +jpeg jpeg2k +lcms mysql openexr +pdf +pim |
68 |
+postgres spacenav sybase test tiff +threads +truetype vc xbase +xml" |
69 |
+ |
70 |
+# Don't use Active, it's broken on desktops. |
71 |
+CAL_FTS="author braindump flow gemini karbon kexi krita plan sheets stage words" |
72 |
+for cal_ft in ${CAL_FTS}; do |
73 |
+ IUSE+=" calligra_features_${cal_ft}" |
74 |
+done |
75 |
+unset cal_ft |
76 |
+ |
77 |
+REQUIRED_USE=" |
78 |
+ || ( $(printf 'calligra_features_%s ' ${CAL_FTS[@]}) ) |
79 |
+ calligra_features_author? ( calligra_features_words ) |
80 |
+ calligra_features_gemini? ( opengl ) |
81 |
+ calligra_features_krita? ( eigen exif lcms opengl ) |
82 |
+ calligra_features_plan? ( pim ) |
83 |
+ calligra_features_sheets? ( eigen ) |
84 |
+ calligra_features_stage? ( webkit ) |
85 |
+ vc? ( calligra_features_krita ) |
86 |
+ test? ( calligra_features_karbon ) |
87 |
+" |
88 |
+ |
89 |
+RDEPEND=" |
90 |
+ dev-lang/perl |
91 |
+ dev-libs/boost |
92 |
+ dev-qt/qtcore:4[exceptions] |
93 |
+ media-libs/libpng:0= |
94 |
+ sys-libs/zlib |
95 |
+ virtual/libiconv |
96 |
+ color-management? ( media-libs/opencolorio ) |
97 |
+ crypt? ( app-crypt/qca:2[qt4] ) |
98 |
+ eigen? ( dev-cpp/eigen:3 ) |
99 |
+ exif? ( media-gfx/exiv2:= ) |
100 |
+ fftw? ( sci-libs/fftw:3.0 ) |
101 |
+ fontconfig? ( media-libs/fontconfig ) |
102 |
+ freetds? ( dev-db/freetds ) |
103 |
+ glib? ( dev-libs/glib:2 ) |
104 |
+ gsf? ( gnome-extra/libgsf ) |
105 |
+ gsl? ( sci-libs/gsl:= ) |
106 |
+ import-filter? ( |
107 |
+ app-text/libetonyek |
108 |
+ app-text/libodfgen |
109 |
+ app-text/libwpd:* |
110 |
+ app-text/libwpg:* |
111 |
+ app-text/libwps |
112 |
+ dev-libs/librevenge |
113 |
+ media-libs/libvisio |
114 |
+ ) |
115 |
+ jpeg? ( virtual/jpeg:0 ) |
116 |
+ jpeg2k? ( media-libs/openjpeg:0 ) |
117 |
+ lcms? ( |
118 |
+ media-libs/lcms:2 |
119 |
+ x11-libs/libX11 |
120 |
+ ) |
121 |
+ mysql? ( virtual/mysql ) |
122 |
+ openexr? ( media-libs/openexr:= ) |
123 |
+ opengl? ( |
124 |
+ media-libs/glew:0 |
125 |
+ virtual/glu |
126 |
+ ) |
127 |
+ pdf? ( |
128 |
+ app-text/poppler:= |
129 |
+ media-gfx/pstoedit |
130 |
+ ) |
131 |
+ pim? ( $(add_kdeapps_dep kdepimlibs) ) |
132 |
+ postgres? ( |
133 |
+ dev-db/postgresql:* |
134 |
+ dev-libs/libpqxx |
135 |
+ ) |
136 |
+ spacenav? ( dev-libs/libspnav ) |
137 |
+ sybase? ( dev-db/freetds ) |
138 |
+ tiff? ( media-libs/tiff:0 ) |
139 |
+ truetype? ( media-libs/freetype:2 ) |
140 |
+ vc? ( <dev-libs/vc-1.0.0 ) |
141 |
+ xbase? ( dev-db/xbase ) |
142 |
+ calligra_features_kexi? ( |
143 |
+ dev-db/sqlite:3[extensions(+)] |
144 |
+ dev-libs/icu:= |
145 |
+ ) |
146 |
+ calligra_features_krita? ( |
147 |
+ dev-qt/qtdeclarative:4 |
148 |
+ net-misc/curl |
149 |
+ x11-libs/libX11 |
150 |
+ x11-libs/libXi |
151 |
+ ) |
152 |
+ calligra_features_words? ( dev-libs/libxslt ) |
153 |
+" |
154 |
+DEPEND="${RDEPEND} |
155 |
+ x11-misc/shared-mime-info |
156 |
+" |
157 |
+ |
158 |
+[[ ${PV} == 9999 ]] && LANGVERSION="2.9" || LANGVERSION="$(get_version_component_range 1-2)" |
159 |
+PDEPEND=">=app-office/calligra-l10n-${LANGVERSION}" |
160 |
+ |
161 |
+# bug 394273 |
162 |
+RESTRICT=test |
163 |
+ |
164 |
+PATCHES=( |
165 |
+ "${FILESDIR}"/${PN}-2.9.1-no-arch-detection.patch |
166 |
+ "${FILESDIR}"/${P}-postgresql-9.6.patch |
167 |
+ "${FILESDIR}"/${P}-libwps-0.4.patch |
168 |
+) |
169 |
+ |
170 |
+pkg_pretend() { |
171 |
+ check-reqs_pkg_pretend |
172 |
+} |
173 |
+ |
174 |
+pkg_setup() { |
175 |
+ kde4-base_pkg_setup |
176 |
+ check-reqs_pkg_setup |
177 |
+} |
178 |
+ |
179 |
+src_prepare() { |
180 |
+ kde4-base_src_prepare |
181 |
+ if ! use webkit; then |
182 |
+ sed -i CMakeLists.txt -e "/^find_package/ s/QtWebKit //" || die |
183 |
+ fi |
184 |
+} |
185 |
+ |
186 |
+src_configure() { |
187 |
+ local cal_ft myproducts |
188 |
+ |
189 |
+ # applications |
190 |
+ for cal_ft in ${CAL_FTS}; do |
191 |
+ use calligra_features_${cal_ft} && myproducts+=( "${cal_ft^^}" ) |
192 |
+ done |
193 |
+ |
194 |
+ local mycmakeargs=( -DPRODUCTSET="${myproducts[*]}" ) |
195 |
+ |
196 |
+ # regular options |
197 |
+ mycmakeargs+=( |
198 |
+ -DCREATIVEONLY=OFF |
199 |
+ -DPACKAGERS_BUILD=OFF |
200 |
+ -DWITH_Soprano=OFF |
201 |
+ -DWITH_KActivities=OFF |
202 |
+ -DWITH_CalligraMarble=OFF |
203 |
+ -DWITH_Iconv=ON |
204 |
+ -DWITH_OCIO=$(usex color-management) |
205 |
+ -DWITH_QCA2=$(usex crypt) |
206 |
+ -DWITH_Eigen3=$(usex eigen) |
207 |
+ -DWITH_Exiv2=$(usex exif) |
208 |
+ -DWITH_FFTW3=$(usex fftw) |
209 |
+ -DWITH_Fontconfig=$(usex fontconfig) |
210 |
+ -DWITH_FreeTDS=$(usex freetds) |
211 |
+ -DWITH_GLIB2=$(usex glib) |
212 |
+ -DWITH_GSL=$(usex gsl) |
213 |
+ -DWITH_LibEtonyek=$(usex import-filter) |
214 |
+ -DWITH_LibOdfGen=$(usex import-filter) |
215 |
+ -DWITH_LibRevenge=$(usex import-filter) |
216 |
+ -DWITH_LibVisio=$(usex import-filter) |
217 |
+ -DWITH_LibWpd=$(usex import-filter) |
218 |
+ -DWITH_LibWpg=$(usex import-filter) |
219 |
+ -DWITH_LibWps=$(usex import-filter) |
220 |
+ -DWITH_JPEG=$(usex jpeg) |
221 |
+ -DWITH_OpenJPEG=$(usex jpeg2k) |
222 |
+ -DWITH_Kdcraw=OFF |
223 |
+ -DWITH_LCMS2=$(usex lcms) |
224 |
+ -DWITH_MySQL=$(usex mysql) |
225 |
+ -DWITH_Okular=OFF |
226 |
+ -DWITH_OpenEXR=$(usex openexr) |
227 |
+ -DUSEOPENGL=$(usex opengl) |
228 |
+ -DWITH_Poppler=$(usex pdf) |
229 |
+ -DWITH_Pstoedit=$(usex pdf) |
230 |
+ -DWITH_KdepimLibs=$(usex pim) |
231 |
+ -DWITH_CalligraPostgreSQL=$(usex postgres) |
232 |
+ -DWITH_Spnav=$(usex spacenav) |
233 |
+ -DWITH_FreeTDS=$(usex sybase) |
234 |
+ -DWITH_Threads=$(usex threads) |
235 |
+ -DWITH_TIFF=$(usex tiff) |
236 |
+ -DWITH_Freetype=$(usex truetype) |
237 |
+ -DWITH_Vc=$(usex vc) |
238 |
+ -DWITH_XBase=$(usex xbase) |
239 |
+ ) |
240 |
+ |
241 |
+ use test && mycmakeargs+=( -DENABLE_CSTESTER_TESTING=$(usex test) ) |
242 |
+ |
243 |
+ kde4-base_src_configure |
244 |
+} |
245 |
+ |
246 |
+src_install() { |
247 |
+ kde4-base_src_install |
248 |
+ |
249 |
+ # bug 613414 |
250 |
+ QA_DT_NEEDED="usr/lib64/libkoversion.so.14.0.0" |
251 |
+} |
252 |
|
253 |
diff --git a/app-office/calligra/files/calligra-2.9.1-no-arch-detection.patch b/app-office/calligra/files/calligra-2.9.1-no-arch-detection.patch |
254 |
new file mode 100644 |
255 |
index 0000000..85f401b |
256 |
--- /dev/null |
257 |
+++ b/app-office/calligra/files/calligra-2.9.1-no-arch-detection.patch |
258 |
@@ -0,0 +1,14 @@ |
259 |
+--- a/CMakeLists.txt 2016-12-07 12:48:03.771533639 -0200 |
260 |
++++ b/CMakeLists.txt 2016-12-07 12:49:07.534866207 -0200 |
261 |
+@@ -441,11 +441,6 @@ |
262 |
+ endif() |
263 |
+ endmacro() |
264 |
+ endif() |
265 |
+- |
266 |
+- if (NOT PACKAGERS_BUILD) |
267 |
+- # Optimize the whole Calligra for current architecture |
268 |
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Vc_DEFINITIONS}") |
269 |
+- endif () |
270 |
+ endif() |
271 |
+ set(CMAKE_MODULE_PATH ${OLD_CMAKE_MODULE_PATH} ) |
272 |
+ |
273 |
|
274 |
diff --git a/app-office/calligra/files/calligra-2.9.11-libwps-0.4.patch b/app-office/calligra/files/calligra-2.9.11-libwps-0.4.patch |
275 |
new file mode 100644 |
276 |
index 0000000..79595d9 |
277 |
--- /dev/null |
278 |
+++ b/app-office/calligra/files/calligra-2.9.11-libwps-0.4.patch |
279 |
@@ -0,0 +1,46 @@ |
280 |
+Last-Update: 2015-06-17 |
281 |
+Forwarded: no |
282 |
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788969 |
283 |
+Origin: http://pkgs.fedoraproject.org/cgit/calligra.git/commit/?id=124c28df44584e08b00d4dbb859362af73c41070 |
284 |
+From: David Tardon <dtardon@××××××.com> |
285 |
+Description: adapt to libwps 0.4 |
286 |
+ |
287 |
+--- a/cmake/modules/FindLibWps.cmake |
288 |
++++ b/cmake/modules/FindLibWps.cmake |
289 |
+@@ -9,18 +9,18 @@ |
290 |
+ # Redistribution and use is allowed according to the terms of the BSD license. |
291 |
+ |
292 |
+ include(LibFindMacros) |
293 |
+ libfind_package(LIBWPS LibWpd) |
294 |
+-libfind_pkg_check_modules(LIBWPS_PKGCONF libwps-0.3) |
295 |
++libfind_pkg_check_modules(LIBWPS_PKGCONF libwps-0.4) |
296 |
+ |
297 |
+ find_path(LIBWPS_INCLUDE_DIR |
298 |
+ NAMES libwps/libwps.h |
299 |
+ HINTS ${LIBWPS_PKGCONF_INCLUDE_DIRS} ${LIBWPS_PKGCONF_INCLUDEDIR} |
300 |
+- PATH_SUFFIXES libwps-0.3 |
301 |
++ PATH_SUFFIXES libwps-0.4 |
302 |
+ ) |
303 |
+ |
304 |
+ find_library(LIBWPS_LIBRARY |
305 |
+- NAMES wps wps-0.3 |
306 |
++ NAMES wps wps-0.4 |
307 |
+ HINTS ${LIBWPS_PKGCONF_LIBRARY_DIRS} ${LIBWPS_PKGCONF_LIBDIR} |
308 |
+ ) |
309 |
+ |
310 |
+ set(LIBWPS_PROCESS_LIBS LIBWPS_LIBRARY LIBWPD_LIBRARIES) |
311 |
+--- a/filters/words/works/import/WPSImport.cpp |
312 |
++++ b/filters/words/works/import/WPSImport.cpp |
313 |
+@@ -90,9 +90,11 @@ |
314 |
+ } |
315 |
+ bool isSupportedFormat(librevenge::RVNGInputStream &input) |
316 |
+ { |
317 |
+ WPSKind kind = WPS_TEXT; |
318 |
+- WPSConfidence confidence = WPSDocument::isFileFormatSupported(&input, kind); |
319 |
++ WPSCreator creator = WPS_MSWORKS; |
320 |
++ bool needsEncoding = false; |
321 |
++ WPSConfidence confidence = WPSDocument::isFileFormatSupported(&input, kind, creator, needsEncoding); |
322 |
+ if (confidence == WPS_CONFIDENCE_NONE || kind != WPS_TEXT) |
323 |
+ return false; |
324 |
+ return true; |
325 |
+ } |
326 |
|
327 |
diff --git a/app-office/calligra/files/calligra-2.9.11-postgresql-9.6.patch b/app-office/calligra/files/calligra-2.9.11-postgresql-9.6.patch |
328 |
new file mode 100644 |
329 |
index 0000000..617a0c3 |
330 |
--- /dev/null |
331 |
+++ b/app-office/calligra/files/calligra-2.9.11-postgresql-9.6.patch |
332 |
@@ -0,0 +1,19 @@ |
333 |
+commit 843c41decfa85e351349f7a410893ac85c9d60b7 |
334 |
+Author: Pino Toscano <pino@×××.org> |
335 |
+Date: Sat Oct 8 16:17:17 2016 +0200 |
336 |
+ |
337 |
+ cmake: find PostgreSQL 9.6 |
338 |
+ |
339 |
+diff --git a/cmake/modules/FindCalligraPostgreSQL.cmake b/cmake/modules/FindCalligraPostgreSQL.cmake |
340 |
+index 035508b..98a1e88 100644 |
341 |
+--- a/cmake/modules/FindCalligraPostgreSQL.cmake |
342 |
++++ b/cmake/modules/FindCalligraPostgreSQL.cmake |
343 |
+@@ -83,7 +83,7 @@ set(PostgreSQL_ROOT_DIR_MESSAGE "Set the PostgreSQL_ROOT system variable to wher |
344 |
+ |
345 |
+ |
346 |
+ set(PostgreSQL_KNOWN_VERSIONS ${PostgreSQL_ADDITIONAL_VERSIONS} |
347 |
+- "9.5" "9.4" "9.3" "9.2" "9.1" "9.0" "8.4" "8.3" "8.2" "8.1" "8.0") |
348 |
++ "9.6" "9.5" "9.4" "9.3" "9.2" "9.1" "9.0" "8.4" "8.3" "8.2" "8.1" "8.0") |
349 |
+ |
350 |
+ # Define additional search paths for root directories. |
351 |
+ foreach (suffix ${PostgreSQL_KNOWN_VERSIONS} ) |
352 |
|
353 |
diff --git a/app-office/calligra/metadata.xml b/app-office/calligra/metadata.xml |
354 |
new file mode 100644 |
355 |
index 0000000..6870758 |
356 |
--- /dev/null |
357 |
+++ b/app-office/calligra/metadata.xml |
358 |
@@ -0,0 +1,25 @@ |
359 |
+<?xml version="1.0" encoding="UTF-8"?> |
360 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
361 |
+<pkgmetadata> |
362 |
+ <maintainer type="project"> |
363 |
+ <email>kde@g.o</email> |
364 |
+ <name>Gentoo KDE Project</name> |
365 |
+ </maintainer> |
366 |
+ <maintainer type="project"> |
367 |
+ <email>office@g.o</email> |
368 |
+ <name>Gentoo Office project</name> |
369 |
+ </maintainer> |
370 |
+ <use> |
371 |
+ <flag name="color-management">Enable color management via <pkg>media-libs/opencolorio</pkg></flag> |
372 |
+ <flag name="eigen">Enable <pkg>dev-cpp/eigen</pkg> mathematical templates support</flag> |
373 |
+ <flag name="glew">Enable <pkg>media-libs/glew</pkg> opengl extension library support</flag> |
374 |
+ <flag name="glib">Enable support for C library routines from <pkg>dev-libs/glib</pkg></flag> |
375 |
+ <flag name="gsf">Enable support for ODT structures extraction via <pkg>gnome-extra/libgsf</pkg></flag> |
376 |
+ <flag name="import-filter">Enable support for various import filter file formats like WordPerfect, Visio and Apple Keynote</flag> |
377 |
+ <flag name="lcms">Build colorengine plugins using <pkg>media-libs/lcms</pkg></flag> |
378 |
+ <flag name="pim">Enable support for KDE PIM resources integration</flag> |
379 |
+ <flag name="spacenav">Enable support for the 3Dconnexion spacenav input device via <pkg>dev-libs/libspnav</pkg></flag> |
380 |
+ <flag name="vc">Enable support for <pkg>dev-libs/vc</pkg>, could be a significant speed boost on krita</flag> |
381 |
+ <flag name="xbase">Enable support for xbase compatible database formats</flag> |
382 |
+ </use> |
383 |
+</pkgmetadata> |