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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jul 2 09:30:39 2013 UTC (7 years, 1 month ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.1.12.2/cvs/Linux ppc64, RepoMan options: --force, signed Manifest commit with key 7194459F)

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.10.3.ebuild,v 1.5 2013/06/08 10:09:06 ago Exp $
4
5 EAPI=5
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 ppc64 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