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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20