summaryrefslogtreecommitdiff
blob: de56d9fdce1cb21d324f6cb62e1bb65fddc6789b (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rdoc/rdoc-0_beta2.ebuild,v 1.5 2004/06/25 01:55:38 agriffis Exp $

IUSE="X"

DESCRIPTION="RDoc produces documentation from Ruby source files"
HOMEPAGE="http://rdoc.sourceforge.net/"
SRC_URI="http://unc.dl.sourceforge.net/sourceforge/rdoc/rdoc-beta-2.tgz"

LICENSE="Ruby"
SLOT="0"
KEYWORDS="x86"

DEPEND=">=dev-lang/ruby-1.6.7
		X? ( >=media-gfx/graphviz-1.7.15-r2 )"

S=${WORKDIR}/"rdoc-beta-2"

src_compile() {
	use X && ruby rdoc.rb --diagram || ruby rdoc.rb
}

src_install () {
	export DESTDIR=${D}
	ruby install.rb || die

	dodoc ChangeLog EXAMPLE.rb NEW_FEATURES README ToDo
	cp -R contrib ${D}usr/share/doc/${PF}/${DOCDESTTREE}/
	cp -R etc ${D}usr/share/doc/${PF}/${DOCDESTTREE}/
	[ -d doc ] && dohtml -r doc/
}