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

Contents of /kde-base/qtruby/qtruby-4.14.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Feb 14 14:02:35 2015 UTC (5 years, 7 months ago) by ago
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable for amd64, wrt bug #517344

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 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.14.3-r2.ebuild,v 1.1 2015/01/18 20:55:04 johu Exp $
4
5 EAPI=5
6
7 OPENGL_REQUIRED="always"
8 DECLARATIVE_REQUIRED="optional"
9 KDE_REQUIRED="never"
10 USE_RUBY="ruby20"
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 PATCHES=( "${FILESDIR}/${P}-ruby20.patch" )
30
31 pkg_setup() {
32 ruby-ng_pkg_setup
33 kde4-base_pkg_setup
34 }
35
36 src_unpack() {
37 local S="${WORKDIR}/${P}"
38 kde4-base_src_unpack
39
40 cd "${WORKDIR}"
41 mkdir all
42 mv ${P} all/ || die "Could not move sources"
43 }
44
45 all_ruby_prepare() {
46 kde4-base_src_prepare
47 }
48
49 each_ruby_configure() {
50 local CMAKE_USE_DIR=${S}
51 local mycmakeargs=(
52 -DRUBY_LIBRARY=$(ruby_get_libruby)
53 -DRUBY_INCLUDE_PATH=$(ruby_get_hdrdir)
54 -DRUBY_EXECUTABLE=${RUBY}
55 $(cmake-utils_use_disable declarative QtDeclarative)
56 $(cmake-utils_use_with phonon)
57 $(cmake-utils_use_with qscintilla QScintilla)
58 $(cmake-utils_use_with qwt Qwt5)
59 $(cmake-utils_use_disable webkit QtWebKit)
60 )
61 kde4-base_src_configure
62 }
63
64 each_ruby_compile() {
65 local CMAKE_USE_DIR=${S}
66 kde4-base_src_compile
67 }
68
69 each_ruby_install() {
70 local CMAKE_USE_DIR=${S}
71 kde4-base_src_install
72 }

  ViewVC Help
Powered by ViewVC 1.1.20