1 |
commit: 2eaa791a67435eb4748088f068a7db4990e23b39 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 6 08:03:07 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 6 08:43:15 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2eaa791a |
7 |
|
8 |
dev-ruby/tty-which: add 0.4.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/tty-which/Manifest | 1 + |
14 |
dev-ruby/tty-which/tty-which-0.4.2.ebuild | 35 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 36 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/tty-which/Manifest b/dev-ruby/tty-which/Manifest |
18 |
index ccb058bc7a0..12107e6961c 100644 |
19 |
--- a/dev-ruby/tty-which/Manifest |
20 |
+++ b/dev-ruby/tty-which/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST tty-which-0.4.1.gem 11264 BLAKE2B 540249aaeaa5458fef3572413cf673e04765c1ad41971ac3f9bd930a42855459db6c6f8f47c90ee1021993161db6a399ba6edd0384da7db91da999550d3e733b SHA512 e48b284abb3e4177b9f04acec5202a70d3fcaa2d477444c5a9d9920ac00eb192656bc48ca33d72c26845b415a0a90e907dab1dd35608b62bc8e4b1b1b25af51c |
23 |
+DIST tty-which-0.4.2.tar.gz 9820 BLAKE2B 07ac2aa7a3e42127f456045fbdb92db2ea9834b08e0fccbe81767e01817ec2bf7304fb8a41408b0c4da8ecba3caf8bc236de9cb5637c6f197fe3835d0e9b231e SHA512 573b4ed1bfd4dd66dc3337d076a6559bda57b76c95c75f1aeef8bb6d4e0c81ef72057f5ef0521a10afb2a550b8850e6311aaa56ef2499146221f33403621ee54 |
24 |
|
25 |
diff --git a/dev-ruby/tty-which/tty-which-0.4.2.ebuild b/dev-ruby/tty-which/tty-which-0.4.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..bf34ebfeffa |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/tty-which/tty-which-0.4.2.ebuild |
30 |
@@ -0,0 +1,35 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+USE_RUBY="ruby25 ruby26 ruby27" |
36 |
+ |
37 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
38 |
+ |
39 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
40 |
+ |
41 |
+RUBY_FAKEGEM_GEMSPEC="tty-which.gemspec" |
42 |
+ |
43 |
+inherit ruby-fakegem |
44 |
+ |
45 |
+DESCRIPTION="Platform independent implementation of Unix which command" |
46 |
+HOMEPAGE="https://github.com/piotrmurach/tty-which" |
47 |
+SRC_URI="https://github.com/piotrmurach/tty-which/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64" |
52 |
+IUSE="" |
53 |
+ |
54 |
+all_ruby_prepare() { |
55 |
+ echo '-rspec_helper' > .rspec || die |
56 |
+ sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die |
57 |
+ |
58 |
+ # Fix running specs without bundler, fixed upstream |
59 |
+ sed -e 's/receive(:join)$/receive(:join).and_call_original/' \ |
60 |
+ -e '96iallow(::File).to receive(:join).and_call_original' \ |
61 |
+ -e '115iallow(::File).to receive(:join).and_call_original' \ |
62 |
+ -i spec/unit/which_spec.rb || die |
63 |
+ sed -e '5iallow(::File).to receive(:join).and_call_original' \ |
64 |
+ -i spec/unit/executable_file_spec.rb || die |
65 |
+} |