summaryrefslogtreecommitdiff
blob: 5688c22be0fc38eaa26ba1a3d71f9bcadc7aaad3 (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-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/diff/diff-0.4-r1.ebuild,v 1.1 2010/05/17 20:12:14 graaff Exp $

EAPI="2"
USE_RUBY="ruby18"

inherit ruby-ng

DESCRIPTION="Computes the differences between two arrays of elements"
HOMEPAGE="http://users.cybercity.dk/~dsl8950/ruby/diff.html"
#SRC_URI="http://users.cybercity.dk/~dsl8950/ruby/${P}.tar.gz"
SRC_URI="http://www.rubynet.org/mirrors/diff/${P}.tar.gz"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"

IUSE=""
SLOT="0"

each_ruby_test() {
	pushd test
	${RUBY} -I../lib test_diff.rb || die "test_diff.rb failed."
	popd
}

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

all_ruby_install() {
	dodoc README TODO
	docinto samples
	dodoc samples/*.rb
}