Gentoo Archives: gentoo-commits

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