summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>2011-10-06 03:56:01 +0000
committerNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>2011-10-06 03:56:01 +0000
commitc72f4cd0a2292689410fcb6b7064a35b4974e363 (patch)
treeb58d47e1ab83ed6ae51eab52a7dcc45f5eed0e52 /dev-ruby
parentmedia-gfx/mcomix: New ebuild for bug #365849 (diff)
downloadsunrise-c72f4cd0a2292689410fcb6b7064a35b4974e363.tar.gz
sunrise-c72f4cd0a2292689410fcb6b7064a35b4974e363.tar.bz2
sunrise-c72f4cd0a2292689410fcb6b7064a35b4974e363.zip
dev-ruby/grit: Take advantage of RUBY_S's github support.
(Portage version: 2.2.0_alpha55-r1/svn/Linux x86_64) svn path=/sunrise/; revision=12424
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/grit/ChangeLog3
-rw-r--r--dev-ruby/grit/grit-2.4.1.ebuild7
2 files changed, 7 insertions, 3 deletions
diff --git a/dev-ruby/grit/ChangeLog b/dev-ruby/grit/ChangeLog
index 690b9d28a..ffec48580 100644
--- a/dev-ruby/grit/ChangeLog
+++ b/dev-ruby/grit/ChangeLog
@@ -2,6 +2,9 @@
# 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,
diff --git a/dev-ruby/grit/grit-2.4.1.ebuild b/dev-ruby/grit/grit-2.4.1.ebuild
index ce066b0e0..8979c86a2 100644
--- a/dev-ruby/grit/grit-2.4.1.ebuild
+++ b/dev-ruby/grit/grit-2.4.1.ebuild
@@ -5,6 +5,7 @@
EAPI=4
RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_S="mojombo-${PN}-*"
USE_RUBY="ruby18"
inherit eutils ruby-fakegem
@@ -28,13 +29,13 @@ ruby_add_bdepend "doc? ( virtual/ruby-rdoc )
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
}