1 |
commit: f6f3a9e5ac9ecaa6afdc91ea4bea4bb47ef54200 |
2 |
Author: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 5 16:46:49 2011 +0000 |
4 |
Commit: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 5 16:47:11 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=f6f3a9e5 |
7 |
|
8 |
[app-office/calligra] Add initial calligra ebuild. TODO: BUID_x for optional building specified parts like words/kexi |
9 |
|
10 |
--- |
11 |
app-office/calligra/calligra-9999.ebuild | 135 ++++++++++++++++++++++++++++++ |
12 |
app-office/calligra/metadata.xml | 5 + |
13 |
2 files changed, 140 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/app-office/calligra/calligra-9999.ebuild b/app-office/calligra/calligra-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..a37d6f7 |
18 |
--- /dev/null |
19 |
+++ b/app-office/calligra/calligra-9999.ebuild |
20 |
@@ -0,0 +1,135 @@ |
21 |
+# Copyright 1999-2011 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Header: $ |
24 |
+ |
25 |
+EAPI=4 |
26 |
+ |
27 |
+KDE_SCM=git |
28 |
+KDE_MINIMAL=4.6 |
29 |
+OPENGL_REQUIRED=optional |
30 |
+inherit kde4-base |
31 |
+ |
32 |
+DESCRIPTION="KDE Office Suite" |
33 |
+HOMEPAGE="http://www.calligra-suite.org/" |
34 |
+ |
35 |
+LICENSE="GPL-2" |
36 |
+SLOT="4" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="boost crypt eigen exif fftw fontconfig freetds gif glew glib gsf gsl |
39 |
+iconv jpeg jpeg2k +kdcraw kdepim lcms mysql +okular openctl openexr png |
40 |
++poppler postgres pstoedit semantic-desktop ssl tiff threads truetype |
41 |
+word-perfect xml xslt" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ !app-office/koffice-libs |
45 |
+ dev-db/sqlite:3 |
46 |
+ dev-lang/perl |
47 |
+ dev-libs/libxml2 |
48 |
+ $(add_kdebase_dep knewstuff) |
49 |
+ sys-libs/zlib |
50 |
+ boost? ( dev-libs/boost ) |
51 |
+ crypt? ( app-crypt/qca:2 ) |
52 |
+ eigen? ( dev-cpp/eigen ) |
53 |
+ exif? ( media-gfx/exiv2 ) |
54 |
+ fftw? ( sci-libs/fftw:3 ) |
55 |
+ fontconfig? ( media-libs/fontconfig ) |
56 |
+ freetds? ( dev-db/freetds ) |
57 |
+ gif? ( media-libs/giflib ) |
58 |
+ glew? ( media-libs/glew ) |
59 |
+ glib? ( dev-libs/glib:2 ) |
60 |
+ gsf? ( gnome-extra/libgsf ) |
61 |
+ gsl? ( sci-libs/gsl ) |
62 |
+ iconv? ( virtual/libiconv ) |
63 |
+ jpeg? ( virtual/jpeg ) |
64 |
+ jpeg2k? ( media-libs/openjpeg ) |
65 |
+ kdcraw? ( $(add_kdebase_dep libkdcraw) ) |
66 |
+ kdepim? ( $(add_kdebase_dep kdepimlibs) ) |
67 |
+ lcms? ( media-libs/lcms:2 ) |
68 |
+ mysql? ( virtual/mysql ) |
69 |
+ okular? ( $(add_kdebase_dep okular) ) |
70 |
+ openctl? ( >=media-libs/opengtl-0.9.15 ) |
71 |
+ openexr? ( media-libs/openexr ) |
72 |
+ png? ( media-libs/libpng ) |
73 |
+ poppler? ( app-text/poppler ) |
74 |
+ postgres? ( dev-db/postgresql-base ) |
75 |
+ pstoedit? ( media-gfx/pstoedit ) |
76 |
+ semantic-desktop? ( dev-libs/soprano ) |
77 |
+ ssl? ( dev-libs/openssl ) |
78 |
+ tiff? ( media-libs/tiff ) |
79 |
+ truetype? ( media-libs/freetype:2 ) |
80 |
+ word-perfect? ( |
81 |
+ app-text/libwpd |
82 |
+ app-text/libwps |
83 |
+ media-libs/libwpg |
84 |
+ ) |
85 |
+ xslt? ( dev-libs/libxslt ) |
86 |
+" |
87 |
+DEPEND="${RDEPEND}" |
88 |
+ |
89 |
+src_configure() { |
90 |
+ # first write out things we want to hard-enable |
91 |
+ local mycmakeargs=( |
92 |
+ "-DWITH_LibXml2=ON" # harddep for few parts |
93 |
+ "-DWITH_ZLIB=ON" |
94 |
+ "-DGHNS=ON" |
95 |
+ "-DWITH_X11=ON" |
96 |
+ "-DWITH_Qt4=ON" |
97 |
+ ) |
98 |
+ |
99 |
+ # default disablers |
100 |
+ mycmakeargs+=( |
101 |
+ "-DWITH_LCMS=OFF" # we use lcms:2 |
102 |
+ "-DWITH_XBase=OFF" # i am not the one to support this |
103 |
+ "-DCREATIVEONLY=OFF" |
104 |
+ "-DWITH_TINY=OFF" |
105 |
+ "-DWITH_CreateResources=OFF" # NOT PACKAGED: http://create.freedesktop.org/ |
106 |
+ "-DWITH_DCMTK=OFF" # NOT PACKAGED: http://www.dcmtk.org/dcmtk.php.en |
107 |
+ "-DWITH_Spnav=OFF" # NOT PACKAGED: http://spacenav.sourceforge.net/ |
108 |
+ ) |
109 |
+ |
110 |
+ # regular options |
111 |
+ mycmakeargs+=( |
112 |
+ $(cmake-utils_use_with boost Boost) |
113 |
+ $(cmake-utils_use_with crypt QCA2) |
114 |
+ $(cmake-utils_use_with eigen Eigen2) |
115 |
+ $(cmake-utils_use_with exif Exiv2) |
116 |
+ $(cmake-utils_use_with fftw FFTW3) |
117 |
+ $(cmake-utils_use_with fontconfig Fontconfig) |
118 |
+ $(cmake-utils_use_with freetds FreeTDS) |
119 |
+ $(cmake-utils_use_with gif GIF2) |
120 |
+ $(cmake-utils_use_with glew GLEW) |
121 |
+ $(cmake-utils_use_with glib GLIB2) |
122 |
+ $(cmake-utils_use_with glib GObject) |
123 |
+ $(cmake-utils_use_with gsf LIBGSF) |
124 |
+ $(cmake-utils_use_with gsl GSL) |
125 |
+ $(cmake-utils_use_with iconv Iconv) |
126 |
+ $(cmake-utils_use_with jpeg JPEG) |
127 |
+ $(cmake-utils_use_with jpeg2k OpenJPEG) |
128 |
+ $(cmake-utils_use_with kdcraw Kdcraw) |
129 |
+ $(cmake-utils_use_with kdepim KdepimLibs) |
130 |
+ $(cmake-utils_use_with lcms LCMS2) |
131 |
+ $(cmake-utils_use_with mysql MySQL) |
132 |
+ $(cmake-utils_use_with okular Okular) |
133 |
+ $(cmake-utils_use_with openctl OpenCTL) |
134 |
+ $(cmake-utils_use_with openexr OpenEXR) |
135 |
+ $(cmake-utils_use_with opengl OpenGL) |
136 |
+ $(cmake-utils_use_with png PNG) |
137 |
+ $(cmake-utils_use_with poppler Poppler) |
138 |
+ $(cmake-utils_use_with postgres PostgreSQL) |
139 |
+ $(cmake-utils_use_with pstoedit Pstoedit) |
140 |
+ $(cmake-utils_use_with semantic-desktop Soprano) |
141 |
+ $(cmake-utils_use_with ssl OpenSSL) |
142 |
+ $(cmake-utils_use_with tiff TIFF) |
143 |
+ $(cmake-utils_use_with threads Threads) |
144 |
+ $(cmake-utils_use_with truetype Freetype) |
145 |
+ $(cmake-utils_use_with word-perfect WPD) |
146 |
+ $(cmake-utils_use_with word-perfect WPG) |
147 |
+ $(cmake-utils_use_with xslt LibXslt) |
148 |
+ ) |
149 |
+ |
150 |
+ # applications |
151 |
+ |
152 |
+ # filters |
153 |
+ |
154 |
+ kde4-base_src_configure |
155 |
+} |
156 |
|
157 |
diff --git a/app-office/calligra/metadata.xml b/app-office/calligra/metadata.xml |
158 |
new file mode 100644 |
159 |
index 0000000..a23f444 |
160 |
--- /dev/null |
161 |
+++ b/app-office/calligra/metadata.xml |
162 |
@@ -0,0 +1,5 @@ |
163 |
+<?xml version="1.0" encoding="UTF-8"?> |
164 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
165 |
+<pkgmetadata> |
166 |
+ <herd>kde</herd> |
167 |
+</pkgmetadata> |