summaryrefslogtreecommitdiff
blob: f2024a97366b939f325682e3a899f1d19fb455c6 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/racc-1.4.3-r1.ebuild,v 1.6 2005/03/25 23:33:56 blubb Exp $

inherit ruby

MY_P=${P}-all
DESCRIPTION="A LALR(1) parser generator for Ruby"
HOMEPAGE="http://www.loveruby.net/en/racc.html"
SRC_URI="http://www.loveruby.net/archive/racc/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha hppa mips sparc x86"
USE_RUBY="ruby16 ruby18 ruby19"
IUSE=""
S=${WORKDIR}/${MY_P}

DEPEND="|| ( >=dev-lang/ruby-1.8.0
		( >=dev-lang/ruby-1.6.1
		>=dev-ruby/amstd-1.9.5
		>=dev-ruby/strscan-0.6.5 )
		dev-lang/ruby-cvs )"

src_compile() {
	ruby setup.rb config --without=amstd,strscan || die
	ruby setup.rb setup || die
}

src_install () {
	ruby setup.rb config --prefix=${D}/usr --without=amstd,strscan || die
	ruby setup.rb install || die
}