blob: 57bdf1f540d838067d9799504153a0cc8178c71e (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
EAPI=4
RUBY_FAKEGEM_DOCDIR="rdoc"
RUBY_S="mojombo-${PN}-*"
USE_RUBY="ruby18"
inherit eutils ruby-fakegem
DESCRIPTION="Git Library for Ruby"
HOMEPAGE="http://rubyforge.org/projects/grit http://github.com/mojombo/grit"
SRC_URI="https://github.com/mojombo/grit/tarball/v2.4.1 -> ${P}.tar.gz
test? ( ftp://mirror.ohnopub.net/mirror/${P}.git.tar.bz2 http://mirror.ohnopub.net/mirror/${P}.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_unpack() {
unpack ${A}
# Tests require the grit directory to look like a git repo.
if [[ -e ${P}.git ]]; then
# Expand RUBY_S in a manner similar to
# _ruby_invoke_environment().
mv ${P}.git $(eval ls -d ${RUBY_S} 2>/dev/null)/.git || die "Inserting .git/ for tests"
fi
}
|