1 |
commit: 73d33f132d78357d62abc0363480514c1639d435 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 9 11:07:49 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 10 07:21:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73d33f13 |
7 |
|
8 |
dev-ruby/thor: add 1.2.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/thor/Manifest | 1 + |
14 |
dev-ruby/thor/thor-1.2.1.ebuild | 67 +++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 68 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/thor/Manifest b/dev-ruby/thor/Manifest |
18 |
index 0a5b9f391cf4..1f4c8fe78d1e 100644 |
19 |
--- a/dev-ruby/thor/Manifest |
20 |
+++ b/dev-ruby/thor/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST thor-git-1.1.0.tgz 98252 BLAKE2B 1537cfe6e7cc0d92cc8bde56f0e2acf06b6ee4cb366a5686bb62de43dd15709a4aeaf1b30c3dfa71a6d6c7570e702deeebab6da324204388ac427337514be3f0 SHA512 d1872a834478c5a2054dde6f55e93f6765fd628536f99f888bd7495436c88658537d48c44ef1e5ad6d1388edfa294ea2a3f3cbde32c19b7d2253b78bc62bf9d0 |
23 |
+DIST thor-git-1.2.1.tgz 96638 BLAKE2B 03826d2545c61f5fd433325bc65b244921fd0ed0f030ea173fa6f558ca9fd62ac52dca829c66de32569321b3d52353f306559fa34c34e472b1aa52184ba3d812 SHA512 88e58b6ca6c812cb84ab59e0ee8afcd8fa70b6c24d403cd5ea05d1d40ac30e85f2c7412611cc176eb541d16878e309d25c7e4284f64c760475925ffe359250b9 |
24 |
|
25 |
diff --git a/dev-ruby/thor/thor-1.2.1.ebuild b/dev-ruby/thor/thor-1.2.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..3909b4a435c3 |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/thor/thor-1.2.1.ebuild |
30 |
@@ -0,0 +1,67 @@ |
31 |
+# Copyright 2000-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+USE_RUBY="ruby26 ruby27 ruby30" |
36 |
+ |
37 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
38 |
+RUBY_FAKEGEM_DOCDIR="rdoc" |
39 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
40 |
+RUBY_FAKEGEM_BINWRAP="thor" |
41 |
+ |
42 |
+RUBY_FAKEGEM_GEMSPEC="thor.gemspec" |
43 |
+ |
44 |
+inherit ruby-fakegem |
45 |
+ |
46 |
+DESCRIPTION="A scripting framework that replaces rake and sake" |
47 |
+HOMEPAGE="http://whatisthor.com/" |
48 |
+ |
49 |
+SRC_URI="https://github.com/erikhuda/${PN}/archive/v${PV}.tar.gz -> ${PN}-git-${PV}.tgz" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="$(ver_cut 1)" |
53 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux" |
54 |
+IUSE="doc" |
55 |
+ |
56 |
+USE_RUBY="ruby26 ruby27" ruby_add_bdepend " |
57 |
+ test? ( |
58 |
+ dev-ruby/childlabor |
59 |
+ dev-ruby/webmock |
60 |
+ )" |
61 |
+ |
62 |
+RDEPEND+=" !<dev-ruby/thor-0.20.3-r1:0" |
63 |
+ |
64 |
+all_ruby_prepare() { |
65 |
+ # Remove rspec default options (as we might not have the last |
66 |
+ # rspec). |
67 |
+ rm .rspec || die |
68 |
+ |
69 |
+ # Remove Bundler |
70 |
+ #rm Gemfile || die |
71 |
+ sed -i -e '/[Bb]undler/d' Thorfile || die |
72 |
+ |
73 |
+ # Remove mandatory coverage collection using simplecov which is not |
74 |
+ # packaged. |
75 |
+ sed -i -e '/require .simplecov/,/^end/ s:^:#:' spec/helper.rb || die |
76 |
+ |
77 |
+ # Avoid a spec that requires UTF-8 support, so LANG=C still works, |
78 |
+ # bug 430402 |
79 |
+ sed -i -e '/uses maximum terminal width/,/end/ s:^:#:' spec/shell/basic_spec.rb || die |
80 |
+ |
81 |
+ # Avoid specs depending on git, bug 724058 |
82 |
+ rm -f spec/quality_spec.rb || die |
83 |
+ |
84 |
+ # Avoid currently broken readline specs (already fixed upstream) |
85 |
+ #rm -f spec/line_editor/readline_spec.rb spec/line_editor_spec.rb || die |
86 |
+} |
87 |
+ |
88 |
+each_ruby_test() { |
89 |
+ case ${RUBY} in |
90 |
+ *ruby30) |
91 |
+ einfo "Skipping tests due to circular dependencies" |
92 |
+ ;; |
93 |
+ *) |
94 |
+ RSPEC_VERSION=3 ruby-ng_rspec spec || die |
95 |
+ ;; |
96 |
+ esac |
97 |
+} |