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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sun Apr 8 13:39:59 2012 UTC (2 years, 4 months ago) by dilfridge
Branch: MAIN
Changes since 1.4: +3 -1 lines
Fix build with -semantic-desktop, bug 409515

(Portage version: 2.1.10.56/cvs/Linux x86_64)

1 dilfridge 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 dilfridge 1.5 # $Header: /var/cvsroot/gentoo-x86/app-office/calligra/calligra-2.4.0.ebuild,v 1.4 2012/04/08 09:45:31 dilfridge Exp $
4 dilfridge 1.1
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 dilfridge 1.4 EGIT_BRANCH="calligra/2.4"
10    
11 dilfridge 1.1 EAPI=4
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
22    
23     DESCRIPTION="KDE Office Suite"
24     HOMEPAGE="http://www.calligra-suite.org/"
25 dilfridge 1.3 [[ ${PV} == *9999 ]] || SRC_URI="mirror://kde/stable/${P}/${P}.tar.bz2"
26 dilfridge 1.1
27     LICENSE="GPL-2"
28     SLOT="4"
29 dilfridge 1.3 [[ ${PV} == *9999 ]] || KEYWORDS="~amd64 ~x86"
30 dilfridge 1.1 IUSE="attica +crypt +eigen +exif fftw +fontconfig freetds +gif glew +glib +gsf
31     gsl +iconv +jpeg jpeg2k +kdcraw kdepim +lcms marble mysql +mso +okular openctl openexr
32     +pdf postgres +semantic-desktop +ssl sybase test tiff +threads +truetype
33     +wmf word-perfect xbase +xml +xslt"
34    
35     # please do not sort here, order is same as in CMakeLists.txt
36     CAL_FTS="kexi words flow plan stage sheets krita karbon braindump"
37     for cal_ft in ${CAL_FTS}; do
38     IUSE+=" calligra_features_${cal_ft}"
39     done
40     unset cal_ft
41    
42     REQUIRED_USE="
43     calligra_features_kexi? ( calligra_features_sheets )
44     calligra_features_words? ( calligra_features_sheets )
45     calligra_features_krita? ( eigen exif lcms )
46     calligra_features_plan? ( kdepim semantic-desktop )
47     calligra_features_sheets? ( eigen )
48     test? ( calligra_features_karbon )
49     "
50    
51     RDEPEND="
52     !app-office/karbon
53     !app-office/kexi
54     !app-office/koffice-data
55     !app-office/koffice-l10n
56     !app-office/koffice-libs
57     !app-office/koffice-meta
58     !app-office/kplato
59     !app-office/kpresenter
60     !app-office/krita
61     !app-office/kspread
62     !app-office/kword
63     dev-lang/perl
64     dev-libs/boost
65     dev-libs/libxml2
66     $(add_kdebase_dep knewstuff)
67     media-libs/libpng
68     sys-libs/zlib
69     >=x11-libs/qt-gui-4.8.1-r1
70     attica? ( dev-libs/libattica )
71     crypt? ( app-crypt/qca:2 )
72     eigen? ( dev-cpp/eigen:2 )
73     exif? ( media-gfx/exiv2 )
74     fftw? ( sci-libs/fftw:3.0 )
75     fontconfig? ( media-libs/fontconfig )
76     freetds? ( dev-db/freetds )
77     gif? ( media-libs/giflib )
78     glew? ( media-libs/glew )
79     glib? ( dev-libs/glib:2 )
80     gsf? ( gnome-extra/libgsf )
81     gsl? ( sci-libs/gsl )
82     iconv? ( virtual/libiconv )
83     jpeg? ( virtual/jpeg )
84     jpeg2k? ( media-libs/openjpeg )
85     kdcraw? ( $(add_kdebase_dep libkdcraw) )
86     kdepim? ( $(add_kdebase_dep kdepimlibs) )
87     lcms? ( media-libs/lcms:2 )
88     marble? ( $(add_kdebase_dep marble) )
89     mysql? ( virtual/mysql )
90     okular? ( $(add_kdebase_dep okular) )
91     openctl? ( >=media-libs/opengtl-0.9.15 )
92     openexr? ( media-libs/openexr )
93     pdf? (
94     app-text/poppler
95     media-gfx/pstoedit
96     )
97     postgres? (
98     dev-db/postgresql-base
99     =dev-libs/libpqxx-3*
100     )
101     semantic-desktop? ( dev-libs/soprano $(add_kdebase_dep kdelibs semantic-desktop) )
102     ssl? ( dev-libs/openssl )
103     sybase? ( dev-db/freetds )
104     tiff? ( media-libs/tiff )
105     truetype? ( media-libs/freetype:2 )
106     word-perfect? (
107     app-text/libwpd
108     app-text/libwps
109     app-text/libwpg
110     )
111     xbase? ( dev-db/xbase )
112     xslt? ( dev-libs/libxslt )
113     calligra_features_kexi? (
114     >=dev-db/sqlite-3.7.9:3[extensions]
115     dev-libs/icu
116     )
117     "
118     DEPEND="${RDEPEND}"
119    
120 dilfridge 1.5 PATCHES=( "${FILESDIR}/${PN}-2.4.0-rdf.patch" )
121    
122 dilfridge 1.1 RESTRICT=test
123     # bug 394273
124    
125     src_configure() {
126     local cal_ft
127    
128     # first write out things we want to hard-enable
129     local mycmakeargs=(
130     "-DWITH_Boost=ON"
131     "-DWITH_LibXml2=ON"
132     "-DWITH_PNG=ON"
133     "-DWITH_ZLIB=ON"
134     "-DGHNS=ON"
135     "-DWITH_X11=ON"
136     "-DWITH_Qt4=ON"
137     "-DQT3SUPPORT=ON" # kde4-base.eclass pulls this in anyway
138     )
139    
140     # default disablers
141     mycmakeargs+=(
142 dilfridge 1.4 "-DBUILD_mobile=OFF" # we dont support mobile gui, maybe arm could
143     "-DBUILD_active=OFF" # we dont support active gui, maybe arm could
144     "-DWITH_LCMS=OFF" # we use lcms:2
145 dilfridge 1.1 "-DCREATIVEONLY=OFF"
146     "-DWITH_TINY=OFF"
147     "-DWITH_CreateResources=OFF" # NOT PACKAGED: http://create.freedesktop.org/
148     "-DWITH_DCMTK=OFF" # NOT PACKAGED: http://www.dcmtk.org/dcmtk.php.en
149     "-DWITH_Spnav=OFF" # NOT PACKAGED: http://spacenav.sourceforge.net/
150     )
151    
152     # regular options
153     mycmakeargs+=(
154     $(cmake-utils_use_with attica LibAttica)
155     $(cmake-utils_use_with crypt QCA2)
156     $(cmake-utils_use_with eigen Eigen2)
157     $(cmake-utils_use_with exif Exiv2)
158     $(cmake-utils_use_with fftw FFTW3)
159     $(cmake-utils_use_with fontconfig Fontconfig)
160     $(cmake-utils_use_with freetds FreeTDS)
161     $(cmake-utils_use_with gif GIF2)
162     $(cmake-utils_use_with glew GLEW)
163     $(cmake-utils_use_with glib GLIB2)
164     $(cmake-utils_use_with glib GObject)
165     $(cmake-utils_use_with gsf LIBGSF)
166     $(cmake-utils_use_with gsl GSL)
167     $(cmake-utils_use_with iconv Iconv)
168     $(cmake-utils_use_with jpeg JPEG)
169     $(cmake-utils_use_with jpeg2k OpenJPEG)
170     $(cmake-utils_use_with kdcraw Kdcraw)
171     $(cmake-utils_use_with kdepim KdepimLibs)
172     $(cmake-utils_use_with lcms LCMS2)
173     $(cmake-utils_use_with marble Marble)
174     $(cmake-utils_use_with mysql MySQL)
175     $(cmake-utils_use_with okular Okular)
176     $(cmake-utils_use_with openctl OpenCTL)
177     $(cmake-utils_use_with openexr OpenEXR)
178     $(cmake-utils_use_with opengl OpenGL)
179     $(cmake-utils_use_with pdf Poppler)
180     $(cmake-utils_use_with pdf Pstoedit)
181     $(cmake-utils_use_with postgres PostgreSQL)
182     $(cmake-utils_use_with semantic-desktop Soprano)
183     $(cmake-utils_use semantic-desktop NEPOMUK)
184     $(cmake-utils_use_with ssl OpenSSL)
185     $(cmake-utils_use_with sybase FreeTDS)
186     $(cmake-utils_use_with tiff TIFF)
187     $(cmake-utils_use_with threads Threads)
188     $(cmake-utils_use_with truetype Freetype)
189     $(cmake-utils_use_with word-perfect WPD)
190     $(cmake-utils_use_with word-perfect WPG)
191     $(cmake-utils_use_with xbase XBase)
192     $(cmake-utils_use_with xslt LibXslt)
193     $(cmake-utils_use_build wmf libkowmf)
194     $(cmake-utils_use_build mso libmsooxml)
195     )
196    
197     # applications
198     for cal_ft in ${CAL_FTS}; do
199     mycmakeargs+=( $(cmake-utils_use_build calligra_features_${cal_ft} ${cal_ft}) )
200     done
201     mycmakeargs+=( $(cmake-utils_use_build test cstester) )
202    
203     # filters
204    
205     kde4-base_src_configure
206     }

  ViewVC Help
Powered by ViewVC 1.1.20