summaryrefslogtreecommitdiff
blob: 05c744b620882916fcd7ab006605de209bc3d5de (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.6 2005/04/01 18:17:56 blubb 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)
}