Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/pykde4/, kde-base/kdebindings-meta/, kde-base/kdebindings-ruby/, ...
Date: Mon, 30 May 2011 20:36:48
Message-Id: 27fa0afd9f36b95d11036673eb2cb9f26c51304a.alexxy@gentoo
1 commit: 27fa0afd9f36b95d11036673eb2cb9f26c51304a
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 20:34:40 2011 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 20:35:19 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=27fa0afd
7
8 [kde-base] Add kdebindings
9
10 ---
11 .../kdebindings-csharp-4.6.80.ebuild | 45 +++++++
12 .../kdebindings-meta-4.6.80.ebuild | 2 +-
13 .../kdebindings-perl-4.6.80.ebuild | 52 ++++++++
14 .../kdebindings-ruby-4.6.80.ebuild | 123 ++++++++++++++++++++
15 kde-base/krossjava/krossjava-4.6.80.ebuild | 68 +++++++++++
16 kde-base/krosspython/krosspython-4.6.80.ebuild | 26 ++++
17 kde-base/pykde4/pykde4-4.6.80.ebuild | 2 +-
18 kde-base/smoke/smoke-4.6.80.ebuild | 63 ++++++++++
19 8 files changed, 379 insertions(+), 2 deletions(-)
20
21 diff --git a/kde-base/kdebindings-csharp/kdebindings-csharp-4.6.80.ebuild b/kde-base/kdebindings-csharp/kdebindings-csharp-4.6.80.ebuild
22 new file mode 100644
23 index 0000000..713604a
24 --- /dev/null
25 +++ b/kde-base/kdebindings-csharp/kdebindings-csharp-4.6.80.ebuild
26 @@ -0,0 +1,45 @@
27 +# Copyright 1999-2011 Gentoo Foundation
28 +# Distributed under the terms of the GNU General Public License v2
29 +# $Header: $
30 +
31 +EAPI=4
32 +
33 +KMNAME="kdebindings"
34 +KMMODULE="csharp"
35 +inherit kde4-meta mono
36 +
37 +DESCRIPTION="C# bindings for KDE and Qt"
38 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
39 +IUSE="akonadi debug +phonon plasma qimageblitz qscintilla semantic-desktop webkit"
40 +
41 +DEPEND="
42 + dev-lang/mono
43 + $(add_kdebase_dep smoke 'akonadi?,phonon?,qimageblitz?,qscintilla?,semantic-desktop=,webkit?')
44 + semantic-desktop? ( >=dev-libs/soprano-2.4.64[clucene] )
45 +"
46 +RDEPEND="${DEPEND}"
47 +REQUIRED_USE="plasma? ( webkit )"
48 +
49 +KMEXTRACTONLY="
50 + smoke/
51 +"
52 +
53 +src_prepare() {
54 + kde4-meta_src_prepare
55 +
56 + sed -i "/add_subdirectory( examples )/ s:^:#:" csharp/plasma/CMakeLists.txt
57 +}
58 +
59 +src_configure() {
60 + mycmakeargs=(
61 + $(cmake-utils_use_disable akonadi)
62 + $(cmake-utils_use_disable phonon)
63 + $(cmake-utils_use_disable plasma)
64 + $(cmake-utils_use_disable qimageblitz QImageBlitz)
65 + $(cmake-utils_use_disable qscintilla QScintilla)
66 + $(cmake-utils_use_disable semantic-desktop Nepomuk)
67 + $(cmake-utils_use_disable semantic-desktop Soprano)
68 + $(cmake-utils_use_disable webkit QtWebKit)
69 + )
70 + kde4-meta_src_configure
71 +}
72
73 diff --git a/kde-base/kdebindings-meta/kdebindings-meta-4.6.80.ebuild b/kde-base/kdebindings-meta/kdebindings-meta-4.6.80.ebuild
74 index d51ae91..e0a07de 100644
75 --- a/kde-base/kdebindings-meta/kdebindings-meta-4.6.80.ebuild
76 +++ b/kde-base/kdebindings-meta/kdebindings-meta-4.6.80.ebuild
77 @@ -6,7 +6,7 @@ EAPI=4
78 inherit kde4-meta-pkg
79
80 DESCRIPTION="KDE bindings - merge this to pull in all kdebindings-derived packages"
81 -KEYWORDS="~amd64 ~ppc ~x86"
82 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
83 IUSE="csharp java perl python ruby"
84
85 RDEPEND="
86
87 diff --git a/kde-base/kdebindings-perl/kdebindings-perl-4.6.80.ebuild b/kde-base/kdebindings-perl/kdebindings-perl-4.6.80.ebuild
88 new file mode 100644
89 index 0000000..9f587c5
90 --- /dev/null
91 +++ b/kde-base/kdebindings-perl/kdebindings-perl-4.6.80.ebuild
92 @@ -0,0 +1,52 @@
93 +# Copyright 1999-2011 Gentoo Foundation
94 +# Distributed under the terms of the GNU General Public License v2
95 +# $Header: $
96 +
97 +EAPI=4
98 +
99 +KMNAME="kdebindings"
100 +KMMODULE="perl"
101 +DECLARATIVE_REQUIRED="optional"
102 +MULTIMEDIA_REQUIRED="optional"
103 +QTHELP_REQUIRED="optional"
104 +inherit kde4-meta
105 +
106 +DESCRIPTION="KDE Perl bindings"
107 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
108 +IUSE="akonadi attica debug kate okular phonon plasma qimageblitz qscintilla qwt semantic-desktop webkit"
109 +
110 +DEPEND="
111 + >=dev-lang/perl-5.10.1
112 + $(add_kdebase_dep smoke 'akonadi?,attica?,declarative?,kate?,multimedia?,okular?,phonon?,qimageblitz?,qscintilla?,qthelp?,qwt?,semantic-desktop=,webkit?')
113 + semantic-desktop? ( >=dev-libs/soprano-2.4.64 )
114 +"
115 +RDEPEND="${DEPEND}"
116 +
117 +KMLOADLIBS="smoke"
118 +
119 +KMEXTRACTONLY="
120 + smoke/
121 +"
122 +
123 +src_configure() {
124 + mycmakeargs=(
125 + -DDISABLE_Qt3Support=ON
126 + $(cmake-utils_use_with akonadi)
127 + $(cmake-utils_use_with akonadi KdepimLibs)
128 + $(cmake-utils_use_with attica LibAttica)
129 + $(cmake-utils_use_disable declarative QtDeclarative)
130 + $(cmake-utils_use_disable kate)
131 + $(cmake-utils_use_disable multimedia QtMultimedia)
132 + $(cmake-utils_use_with okular)
133 + $(cmake-utils_use_with phonon)
134 + $(cmake-utils_use_disable plasma)
135 + $(cmake-utils_use_with qimageblitz QImageBlitz)
136 + $(cmake-utils_use_with qscintilla QScintilla)
137 + $(cmake-utils_use_disable qthelp QtHelp)
138 + $(cmake-utils_use_disable qwt)
139 + $(cmake-utils_use_with semantic-desktop Nepomuk)
140 + $(cmake-utils_use_with semantic-desktop Soprano)
141 + $(cmake-utils_use_disable webkit QtWebKit)
142 + )
143 + kde4-meta_src_configure
144 +}
145
146 diff --git a/kde-base/kdebindings-ruby/kdebindings-ruby-4.6.80.ebuild b/kde-base/kdebindings-ruby/kdebindings-ruby-4.6.80.ebuild
147 new file mode 100644
148 index 0000000..f26df5a
149 --- /dev/null
150 +++ b/kde-base/kdebindings-ruby/kdebindings-ruby-4.6.80.ebuild
151 @@ -0,0 +1,123 @@
152 +# Copyright 1999-2011 Gentoo Foundation
153 +# Distributed under the terms of the GNU General Public License v2
154 +# $Header: $
155 +
156 +EAPI=4
157 +
158 +KMNAME="kdebindings"
159 +KMMODULE="ruby"
160 +DECLARATIVE_REQUIRED="optional"
161 +
162 +USE_RUBY="ruby18"
163 +# No ruby19 for three reasons:
164 +# 1) it does not build (yet) - will likely be solved soon
165 +# 2) cmake bails when configuring twice or more - solved with CMAKE_IN_SOURCE_BUILD=1
166 +# 3) the ebuild can only be installed for one ruby variant, otherwise the compiled
167 +# files with identical path+name will overwrite each other - difficult :(
168 +
169 +inherit kde4-meta ruby-ng
170 +
171 +DESCRIPTION="KDE Ruby bindings"
172 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
173 +IUSE="akonadi debug kate okular phonon plasma qscintilla qwt semantic-desktop webkit"
174 +
175 +DEPEND="
176 + $(add_kdebase_dep smoke 'akonadi?,declarative?,kate?,okular?,phonon?,qscintilla?,qwt?,semantic-desktop=,webkit?')
177 +"
178 +
179 +ruby_add_bdepend dev-ruby/rubygems
180 +
181 +RDEPEND="${DEPEND}
182 + !dev-ruby/qt4-qtruby
183 +"
184 +
185 +# Merged with kdebindings-ruby after 4.4.80
186 +add_blocker krossruby
187 +
188 +pkg_setup() {
189 + ruby-ng_pkg_setup
190 + kde4-meta_pkg_setup
191 +}
192 +
193 +src_unpack() {
194 + local S="${WORKDIR}/${P}"
195 + kde4-meta_src_unpack
196 +
197 + cd "${WORKDIR}"
198 + mkdir all
199 + mv ${P} all/ || die "Could not move sources"
200 +}
201 +
202 +all_ruby_prepare() {
203 + kde4-meta_src_prepare
204 +
205 + sed -i -e "s#smoke/smoke.h#smoke.h#" \
206 + ruby/qtruby/src/handlers.cpp \
207 + ruby/qtruby/src/marshall.h \
208 + ruby/qtruby/src/marshall_types.h \
209 + ruby/qtruby/src/Qt.cpp \
210 + ruby/qtruby/src/qtruby.cpp \
211 + ruby/qtruby/src/qtruby.h \
212 + ruby/qtruby/src/smokeruby.h || die
213 +
214 + sed -i -e "s#include <smoke/qt/#include <smoke/#" -e "s#include <smoke/kde/#include <smoke/#" \
215 + ruby/qtruby/src/Qt.cpp \
216 + ruby/qtruby/src/marshall_types.cpp \
217 + ruby/qtruby/modules/phonon/phonon.cpp \
218 + ruby/qtruby/modules/qscintilla/qscintilla.cpp \
219 + ruby/qtruby/modules/qtdeclarative/qtdeclarative.cpp \
220 + ruby/qtruby/modules/qtuitools/qtuitools.cpp \
221 + ruby/qtruby/modules/qtscript/qtscript.cpp \
222 + ruby/qtruby/modules/qwt/qwt.cpp \
223 + ruby/qtruby/modules/qttest/qttest.cpp \
224 + ruby/qtruby/modules/qtwebkit/qtwebkit.cpp \
225 + ruby/qtruby/src/qtruby.cpp \
226 + ruby/korundum/src/Korundum.cpp \
227 + ruby/korundum/modules/soprano/soprano.cpp \
228 + ruby/korundum/modules/akonadi/akonadi.cpp \
229 + ruby/korundum/modules/kate/kate.cpp \
230 + ruby/korundum/modules/khtml/khtml.cpp \
231 + ruby/korundum/modules/kio/kio.cpp \
232 + ruby/korundum/modules/ktexteditor/ktexteditor.cpp \
233 + ruby/korundum/modules/okular/okular.cpp \
234 + ruby/korundum/modules/solid/solid.cpp \
235 + ruby/korundum/modules/nepomuk/nepomuk.cpp \
236 + ruby/korundum/modules/plasma/src/plasma.cpp \
237 + ruby/korundum/modules/plasma/src/plasmahandlers.cpp \
238 + ruby/korundum/modules/nepomuk/nepomukhandlers.cpp || die
239 +
240 + echo 'target_link_libraries(rubyqtdeclarative ${QT_QTDECLARATIVE_LIBRARY})' >> \
241 + ruby/qtruby/modules/qtdeclarative/CMakeLists.txt || die
242 +}
243 +
244 +each_ruby_configure() {
245 + CMAKE_USE_DIR=${S}
246 + mycmakeargs=(
247 + -DRUBY_LIBRARY=$(ruby_get_libruby)
248 + -DRUBY_INCLUDE_PATH=$(ruby_get_hdrdir)
249 + -DRUBY_EXECUTABLE=${RUBY}
250 + $(cmake-utils_use_with akonadi)
251 + $(cmake-utils_use_with akonadi KdepimLibs)
252 + $(cmake-utils_use_disable declarative QtDeclarative)
253 + $(cmake-utils_use_disable kate)
254 + $(cmake-utils_use_with okular)
255 + $(cmake-utils_use_with phonon)
256 + $(cmake-utils_use_with plasma)
257 + $(cmake-utils_use_with qscintilla QScintilla)
258 + $(cmake-utils_use_with qwt Qwt5)
259 + $(cmake-utils_use_with semantic-desktop Nepomuk)
260 + $(cmake-utils_use_with semantic-desktop Soprano)
261 + $(cmake-utils_use_disable webkit QtWebKit)
262 + )
263 + kde4-meta_src_configure
264 +}
265 +
266 +each_ruby_compile() {
267 + CMAKE_USE_DIR=${S}
268 + kde4-meta_src_compile
269 +}
270 +
271 +each_ruby_install() {
272 + CMAKE_USE_DIR=${S}
273 + kde4-meta_src_install
274 +}
275
276 diff --git a/kde-base/krossjava/krossjava-4.6.80.ebuild b/kde-base/krossjava/krossjava-4.6.80.ebuild
277 new file mode 100644
278 index 0000000..a069de8
279 --- /dev/null
280 +++ b/kde-base/krossjava/krossjava-4.6.80.ebuild
281 @@ -0,0 +1,68 @@
282 +# Copyright 1999-2011 Gentoo Foundation
283 +# Distributed under the terms of the GNU General Public License v2
284 +# $Header: $
285 +
286 +EAPI=4
287 +
288 +KMNAME="kdebindings"
289 +KMMODULE="java/krossjava"
290 +inherit java-pkg-2 java-ant-2 kde4-meta eutils
291 +
292 +DESCRIPTION="Java plugin for the kdelibs/kross scripting framework."
293 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
294 +IUSE="debug"
295 +
296 +DEPEND="
297 + >=virtual/jdk-1.5
298 +"
299 +RDEPEND="
300 + >=virtual/jre-1.5
301 +"
302 +
303 +RESTRICT="test"
304 +
305 +PATCHES=( "${FILESDIR}/${PN}-4.2.3_includes.patch" )
306 +
307 +pkg_setup() {
308 + kde4-meta_pkg_setup
309 + java-pkg-2_pkg_setup
310 +}
311 +
312 +src_prepare() {
313 + find "${S}" -iname '*.jar' | xargs rm -v
314 + kde4-meta_src_prepare
315 + java-pkg-2_src_prepare
316 +}
317 +
318 +src_configure() {
319 + mycmakeargs=(-DENABLE_KROSSJAVA=ON)
320 + kde4-meta_src_configure
321 + java-ant-2_src_configure
322 +}
323 +
324 +src_compile() {
325 + kde4-meta_src_compile
326 + cd "${S}/java/${PN}/${PN}/java/" || die
327 + eant makejar
328 +}
329 +
330 +src_install() {
331 + kde4-meta_src_install
332 + java-pkg_dojar "${ED}/${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
333 +
334 + cd "${ED}${KDEDIR}/$(get_libdir)/kde4/kross/" || die
335 + local path_prefix="../../../../"
336 +
337 + if [[ ${KDEDIR} != /usr ]]; then
338 + path_prefix="${path_prefix}../"
339 + fi
340 +
341 + dosym "${path_prefix}usr/share/${PN}-${SLOT}/lib/kross.jar" \
342 + "${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
343 + java-pkg_regso "${ED}/${KDEDIR}/$(get_libdir)/kde4/libkrossjava.so"
344 +}
345 +
346 +pkg_preinst() {
347 + kde4-meta_pkg_preinst
348 + java-pkg-2_pkg_preinst
349 +}
350
351 diff --git a/kde-base/krosspython/krosspython-4.6.80.ebuild b/kde-base/krosspython/krosspython-4.6.80.ebuild
352 new file mode 100644
353 index 0000000..25dd84d
354 --- /dev/null
355 +++ b/kde-base/krosspython/krosspython-4.6.80.ebuild
356 @@ -0,0 +1,26 @@
357 +# Copyright 1999-2011 Gentoo Foundation
358 +# Distributed under the terms of the GNU General Public License v2
359 +# $Header: $
360 +
361 +EAPI=3
362 +
363 +KDE_SCM="git"
364 +if [[ ${PV} == *9999 ]]; then
365 + KMNAME="kross-interpreters"
366 + KMMODULE="python"
367 + kde_eclass="kde4-base"
368 +else
369 + KMNAME="kdebindings"
370 + kde_eclass="kde4-meta"
371 +fi
372 +PYTHON_DEPEND="2"
373 +inherit python ${kde_eclass}
374 +
375 +DESCRIPTION="Kross scripting framework: Python interpreter"
376 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
377 +IUSE="debug"
378 +
379 +pkg_setup() {
380 + python_set_active_version 2
381 + ${kde_eclass}-meta_pkg_setup
382 +}
383
384 diff --git a/kde-base/pykde4/pykde4-4.6.80.ebuild b/kde-base/pykde4/pykde4-4.6.80.ebuild
385 index 07ebefb..72038fb 100644
386 --- a/kde-base/pykde4/pykde4-4.6.80.ebuild
387 +++ b/kde-base/pykde4/pykde4-4.6.80.ebuild
388 @@ -12,7 +12,7 @@ EGIT_REPONAME="pykde4"
389 inherit python kde4-base
390
391 DESCRIPTION="Python bindings for KDE4"
392 -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
393 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
394 IUSE="debug doc examples semantic-desktop"
395
396 # blocker added due to compatibility issues and error during compile time
397
398 diff --git a/kde-base/smoke/smoke-4.6.80.ebuild b/kde-base/smoke/smoke-4.6.80.ebuild
399 new file mode 100644
400 index 0000000..bbe994a
401 --- /dev/null
402 +++ b/kde-base/smoke/smoke-4.6.80.ebuild
403 @@ -0,0 +1,63 @@
404 +# Copyright 1999-2011 Gentoo Foundation
405 +# Distributed under the terms of the GNU General Public License v2
406 +# $Header: $
407 +
408 +EAPI=4
409 +
410 +DECLARATIVE_REQUIRED="optional"
411 +MULTIMEDIA_REQUIRED="optional"
412 +QTHELP_REQUIRED="optional"
413 +
414 +KDE_SCM="git"
415 +if [[ ${PV} == *9999 ]]; then
416 + kde_eclass="kde4-base"
417 +else
418 + KMNAME="kdebindings"
419 + kde_eclass="kde4-meta"
420 +fi
421 +
422 +inherit ${kde_eclass}
423 +
424 +DESCRIPTION="Scripting Meta Object Kompiler Engine"
425 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
426 +IUSE="akonadi attica debug kate okular +phonon qimageblitz qscintilla qwt semantic-desktop webkit"
427 +
428 +COMMON_DEPEND="
429 + $(add_kdebase_dep kdelibs 'semantic-desktop=')
430 + akonadi? ( $(add_kdebase_dep kdepimlibs) )
431 + attica? ( dev-libs/libattica )
432 + kate? ( $(add_kdebase_dep kate) )
433 + okular? ( $(add_kdebase_dep okular) )
434 + phonon? ( >=media-libs/phonon-4.4.3 )
435 + qimageblitz? ( >=media-libs/qimageblitz-0.0.4 )
436 + qscintilla? ( x11-libs/qscintilla )
437 + qwt? ( x11-libs/qwt:5 )
438 +"
439 +DEPEND="${COMMON_DEPEND}"
440 +RDEPEND="${COMMON_DEPEND}"
441 +
442 +KMEXTRA="generator/"
443 +
444 +KMSAVELIBS=1
445 +
446 +src_configure() {
447 + mycmakeargs=(
448 + -DDISABLE_Qt3Support=ON
449 + $(cmake-utils_use_with akonadi)
450 + $(cmake-utils_use_with akonadi KdepimLibs)
451 + $(cmake-utils_use_with attica LibAttica)
452 + $(cmake-utils_use_disable declarative QtDeclarative)
453 + $(cmake-utils_use_disable kate)
454 + $(cmake-utils_use_disable multimedia QtMultimedia)
455 + $(cmake-utils_use_with okular)
456 + $(cmake-utils_use_with phonon)
457 + $(cmake-utils_use_with qimageblitz QImageBlitz)
458 + $(cmake-utils_use_with qscintilla QScintilla)
459 + $(cmake-utils_use_disable qthelp QtHelp)
460 + $(cmake-utils_use_disable qwt)
461 + $(cmake-utils_use_with semantic-desktop Nepomuk)
462 + $(cmake-utils_use_with semantic-desktop Soprano)
463 + $(cmake-utils_use_disable webkit QtWebKit)
464 + )
465 + ${kde_eclass}_src_configure
466 +}