summaryrefslogtreecommitdiff
blob: e29ffb877f2e37bc6964f1f7d5e7da3c52f5b00f (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ri/ri-1.8b-r1.ebuild,v 1.7 2005/05/04 12:07:46 gmsoft Exp $

DESCRIPTION="Ruby Interactive reference"
HOMEPAGE="http://www.pragmaticprogrammer.com/ruby/downloads/ri.html"
SRC_URI="mirror://sourceforge/rdoc/${P}.tgz"

SLOT="0"
LICENSE="Ruby"
KEYWORDS="alpha hppa mips sparc x86 ppc amd64"

IUSE=""
DEPEND="=dev-lang/ruby-1.6*"
RDEPEND="${DEPEND}
	>=dev-ruby/ruby-config-0.3.1"

S=${WORKDIR}/${PN}

src_install () {
	DESTDIR=${D} ruby16 install.rb || die "install.rb failed"
	mv ${D}/usr/bin/ri{,16}	# let ruby-config make symlinks

	dodoc COPYING ChangeLog README
}

pkg_postinst() {
	${ROOT}usr/sbin/ruby-config $(readlink ${ROOT}usr/bin/ruby)
}