1 |
commit: 1d1ed4a6d999c59f8c7ab76b963afd28e4aa761b |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 16 12:21:21 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 16 14:40:31 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d1ed4a6 |
7 |
|
8 |
app-office/calligra: EAPI-7 bump, drop USE pim, fix USE charts |
9 |
|
10 |
USE pim: |
11 |
KCalCore is only used in semanticitems which is not actually being built, |
12 |
since RDF is not available. And it would not build anyway at this point. |
13 |
|
14 |
USE charts: |
15 |
bogus dependency on dev-libs/kreport -> dev-libs/kdiagram |
16 |
|
17 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
18 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
19 |
|
20 |
app-office/calligra/calligra-3.1.0-r4.ebuild | 202 +++++++++++++++++++++++++++ |
21 |
app-office/calligra/metadata.xml | 2 +- |
22 |
2 files changed, 203 insertions(+), 1 deletion(-) |
23 |
|
24 |
diff --git a/app-office/calligra/calligra-3.1.0-r4.ebuild b/app-office/calligra/calligra-3.1.0-r4.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..37e03558459 |
27 |
--- /dev/null |
28 |
+++ b/app-office/calligra/calligra-3.1.0-r4.ebuild |
29 |
@@ -0,0 +1,202 @@ |
30 |
+# Copyright 1999-2019 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+CHECKREQS_DISK_BUILD="4G" |
36 |
+KDE_DOC_DIR="xxx" # contains no language subdirs |
37 |
+KDE_HANDBOOK="forceoptional" |
38 |
+KDE_TEST="forceoptional" |
39 |
+inherit check-reqs kde5 |
40 |
+ |
41 |
+DESCRIPTION="KDE Office Suite" |
42 |
+HOMEPAGE="https://www.calligra.org/" |
43 |
+SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+KEYWORDS="amd64 x86" |
47 |
+ |
48 |
+CAL_FTS=( karbon sheets stage words ) |
49 |
+ |
50 |
+IUSE="activities +charts +crypt +fontconfig gemini gsl import-filter +lcms okular openexr |
51 |
+ +pdf phonon spacenav +truetype X $(printf 'calligra_features_%s ' ${CAL_FTS[@]})" |
52 |
+ |
53 |
+# TODO: Not packaged: Cauchy (https://bitbucket.org/cyrille/cauchy) |
54 |
+# Required for the matlab/octave formula tool |
55 |
+BDEPEND=" |
56 |
+ sys-devel/gettext |
57 |
+" |
58 |
+COMMON_DEPEND=" |
59 |
+ $(add_frameworks_dep karchive) |
60 |
+ $(add_frameworks_dep kcmutils) |
61 |
+ $(add_frameworks_dep kcodecs) |
62 |
+ $(add_frameworks_dep kcompletion) |
63 |
+ $(add_frameworks_dep kconfig) |
64 |
+ $(add_frameworks_dep kconfigwidgets) |
65 |
+ $(add_frameworks_dep kcoreaddons) |
66 |
+ $(add_frameworks_dep kdelibs4support) |
67 |
+ $(add_frameworks_dep kemoticons) |
68 |
+ $(add_frameworks_dep kglobalaccel) |
69 |
+ $(add_frameworks_dep kguiaddons) |
70 |
+ $(add_frameworks_dep ki18n) |
71 |
+ $(add_frameworks_dep kiconthemes) |
72 |
+ $(add_frameworks_dep kio) |
73 |
+ $(add_frameworks_dep kitemmodels) |
74 |
+ $(add_frameworks_dep kitemviews) |
75 |
+ $(add_frameworks_dep kjobwidgets) |
76 |
+ $(add_frameworks_dep knotifications) |
77 |
+ $(add_frameworks_dep knotifyconfig) |
78 |
+ $(add_frameworks_dep kparts) |
79 |
+ $(add_frameworks_dep kross) |
80 |
+ $(add_frameworks_dep ktextwidgets) |
81 |
+ $(add_frameworks_dep kwallet) |
82 |
+ $(add_frameworks_dep kwidgetsaddons) |
83 |
+ $(add_frameworks_dep kwindowsystem) |
84 |
+ $(add_frameworks_dep kxmlgui) |
85 |
+ $(add_frameworks_dep sonnet) |
86 |
+ $(add_qt_dep designer) |
87 |
+ $(add_qt_dep qtdbus) |
88 |
+ $(add_qt_dep qtdeclarative) |
89 |
+ $(add_qt_dep qtgui) |
90 |
+ $(add_qt_dep qtnetwork) |
91 |
+ $(add_qt_dep qtprintsupport) |
92 |
+ $(add_qt_dep qtscript) |
93 |
+ $(add_qt_dep qtsvg) |
94 |
+ $(add_qt_dep qtwidgets) |
95 |
+ $(add_qt_dep qtxml) |
96 |
+ dev-lang/perl |
97 |
+ sys-libs/zlib |
98 |
+ virtual/libiconv |
99 |
+ activities? ( $(add_frameworks_dep kactivities) ) |
100 |
+ charts? ( dev-libs/kdiagram:5 ) |
101 |
+ crypt? ( app-crypt/qca:2[qt5(+)] ) |
102 |
+ fontconfig? ( media-libs/fontconfig ) |
103 |
+ gemini? ( $(add_qt_dep qtdeclarative 'widgets') ) |
104 |
+ gsl? ( sci-libs/gsl ) |
105 |
+ import-filter? ( |
106 |
+ $(add_frameworks_dep khtml) |
107 |
+ app-text/libetonyek |
108 |
+ app-text/libodfgen |
109 |
+ app-text/libwpd:* |
110 |
+ app-text/libwpg:* |
111 |
+ >=app-text/libwps-0.4 |
112 |
+ dev-libs/librevenge |
113 |
+ media-libs/libvisio |
114 |
+ ) |
115 |
+ lcms? ( |
116 |
+ media-libs/ilmbase:= |
117 |
+ media-libs/lcms:2 |
118 |
+ ) |
119 |
+ openexr? ( media-libs/openexr ) |
120 |
+ pdf? ( >=app-text/poppler-0.73:=[qt5] ) |
121 |
+ phonon? ( media-libs/phonon[qt5(+)] ) |
122 |
+ spacenav? ( dev-libs/libspnav ) |
123 |
+ truetype? ( media-libs/freetype:2 ) |
124 |
+ X? ( |
125 |
+ $(add_qt_dep qtx11extras) |
126 |
+ x11-libs/libX11 |
127 |
+ ) |
128 |
+ calligra_features_sheets? ( dev-cpp/eigen:3 ) |
129 |
+ calligra_features_stage? ( okular? ( $(add_kdeapps_dep okular) ) ) |
130 |
+ calligra_features_words? ( |
131 |
+ dev-libs/libxslt |
132 |
+ okular? ( $(add_kdeapps_dep okular) ) |
133 |
+ ) |
134 |
+" |
135 |
+DEPEND="${COMMON_DEPEND} |
136 |
+ dev-libs/boost |
137 |
+ test? ( $(add_frameworks_dep threadweaver) ) |
138 |
+" |
139 |
+RDEPEND="${COMMON_DEPEND} |
140 |
+ calligra_features_karbon? ( media-gfx/pstoedit[plotutils] ) |
141 |
+ !app-office/calligra:4 |
142 |
+ !app-office/calligra-l10n:4 |
143 |
+" |
144 |
+RESTRICT+=" test" |
145 |
+ |
146 |
+PATCHES=( |
147 |
+ "${FILESDIR}"/${P}-no-arch-detection.patch |
148 |
+ "${FILESDIR}"/${P}-doc.patch |
149 |
+ "${FILESDIR}"/${P}-{,stage-}qt-5.11.patch |
150 |
+ "${FILESDIR}"/${P}-poppler-0.{69,71,72,73}.patch |
151 |
+ "${FILESDIR}"/${P}-no-webkit.patch |
152 |
+ "${FILESDIR}"/${P}-missing-header.patch |
153 |
+) |
154 |
+ |
155 |
+pkg_pretend() { |
156 |
+ check-reqs_pkg_pretend |
157 |
+} |
158 |
+ |
159 |
+pkg_setup() { |
160 |
+ kde5_pkg_setup |
161 |
+ check-reqs_pkg_setup |
162 |
+} |
163 |
+ |
164 |
+src_prepare() { |
165 |
+ kde5_src_prepare |
166 |
+ |
167 |
+ if ! use test; then |
168 |
+ sed -e "/add_subdirectory( *benchmarks *)/s/^/#DONT/" \ |
169 |
+ -i libs/pigment/CMakeLists.txt || die |
170 |
+ fi |
171 |
+ |
172 |
+ # Unconditionally disable deprecated deps (required by QtQuick1) |
173 |
+ punt_bogus_dep Qt5 Declarative |
174 |
+ punt_bogus_dep Qt5 OpenGL |
175 |
+ |
176 |
+ # Hack around the excessive use of CMake macros |
177 |
+ if use okular && ! use calligra_features_words; then |
178 |
+ sed -i -e "/add_subdirectory( *okularodtgenerator *)/ s/^/#DONT/" \ |
179 |
+ extras/CMakeLists.txt || die "Failed to disable OKULAR_GENERATOR_ODT" |
180 |
+ fi |
181 |
+ |
182 |
+ if use okular && ! use calligra_features_stage; then |
183 |
+ sed -i -e "/add_subdirectory( *okularodpgenerator *)/ s/^/#DONT/" \ |
184 |
+ extras/CMakeLists.txt || die "Failed to disable OKULAR_GENERATOR_ODP" |
185 |
+ fi |
186 |
+} |
187 |
+ |
188 |
+src_configure() { |
189 |
+ local cal_ft myproducts |
190 |
+ |
191 |
+ # applications |
192 |
+ for cal_ft in ${CAL_FTS[@]}; do |
193 |
+ use calligra_features_${cal_ft} && myproducts+=( "${cal_ft^^}" ) |
194 |
+ done |
195 |
+ |
196 |
+ use lcms && myproducts+=( PLUGIN_COLORENGINES ) |
197 |
+ use spacenav && myproducts+=( PLUGIN_SPACENAVIGATOR ) |
198 |
+ |
199 |
+ local mycmakeargs=( |
200 |
+ -DPACKAGERS_BUILD=OFF |
201 |
+ -DRELEASE_BUILD=ON |
202 |
+ -DWITH_Iconv=ON |
203 |
+ -DPRODUCTSET="${myproducts[*]}" |
204 |
+ $(cmake-utils_use_find_package activities KF5Activities) |
205 |
+ $(cmake-utils_use_find_package charts KChart) |
206 |
+ -DWITH_Qca-qt5=$(usex crypt) |
207 |
+ -DWITH_Fontconfig=$(usex fontconfig) |
208 |
+ $(cmake-utils_use_find_package gemini Libgit2) |
209 |
+ $(cmake-utils_use_find_package gemini Qt5QuickWidgets) |
210 |
+ -DWITH_GSL=$(usex gsl) |
211 |
+ -DWITH_LibEtonyek=$(usex import-filter) |
212 |
+ -DWITH_LibOdfGen=$(usex import-filter) |
213 |
+ -DWITH_LibRevenge=$(usex import-filter) |
214 |
+ -DWITH_LibVisio=$(usex import-filter) |
215 |
+ -DWITH_LibWpd=$(usex import-filter) |
216 |
+ -DWITH_LibWpg=$(usex import-filter) |
217 |
+ -DWITH_LibWps=$(usex import-filter) |
218 |
+ $(cmake-utils_use_find_package phonon Phonon4Qt5) |
219 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_KF5CalendarCore=ON |
220 |
+ -DWITH_LCMS2=$(usex lcms) |
221 |
+ -DWITH_Okular5=$(usex okular) |
222 |
+ -DWITH_OpenEXR=$(usex openexr) |
223 |
+ -DWITH_Poppler=$(usex pdf) |
224 |
+ -DWITH_Eigen3=$(usex calligra_features_sheets) |
225 |
+ -DBUILD_UNMAINTAINED=$(usex calligra_features_stage) |
226 |
+ -ENABLE_CSTESTER_TESTING=$(usex test) |
227 |
+ -DWITH_Freetype=$(usex truetype) |
228 |
+ ) |
229 |
+ |
230 |
+ kde5_src_configure |
231 |
+} |
232 |
|
233 |
diff --git a/app-office/calligra/metadata.xml b/app-office/calligra/metadata.xml |
234 |
index d5fb30da6eb..6fda5aa811c 100644 |
235 |
--- a/app-office/calligra/metadata.xml |
236 |
+++ b/app-office/calligra/metadata.xml |
237 |
@@ -11,7 +11,7 @@ |
238 |
</maintainer> |
239 |
<use> |
240 |
<flag name="activities">Enable kactivities support</flag> |
241 |
- <flag name="charts">Build chartshape plugin for creating business charts with <pkg>dev-libs/kreport</pkg></flag> |
242 |
+ <flag name="charts">Build chartshape plugin for creating business charts with <pkg>dev-libs/kdiagram</pkg></flag> |
243 |
<flag name="gemini">Enable tablet and 2:1 devices support</flag> |
244 |
<flag name="import-filter">Enable support for various import filter file formats like WordPerfect, Visio and Apple Keynote</flag> |
245 |
<flag name="lcms">Build colorengine plugins using <pkg>media-libs/lcms</pkg></flag> |