blob: 275d13f68b58f1eb72b1fd4fab0302728695e982 (
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-2003 Gentoo Technologies, Inc.
# 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.4 2003/02/13 11:41:05 vapier 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/
}
|