summaryrefslogtreecommitdiff
blob: 9205841d06f36faf165c660efece12a0bd91c034 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rdtool/rdtool-0.6.11-r1.ebuild,v 1.1 2003/06/11 00:00:03 twp Exp $

DESCRIPTION="A multipurpose documentation format for Ruby"
HOMEPAGE="http://www2.pos.to/~tosh/ruby/rdtool/en/index.html"
SRC_URI="http://www2.pos.to/~tosh/ruby/rdtool/archive/${P}.tar.gz"
LICENSE="Ruby GPL-1"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-lang/ruby-1.6.4
	dev-ruby/amstd
	>=dev-ruby/optparse-0.8
	>=dev-ruby/racc-1.3
	dev-ruby/strscan"

src_compile() {
	ruby rdtoolconf.rb || die
	mv Makefile Makefile.orig
	sed -e "s:^\(BIN_DIR = \)\(.*\):\\1${D}\\2:" \
		-e "s:^\(SITE_RUBY = \)\(.*\):\\1${D}\\2:" \
		Makefile.orig > Makefile
	emake || die
}

src_install() {
	install -m 755 -d ${D}/usr/bin
	DESTDIR=${D} make install || die
	dodoc HISTORY README.*
}