summaryrefslogtreecommitdiff
blob: 7bc20e8afdcc278c9ab8cf458565458e9c01e98d (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
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2012 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-r2.ebuild,v 1.5 2012/05/01 18:24:28 armin76 Exp $

EAPI=2
USE_RUBY="ruby18"

inherit ruby-ng

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="amd64 ppc x86"
IUSE="doc examples"

ruby_add_bdepend "doc? ( dev-ruby/rdtool )"

each_ruby_configure() {
	${RUBY} install.rb config --prefix=/usr || die
}

each_ruby_compile() {
	${RUBY} install.rb setup || die
}

each_ruby_install() {
	${RUBY} install.rb config --prefix="${D}"/usr || die
	${RUBY} install.rb install || die
}

all_ruby_install() {
	if use doc ; then
		rd2 README.en.rd > README.en.html
		rd2 README.ja.rd > README.ja.html

		dohtml *.html || die
	fi

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