blob: 3ab99dd1046066e267f6f1d3339db3143dd533d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fxruby/fxruby-1.6.18.ebuild,v 1.4 2009/01/04 16:32:49 mabi Exp $
RUBY_BUG_145222=yes
inherit ruby
MY_P="FXRuby-${PV}"
DESCRIPTION="Ruby language binding to the FOX GUI toolkit"
HOMEPAGE="http://www.fxruby.org/"
SRC_URI="mirror://rubyforge/${PN}/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="1.6"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="examples doc"
DEPEND="=x11-libs/fox-1.6*
>=x11-libs/fxscintilla-1.62-r1"
USE_RUBY="ruby18 ruby19"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e 's:libs, "fxscintilla":libs, "fxscintilla-1.6":g' \
ext/fox16/extconf.rb || die "sed error"
einfo "Avoid -O0 builds"
sed -i -e 's:-O0 -Iinclude:-Iinclude:g' \
ext/fox16/extconf.rb || die "Can't fix forced -O0"
}
src_install() {
${RUBY} install.rb config --prefix="${D}/usr" "$@" \
${RUBY_ECONF} || die "install.rb config failed"
${RUBY} install.rb install "$@" --prefix="${D}" \
${RUBY_ECONF} || die "install.rb install failed"
}
|