summaryrefslogtreecommitdiff
blob: 6e54e473d6e2ca00dd828232e692c0d42fed3ab9 (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
33
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-svg/ruby-svg-1.0.3-r1.ebuild,v 1.1 2007/03/06 00:37:21 rbrown Exp $

inherit ruby

DESCRIPTION="Ruby SVG Generator"
HOMEPAGE="http://ruby-svg.sourceforge.jp/"
SRC_URI="http://downloads.sourceforge.jp/ruby-svg/2288/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~ia64 ~ppc ~x86"
USE_RUBY="any"
IUSE="examples"
DEPEND="virtual/ruby
	dev-ruby/rdtool"
RDEPEND="virtual/ruby"

src_install() {
	ruby install.rb config --prefix=${D}/usr || die
	ruby install.rb setup || die
	ruby install.rb install || die

	rd2 README.en.rd > README.en.html
	rd2 README.ja.rd > README.ja.html

	dohtml *.html || die

	if use examples ; then
		insinto /usr/share/doc/${PF}/examples
		doins sample/*
	fi
}