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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Dec 12 03:37:33 2013 UTC (6 years, 7 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove old

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

  ViewVC Help
Powered by ViewVC 1.1.20