blob: 31813b1764947cec819297d3e9ea7f0e63e4b319 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# note: files that need to be checked for dependencies etc:
# CMakeLists.txt, kexi/CMakeLists.txt kexi/migration/CMakeLists.txt
# krita/CMakeLists.txt
EAPI=6
CHECKREQS_DISK_BUILD="4G"
KDE_HANDBOOK="optional"
KDE_LINGUAS_LIVE_OVERRIDE="true"
OPENGL_REQUIRED="optional"
WEBKIT_REQUIRED="optional"
inherit check-reqs kde4-base
DESCRIPTION="KDE Office Suite"
HOMEPAGE="https://calligra.org/"
SRC_URI="mirror://kde/stable/${P}/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="4"
KEYWORDS="amd64 x86"
IUSE="color-management +crypt +eigen +exif fftw +fontconfig freetds +glew +glib
+gsf gsl import-filter +jpeg +lcms mysql openexr +pdf +pim
postgres spacenav sybase test tiff +threads +truetype +xml"
# Don't use Active, it's broken on desktops.
CAL_FTS="author braindump flow gemini karbon kexi krita plan sheets stage words"
for cal_ft in ${CAL_FTS}; do
IUSE+=" calligra_features_${cal_ft}"
done
unset cal_ft
REQUIRED_USE="
|| ( $(printf 'calligra_features_%s ' ${CAL_FTS[@]}) )
calligra_features_author? ( calligra_features_words )
calligra_features_gemini? ( opengl )
calligra_features_krita? ( eigen exif lcms opengl )
calligra_features_plan? ( pim )
calligra_features_sheets? ( eigen )
calligra_features_stage? ( webkit )
test? ( calligra_features_karbon )
"
RDEPEND="
dev-lang/perl
dev-libs/boost:=
dev-qt/qtcore:4[exceptions]
media-libs/libpng:0=
sys-libs/zlib
virtual/libiconv
color-management? ( media-libs/opencolorio )
crypt? ( app-crypt/qca:2-qt4 )
eigen? ( dev-cpp/eigen:3 )
exif? ( media-gfx/exiv2:= )
fftw? ( sci-libs/fftw:3.0 )
fontconfig? ( media-libs/fontconfig )
freetds? ( dev-db/freetds )
glib? ( dev-libs/glib:2 )
gsf? ( gnome-extra/libgsf )
gsl? ( sci-libs/gsl:= )
import-filter? (
app-text/libetonyek
app-text/libodfgen
app-text/libwpd:*
app-text/libwpg:*
app-text/libwps
dev-libs/librevenge
media-libs/libvisio
)
jpeg? ( virtual/jpeg:0 )
lcms? (
media-libs/lcms:2
x11-libs/libX11
)
mysql? ( virtual/mysql )
openexr? ( media-libs/openexr:= )
opengl? (
media-libs/glew:0
virtual/glu
)
pdf? (
app-text/poppler:0-qt4=
media-gfx/pstoedit
)
pim? ( $(add_kdeapps_dep kdepimlibs) )
postgres? (
dev-db/postgresql:*
dev-libs/libpqxx
)
spacenav? ( dev-libs/libspnav )
sybase? ( dev-db/freetds )
tiff? ( media-libs/tiff:0 )
truetype? ( media-libs/freetype:2 )
calligra_features_kexi? (
dev-db/sqlite:3[extensions(+)]
dev-libs/icu:=
)
calligra_features_krita? (
dev-qt/qtdeclarative:4
net-misc/curl
x11-libs/libX11
x11-libs/libXi
)
calligra_features_words? ( dev-libs/libxslt )
"
DEPEND="${RDEPEND}
x11-misc/shared-mime-info
"
PDEPEND=">=app-office/calligra-l10n-2.9:4"
# bug 394273
RESTRICT=test
PATCHES=(
"${FILESDIR}"/${PN}-2.9.1-no-arch-detection.patch
"${FILESDIR}"/${P}-postgresql-9.6.patch
"${FILESDIR}"/${P}-libwps-0.4.patch
"${FILESDIR}"/${P}-slotted-popplerqt4.patch
)
pkg_pretend() {
check-reqs_pkg_pretend
}
pkg_setup() {
kde4-base_pkg_setup
check-reqs_pkg_setup
}
src_prepare() {
kde4-base_src_prepare
if ! use webkit; then
sed -i CMakeLists.txt -e "/^find_package/ s/QtWebKit //" || die
fi
}
src_configure() {
local cal_ft myproducts
# applications
for cal_ft in ${CAL_FTS}; do
use calligra_features_${cal_ft} && myproducts+=( "${cal_ft^^}" )
done
local mycmakeargs=( -DPRODUCTSET="${myproducts[*]}" )
# regular options
mycmakeargs+=(
-DCREATIVEONLY=OFF
-DPACKAGERS_BUILD=OFF
-DWITH_Soprano=OFF
-DWITH_KActivities=OFF
-DWITH_CalligraMarble=OFF
-DWITH_Iconv=ON
-DWITH_Vc=OFF
-DWITH_XBase=OFF
-DWITH_OCIO=$(usex color-management)
-DWITH_QCA2=$(usex crypt)
-DWITH_Eigen3=$(usex eigen)
-DWITH_Exiv2=$(usex exif)
-DWITH_FFTW3=$(usex fftw)
-DWITH_Fontconfig=$(usex fontconfig)
-DWITH_FreeTDS=$(usex freetds)
-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_JPEG=$(usex jpeg)
-DWITH_OpenJPEG=OFF
-DWITH_Kdcraw=OFF
-DWITH_LCMS2=$(usex lcms)
-DWITH_MySQL=$(usex mysql)
-DWITH_Okular=OFF
-DWITH_OpenEXR=$(usex openexr)
-DUSEOPENGL=$(usex opengl)
-DWITH_Poppler=$(usex pdf)
-DWITH_Pstoedit=$(usex pdf)
-DWITH_KdepimLibs=$(usex pim)
-DWITH_CalligraPostgreSQL=$(usex postgres)
-DWITH_Spnav=$(usex spacenav)
-DWITH_FreeTDS=$(usex sybase)
-DWITH_Threads=$(usex threads)
-DWITH_TIFF=$(usex tiff)
-DWITH_Freetype=$(usex truetype)
)
use test && mycmakeargs+=( -DENABLE_CSTESTER_TESTING=$(usex test) )
kde4-base_src_configure
}
src_install() {
kde4-base_src_install
# bug 613414
QA_DT_NEEDED="usr/lib64/libkoversion.so.14.0.0"
}
|