summaryrefslogtreecommitdiff
blob: 10e536b69fc26b528f943eff4b6053cc1c320c90 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

RUBY_FAKEGEM_DOCDIR="rdoc"
USE_RUBY="ruby18"

inherit eutils ruby-fakegem

DESCRIPTION="Git Library for Ruby"
HOMEPAGE="http://rubyforge.org/projects/grit http://github.com/mojombo/grit"
# http://github.com/mojombo/grit/issues/issue/33
SRC_URI="ftp://mirror.calvin.edu/~binki/${P}.tar.bz2
	test? ( ftp://mirror.calvin.edu/~binki/${P}-dot_git.tar.bz2 )"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"

RDEPEND="dev-vcs/git"
DEPEND="test? ( dev-vcs/git )"

ruby_add_bdepend "doc? ( virtual/ruby-rdoc )
	test? ( dev-ruby/mime-types
		dev-ruby/diff-lcs )"
ruby_add_rdepend "dev-ruby/mime-types
	dev-ruby/diff-lcs"

all_ruby_prepare() {
	# http://github.com/mojombo/grit/issues/issue/34
	epatch "${FILESDIR}"/${P}-sorted-refs.patch
}