summaryrefslogtreecommitdiff
blob: 522422ed13b3e4adb5db097a44ac3a748e685bd4 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/osmlib-base/osmlib-base-0.1.4-r1.ebuild,v 1.5 2011/08/24 20:50:50 maekke Exp $

EAPI=2

USE_RUBY="ruby18" #ree18 jruby

RUBY_FAKEGEM_TASK_TEST="-f rakefile.rb test"

RUBY_FAKEGEM_TASK_DOC="-f rakefile.rb rdoc"

RUBY_FAKEGEM_DOCDIR="rdoc"
RUBY_FAKEGEM_EXTRADOC="README.txt"

inherit ruby-fakegem

DESCRIPTION="A ruby library for OpenStreetMap."
HOMEPAGE="http://osmlib.rubyforge.org/"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

RESTRICT="test"

ruby_add_rdepend ">=dev-ruby/libxml-0.5.4
	dev-ruby/GeoRuby"

ruby_add_bdepend "test? ( dev-ruby/builder )"

all_ruby_prepare() {
	# Add test file missing from gem distribution
	cp "${FILESDIR}"/test.osm test/ || die "Unable to copy test.osm"
}

all_ruby_install() {
	all_fakegem_install

	insinto /usr/share/doc/${PF}
	doins -r examples || die
}