commit:     be7599ebca00e6a4c3ad611ef63166ca18978248
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  7 07:04:41 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Nov 18 07:05:32 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=be7599eb

dev-vcs/hub: Install additional files

Package-Manager: portage-2.2.14_rc1

---
 dev-vcs/hub/ChangeLog       |  5 ++++-
 dev-vcs/hub/hub-9999.ebuild | 33 ++++++++++++++++++++++++++++-----
 2 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/dev-vcs/hub/ChangeLog b/dev-vcs/hub/ChangeLog
index 2914a87..3b5f320 100644
--- a/dev-vcs/hub/ChangeLog
+++ b/dev-vcs/hub/ChangeLog
@@ -1,7 +1,10 @@
 # ChangeLog for dev-vcs/hub
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/hub/ChangeLog,v 1.3 2013/05/31 
23:14:44 ottxor Exp $
 
+  07 Oct 2014; Justin Lecher <[email protected]> hub-9999.ebuild:
+  Install additional files
+
   25 Dec 2013; Justin Lecher <[email protected]> hub-9999.ebuild:
   Update to current HEAD
 

diff --git a/dev-vcs/hub/hub-9999.ebuild b/dev-vcs/hub/hub-9999.ebuild
index f9d8a75..c0c8614 100644
--- a/dev-vcs/hub/hub-9999.ebuild
+++ b/dev-vcs/hub/hub-9999.ebuild
@@ -1,16 +1,21 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/hub/hub-1.10.6.ebuild,v 1.1 
2013/05/31 23:14:44 ottxor Exp $
 
 EAPI="5"
 
-USE_RUBY="ruby18 ruby19"
+USE_RUBY="ruby19"
 RUBY_FAKEGEM_TASK_DOC=
 RUBY_FAKEGEM_EXTRADOC="README.md"
 
-inherit git-r3 readme.gentoo ruby-fakegem
+inherit bash-completion-r1 git-r3 readme.gentoo ruby-fakegem
 
-ruby_add_bdepend "test? ( dev-ruby/webmock dev-util/cucumber )"
+ruby_add_bdepend "
+       test? (
+               dev-ruby/webmock
+               dev-util/cucumber
+               virtual/ruby-minitest
+       )"
 
 DESCRIPTION="command-line wrapper for git that makes you better at GitHub"
 HOMEPAGE="http://defunkt.io/hub/";
@@ -20,7 +25,7 @@ EGIT_REPO_URI="https://github.com/github/hub.git";
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS=""
-RDEPEND=">=dev-vcs/git-1.7.3"
+RDEPEND="dev-vcs/git"
 
 DOC_CONTENTS="You may want to add 'alias git=hub' to your .{csh,bash}rc"
 
@@ -31,7 +36,25 @@ src_unpack() {
        git-r3_src_unpack
 }
 
+all_ruby_prepare() {
+       sed -i -e 's/Minitest/MiniTest/g' test/*.rb || die
+}
+
 src_install() {
        ruby-ng_src_install
        readme.gentoo_create_doc
+
+       cd "${S}"/all/${P} || die
+
+       doman man/${PN}.1
+
+       insinto /usr/share/${PN}/
+       doins -r git-hooks
+
+       # Broken with autoloader
+       # https://github.com/github/hub/issues/592
+       #newbashcomp etc/hub.bash_completion.sh ${PN}
+
+       insinto /usr/share/zsh/site-functions
+       newins etc/hub.zsh_completion ${PN}
 }

Reply via email to