/[gentoo-x86]/kde-base/qtruby/qtruby-4.9.5.ebuild
Gentoo

Contents of /kde-base/qtruby/qtruby-4.9.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jan 28 00:09:54 2013 UTC (7 years, 8 months ago) by ago
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable for ppc, wrt bug #450678

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/kde-base/qtruby/qtruby-4.9.5.ebuild,v 1.3 2013/01/27 16:11:00 ago Exp $
4
5 EAPI=4
6
7 OPENGL_REQUIRED="always"
8 DECLARATIVE_REQUIRED="optional"
9 KDE_REQUIRED="never"
10 USE_RUBY="ruby18"
11 # No ruby19 for three reasons:
12 # 1) it does not build (yet) - will likely be solved soon
13 # 2) cmake bails when configuring twice or more - solved with CMAKE_IN_SOURCE_BUILD=1
14 # 3) the ebuild can only be installed for one ruby variant, otherwise the compiled
15 # files with identical path+name will overwrite each other - difficult :(
16
17 inherit kde4-base ruby-ng
18
19 DESCRIPTION="Qt Ruby bindings"
20 KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux ~x86-linux"
21 IUSE="debug phonon qscintilla qwt webkit"
22
23 DEPEND="
24 $(add_kdebase_dep smokeqt 'declarative?,opengl,phonon?,qscintilla?,qwt?,webkit?')
25 "
26
27 RDEPEND="${DEPEND}
28 "
29
30 # Split from kdebindings-ruby in 4.7
31 add_blocker kdebindings-ruby
32
33 pkg_setup() {
34 ruby-ng_pkg_setup
35 kde4-base_pkg_setup
36 }
37
38 src_unpack() {
39 local S="${WORKDIR}/${P}"
40 kde4-base_src_unpack
41
42 cd "${WORKDIR}"
43 mkdir all
44 mv ${P} all/ || die "Could not move sources"
45 }
46
47 all_ruby_prepare() {
48 kde4-base_src_prepare
49 }
50
51 each_ruby_configure() {
52 local CMAKE_USE_DIR=${S}
53 mycmakeargs=(
54 -DRUBY_LIBRARY=$(ruby_get_libruby)
55 -DRUBY_INCLUDE_PATH=$(ruby_get_hdrdir)
56 -DRUBY_EXECUTABLE=${RUBY}
57 $(cmake-utils_use_disable declarative QtDeclarative)
58 $(cmake-utils_use_with phonon)
59 $(cmake-utils_use_with qscintilla QScintilla)
60 $(cmake-utils_use_with qwt Qwt5)
61 $(cmake-utils_use_disable webkit QtWebKit)
62 )
63 kde4-base_src_configure
64 }
65
66 each_ruby_compile() {
67 local CMAKE_USE_DIR=${S}
68 kde4-base_src_compile
69 }
70
71 each_ruby_install() {
72 local CMAKE_USE_DIR=${S}
73 kde4-base_src_install
74 }

  ViewVC Help
Powered by ViewVC 1.1.20