summaryrefslogtreecommitdiff
blob: 0f240cc25cce207d32e4687c6dea237983f7bde1 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gettext/ruby-gettext-0.5.3.ebuild,v 1.5 2004/06/25 01:59:19 agriffis Exp $

inherit ruby

DESCRIPTION="Ruby GetText Package is Native Language Support Library and Tools which modeled after GNU gettext package"
HOMEPAGE="http://ponx.s5.xrea.com/hiki/ruby-gettext.html"
# The source tarball was downloaded from the site above
SRC_URI="mirror://gentoo/${PN}-package-${PV}.tar.gz"

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

DEPEND="virtual/ruby
	sys-devel/gettext
	dev-ruby/rdtool
	>=dev-ruby/racc-1.4.4"
USE_RUBY="ruby16 ruby18 ruby19"

S="${WORKDIR}/${PN}-package-${PV}"

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

src_install() {
	export LC_ALL=C
	ruby install.rb install || die "install.rb install failed"
	cd docs
	ruby makehtml.rb
	cd -
	erubydoc
}