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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Oct 15 17:26:01 2011 UTC (8 years, 11 months ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop KDE 4.7.0

(Portage version: 2.1.10.27/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20