/[gentoo-x86]/app-office/calligra/calligra-2.5.49.9999.ebuild
Gentoo

Contents of /app-office/calligra/calligra-2.5.49.9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Sep 21 07:16:55 2012 UTC (22 months ago) by johu
Branch: MAIN
Changes since 1.2: +2 -1 lines
Add virtual/glu wrt bug #435108.

(Portage version: 2.2.0_alpha129/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/calligra/calligra-2.5.49.9999.ebuild,v 1.2 2012/09/13 19:36:29 scarabeus Exp $
4
5 # note: files that need to be checked for dependencies etc:
6 # CMakeLists.txt, kexi/CMakeLists.txt kexi/migration/CMakeLists.txt
7 # krita/CMakeLists.txt
8
9 EAPI=4
10
11 EGIT_BRANCH="calligra/2.5"
12
13 KDE_SCM=git
14 KDE_MINIMAL=4.6.4
15 QT_MINIMAL=4.8.1
16 OPENGL_REQUIRED=optional
17
18 KDE_HANDBOOK=optional
19
20 KDE_LINGUAS_LIVE_OVERRIDE=true
21 inherit kde4-base versionator
22
23 DESCRIPTION="KDE Office Suite"
24 HOMEPAGE="http://www.calligra.org/"
25
26 case ${PV} in
27 2.[456789].[789]?)
28 # beta or rc releases
29 SRC_URI="mirror://kde/unstable/${P}/${P}.tar.bz2" ;;
30 2.[456789].?)
31 # stable releases
32 SRC_URI="mirror://kde/stable/${P}/${P}.tar.bz2" ;;
33 2.[456789].9999)
34 # stable branch live ebuild
35 SRC_URI="" ;;
36 9999)
37 # master branch live ebuild
38 SRC_URI="" ;;
39 esac
40
41 LICENSE="GPL-2"
42 SLOT="4"
43
44 [[ ${PV} == *9999 ]] || KEYWORDS="~amd64 ~x86"
45
46 IUSE="attica +crypt +eigen +exif fftw +fontconfig freetds +gif glew +glib +gsf
47 gsl +jpeg jpeg2k +kdcraw kdepim +lcms marble mysql +okular opengtl openexr
48 +pdf postgres +semantic-desktop spacenav +ssl sybase test tiff +threads +truetype
49 word-perfect xbase +xml +xslt"
50
51 # please do not sort here, order is same as in CMakeLists.txt
52 CAL_FTS="kexi words flow plan stage sheets krita karbon braindump"
53 for cal_ft in ${CAL_FTS}; do
54 IUSE+=" calligra_features_${cal_ft}"
55 done
56 unset cal_ft
57
58 REQUIRED_USE="
59 calligra_features_kexi? ( calligra_features_sheets )
60 calligra_features_words? ( calligra_features_sheets )
61 calligra_features_krita? ( eigen exif lcms )
62 calligra_features_plan? ( kdepim semantic-desktop )
63 calligra_features_sheets? ( eigen )
64 test? ( calligra_features_karbon )
65 "
66
67 RDEPEND="
68 !app-office/karbon
69 !app-office/kexi
70 !app-office/koffice-data
71 !app-office/koffice-l10n
72 !app-office/koffice-libs
73 !app-office/koffice-meta
74 !app-office/kplato
75 !app-office/kpresenter
76 !app-office/krita
77 !app-office/kspread
78 !app-office/kword
79 dev-lang/perl
80 dev-libs/boost
81 dev-libs/libxml2
82 $(add_kdebase_dep knewstuff)
83 media-libs/libpng
84 sys-libs/zlib
85 >=x11-libs/qt-gui-4.8.1-r1:4
86 virtual/libiconv
87 attica? ( dev-libs/libattica )
88 crypt? ( app-crypt/qca:2 )
89 eigen? ( dev-cpp/eigen:2 )
90 exif? ( media-gfx/exiv2 )
91 fftw? ( sci-libs/fftw:3.0 )
92 fontconfig? ( media-libs/fontconfig )
93 freetds? ( dev-db/freetds )
94 gif? ( media-libs/giflib )
95 glew? ( media-libs/glew )
96 glib? ( dev-libs/glib:2 )
97 gsf? ( gnome-extra/libgsf )
98 gsl? ( sci-libs/gsl )
99 jpeg? ( virtual/jpeg )
100 jpeg2k? ( media-libs/openjpeg )
101 kdcraw? ( $(add_kdebase_dep libkdcraw) )
102 kdepim? ( $(add_kdebase_dep kdepimlibs 'semantic-desktop') )
103 lcms? ( media-libs/lcms:2 )
104 marble? ( $(add_kdebase_dep marble) )
105 mysql? ( virtual/mysql )
106 okular? ( $(add_kdebase_dep okular) )
107 opengl? ( virtual/glu )
108 opengtl? ( >=media-libs/opengtl-0.9.15 )
109 openexr? ( media-libs/openexr )
110 pdf? (
111 app-text/poppler
112 media-gfx/pstoedit
113 )
114 postgres? (
115 dev-db/postgresql-base
116 dev-libs/libpqxx
117 )
118 semantic-desktop? ( dev-libs/soprano $(add_kdebase_dep kdelibs semantic-desktop) )
119 spacenav? ( dev-libs/libspnav )
120 ssl? ( dev-libs/openssl )
121 sybase? ( dev-db/freetds )
122 tiff? ( media-libs/tiff )
123 truetype? ( media-libs/freetype:2 )
124 word-perfect? (
125 app-text/libwpd
126 app-text/libwps
127 app-text/libwpg
128 )
129 xbase? ( dev-db/xbase )
130 xslt? ( dev-libs/libxslt )
131 calligra_features_kexi? (
132 >=dev-db/sqlite-3.7.9:3[extensions]
133 dev-libs/icu
134 )
135 "
136 DEPEND="${RDEPEND}"
137
138 [[ ${PV} == 9999 ]] && LANGVERSION="2.4" || LANGVERSION="$(get_version_component_range 1-2)"
139 PDEPEND=">=app-office/calligra-l10n-${LANGVERSION}"
140
141 RESTRICT=test
142 # bug 394273
143
144 src_configure() {
145 local cal_ft
146
147 # first write out things we want to hard-enable
148 local mycmakeargs=(
149 "-DIHAVEPATCHEDQT=ON"
150 "-DWITH_Boost=ON"
151 "-DWITH_LibXml2=ON"
152 "-DWITH_PNG=ON"
153 "-DWITH_ZLIB=ON"
154 "-DGHNS=ON"
155 "-DWITH_X11=ON"
156 "-DWITH_Qt4=ON"
157 "-DBUILD_libmsooxml=ON" # only internal code, no deps
158 "-DWITH_Iconv=ON" # available on all supported arches and many more
159 "-DQT3SUPPORT=ON" # kde4-base.eclass pulls this in anyway
160 )
161
162 # default disablers
163 mycmakeargs+=(
164 "-DBUILD_mobile=OFF" # we dont support mobile gui, maybe arm could
165 "-DBUILD_active=OFF" # we dont support active gui, maybe arm could
166 "-DWITH_LCMS=OFF" # we use lcms:2
167 "-DCREATIVEONLY=OFF"
168 "-DWITH_TINY=OFF"
169 "-DWITH_CreateResources=OFF" # NOT PACKAGED: http://create.freedesktop.org/
170 "-DWITH_DCMTK=OFF" # NOT PACKAGED: http://www.dcmtk.org/dcmtk.php.en
171 )
172
173 # regular options
174 mycmakeargs+=(
175 $(cmake-utils_use_with attica LibAttica)
176 $(cmake-utils_use_with crypt QCA2)
177 $(cmake-utils_use_with eigen Eigen2)
178 $(cmake-utils_use_with exif Exiv2)
179 $(cmake-utils_use_with fftw FFTW3)
180 $(cmake-utils_use_with fontconfig Fontconfig)
181 $(cmake-utils_use_with freetds FreeTDS)
182 $(cmake-utils_use_with gif GIF2)
183 $(cmake-utils_use_with glew GLEW)
184 $(cmake-utils_use_with glib GLIB2)
185 $(cmake-utils_use_with glib GObject)
186 $(cmake-utils_use_with gsf LIBGSF)
187 $(cmake-utils_use_with gsl GSL)
188 $(cmake-utils_use_with jpeg JPEG)
189 $(cmake-utils_use_with jpeg2k OpenJPEG)
190 $(cmake-utils_use_with kdcraw Kdcraw)
191 $(cmake-utils_use_with kdepim KdepimLibs)
192 $(cmake-utils_use_with lcms LCMS2)
193 $(cmake-utils_use_with marble Marble)
194 $(cmake-utils_use_with mysql MySQL)
195 $(cmake-utils_use_build mysql mySQL)
196 $(cmake-utils_use_with okular Okular)
197 $(cmake-utils_use_with opengtl OpenCTL)
198 $(cmake-utils_use_with openexr OpenEXR)
199 $(cmake-utils_use_with opengl OpenGL)
200 $(cmake-utils_use_with pdf Poppler)
201 $(cmake-utils_use_with pdf Pstoedit)
202 $(cmake-utils_use_with postgres PostgreSQL)
203 $(cmake-utils_use_build postgres pqxx)
204 $(cmake-utils_use_with semantic-desktop Soprano)
205 $(cmake-utils_use semantic-desktop NEPOMUK)
206 $(cmake-utils_use_with spacenav Spnav)
207 $(cmake-utils_use_with ssl OpenSSL)
208 $(cmake-utils_use_with sybase FreeTDS)
209 $(cmake-utils_use_build sybase sybase)
210 $(cmake-utils_use_with tiff TIFF)
211 $(cmake-utils_use_with threads Threads)
212 $(cmake-utils_use_with truetype Freetype)
213 $(cmake-utils_use_with word-perfect WPD)
214 $(cmake-utils_use_with word-perfect WPG)
215 $(cmake-utils_use_with xbase XBase)
216 $(cmake-utils_use_build xbase xbase)
217 $(cmake-utils_use_with xslt LibXslt)
218 )
219
220 # applications
221 for cal_ft in ${CAL_FTS}; do
222 mycmakeargs+=( $(cmake-utils_use_build calligra_features_${cal_ft} ${cal_ft}) )
223 done
224 mycmakeargs+=( $(cmake-utils_use_build test cstester) )
225
226 # filters
227
228 kde4-base_src_configure
229 }

  ViewVC Help
Powered by ViewVC 1.1.20