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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Aug 17 11:04:14 2012 UTC (8 years, 2 months ago) by johu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove KDE SC 4.8.4

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 dilfridge 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 johu 1.2 # $Header: /var/cvsroot/gentoo-x86/kde-base/qtruby/qtruby-4.8.4.ebuild,v 1.1 2012/06/21 21:54:46 dilfridge Exp $
4 dilfridge 1.1
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 ~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