# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 06 Oct 2011; Nathan Phillip Brink <binki@gentoo.org> grit-2.4.1.ebuild:
+ Take advantage of RUBY_S's github support.
+
*grit-2.4.1 (14 Sep 2011)
14 Sep 2011; Nathan Phillip Brink <binki@gentoo.org> -grit-2.3.0.ebuild,
EAPI=4
RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_S="mojombo-${PN}-*"
USE_RUBY="ruby18"
inherit eutils ruby-fakegem
ruby_add_rdepend "dev-ruby/mime-types
dev-ruby/diff-lcs"
-# Override fakegem's all_ruby_unpack() for github fix.
all_ruby_unpack() {
unpack ${A}
- mv mojombo-${PN}-* "${S}" || die "Removing githubiness."
# Tests require the grit directory to look like a git repo.
if [[ -e ${P}.git ]]; then
- mv ${P}.git "${S}"/.git || die "Inserting .git for tests."
+ # Expand RUBY_S in a manner similar to
+ # _ruby_invoke_environment().
+ eval mv ${P}.git $(eval ls -d ${RUBY_S})/.git || die "Inserting .git/ for tests."
fi
}