1 |
commit: e4ad7353fa2758a86bbe80f7e4151d36724ab250 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 28 18:10:57 2017 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 28 18:43:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ad7353 |
7 |
|
8 |
dev-vcs/git-num: run tests; add ruby23, ruby24 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-vcs/git-num/git-num-2.0.1.ebuild | 19 +++++++++++++++---- |
13 |
1 file changed, 15 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/dev-vcs/git-num/git-num-2.0.1.ebuild b/dev-vcs/git-num/git-num-2.0.1.ebuild |
16 |
index 925423a9172..d3551f87af7 100644 |
17 |
--- a/dev-vcs/git-num/git-num-2.0.1.ebuild |
18 |
+++ b/dev-vcs/git-num/git-num-2.0.1.ebuild |
19 |
@@ -2,11 +2,11 @@ |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
|
22 |
EAPI=5 |
23 |
-USE_RUBY="ruby21 ruby22" |
24 |
+USE_RUBY="ruby22 ruby23 ruby24" |
25 |
|
26 |
RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
27 |
RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md" |
28 |
-RUBY_FAKEGEM_RECIPE_TEST="rspec" |
29 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
30 |
|
31 |
inherit ruby-fakegem |
32 |
|
33 |
@@ -17,9 +17,20 @@ SRC_URI="https://github.com/schreifels/git-num/archive/v${PV}.tar.gz -> ${P}.tar |
34 |
LICENSE="MIT" |
35 |
SLOT="0" |
36 |
KEYWORDS="~amd64" |
37 |
-IUSE="" |
38 |
+IUSE="test" |
39 |
+ |
40 |
+DEPEND+=" test? ( dev-vcs/git )" |
41 |
+RDEPEND+=" dev-vcs/git" |
42 |
|
43 |
all_ruby_prepare() { |
44 |
+ # cp git-num since specs depend on the default location |
45 |
mkdir bin || die |
46 |
- mv git-num bin || die |
47 |
+ cp git-num bin || die |
48 |
+ |
49 |
+ sed -i -e '14i`git config user.email "test-git-num@g.o"`' \ |
50 |
+ -e '15i`git config user.name "git-num tester"`' spec/lib/git_tools.rb || die |
51 |
+} |
52 |
+ |
53 |
+each_ruby_test() { |
54 |
+ RSPEC_VERSION=3 ruby-ng_rspec spec/unit.rb spec/integration.rb |
55 |
} |