blob: f4de43697070fff937b07c427afbe72a2999262c (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/wxruby/wxruby-0.6-r1.ebuild,v 1.3 2006/04/14 12:06:53 fmccor Exp $
inherit ruby wxwidgets
MY_P="${P}-src"
DESCRIPTION="Ruby language bindings for the wxWidgets GUI toolkit"
HOMEPAGE="http://rubyforge.org/projects/wxruby/"
SRC_URI="http://rubyforge.org/frs/download.php/1983/${MY_P}.tgz"
LICENSE="wxWinLL-3"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="gtk2"
DEPEND=">=dev-lang/ruby-1.8
>=x11-libs/wxGTK-2.4.2-r2 <x11-libs/wxGTK-2.5"
WX_GTK_VER="2.4"
S="${WORKDIR}/${MY_P}"
src_compile() {
cd ${S}/src
ruby extconf.rb || die
# wxruby is incompatible with unicode
use gtk2 && need-wxwidgets gtk2 || need-wxwidgets gtk
sed -i -e "s:wx-config:${wxconfig_name}:g" Makefile
emake || die
}
src_install() {
erubydoc
cd ${S}/src
make DESTDIR=${D} install || die
}
|