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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Feb 23 10:01:59 2014 UTC (6 years, 7 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.2.7/cvs/Linux x86_64, 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.11.2.ebuild,v 1.5 2013/12/11 20:26:50 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 HOMEPAGE="http://techbase.kde.org/Development/Languages/Ruby"
22
23 DEPEND="
24 $(add_kdebase_dep smokeqt 'declarative?,opengl,phonon?,qscintilla?,qwt?,webkit?')
25 "
26
27 RDEPEND="${DEPEND}
28 "
29
30 pkg_setup() {
31 ruby-ng_pkg_setup
32 kde4-base_pkg_setup
33 }
34
35 src_unpack() {
36 local S="${WORKDIR}/${P}"
37 kde4-base_src_unpack
38
39 cd "${WORKDIR}"
40 mkdir all
41 mv ${P} all/ || die "Could not move sources"
42 }
43
44 all_ruby_prepare() {
45 kde4-base_src_prepare
46 }
47
48 each_ruby_configure() {
49 local CMAKE_USE_DIR=${S}
50 mycmakeargs=(
51 -DRUBY_LIBRARY=$(ruby_get_libruby)
52 -DRUBY_INCLUDE_PATH=$(ruby_get_hdrdir)
53 -DRUBY_EXECUTABLE=${RUBY}
54 $(cmake-utils_use_disable declarative QtDeclarative)
55 $(cmake-utils_use_with phonon)
56 $(cmake-utils_use_with qscintilla QScintilla)
57 $(cmake-utils_use_with qwt Qwt5)
58 $(cmake-utils_use_disable webkit QtWebKit)
59 )
60 kde4-base_src_configure
61 }
62
63 each_ruby_compile() {
64 local CMAKE_USE_DIR=${S}
65 kde4-base_src_compile
66 }
67
68 each_ruby_install() {
69 local CMAKE_USE_DIR=${S}
70 kde4-base_src_install
71 }

  ViewVC Help
Powered by ViewVC 1.1.20