1 |
commit: ef167d9e38fea2023247714b45bd48ae6289da1e |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 25 05:04:20 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 25 05:23:05 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef167d9e |
7 |
|
8 |
dev-ruby/fakeweb: add new snapshot for ruby24, ruby25 support |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
dev-ruby/fakeweb/Manifest | 1 + |
13 |
dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild | 48 ++++++++++++++++++++++++++ |
14 |
2 files changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/fakeweb/Manifest b/dev-ruby/fakeweb/Manifest |
17 |
index 7f863e9e087..a2fd4256c69 100644 |
18 |
--- a/dev-ruby/fakeweb/Manifest |
19 |
+++ b/dev-ruby/fakeweb/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST fakeweb-1.3.0.20131201.tar.gz 60162 BLAKE2B 856c499041b122d84fde595343e0917a9ac47e81e50560be79a53def2099ea0ad05532bf3a7e3cd5e8dc668235c1ee75989b15465f397f56b7c0edd028bf980c SHA512 f3bd40680b7eefe90d3fee67f5282dbe4c67d46a1f1040d0d0d62c978b69d08987581a53495bb56e32ebcc6679c84f03c2e26c51d2bd98daa80554d3424c6603 |
22 |
+DIST fakeweb-1.3.0.20170806.tar.gz 61449 BLAKE2B f015f95897383e0b65ada5a7833f7bd3fd61ae77f4ab38bf6bb47f2eecef0c778928090302e46157ae4e2fc6c3df4559e9f5c8004a6474ad8852d157aa3af6da SHA512 1871b7c9f2e4f12cd1c434ef4f760828187078a951517fe3f7a6ca5c5d6f08e3056cae2bb012eca1ba556c2f4d369cb2716c637fefee67eb723428195c482edf |
23 |
|
24 |
diff --git a/dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild b/dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..8c53e00193b |
27 |
--- /dev/null |
28 |
+++ b/dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild |
29 |
@@ -0,0 +1,48 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+USE_RUBY="ruby22 ruby23 ruby24 ruby25" |
36 |
+ |
37 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
38 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc" |
39 |
+ |
40 |
+COMMIT=2b08c1ff2714ec13a12f3497d67fcefce95c2cbe |
41 |
+ |
42 |
+inherit ruby-fakegem |
43 |
+ |
44 |
+DESCRIPTION="Helper for faking web requests in Ruby" |
45 |
+HOMEPAGE="https://github.com/chrisk/fakeweb" |
46 |
+SRC_URI="https://github.com/chrisk/fakeweb/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
47 |
+RUBY_S="${PN}-${COMMIT}" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
52 |
+IUSE="" |
53 |
+ |
54 |
+ruby_add_bdepend " |
55 |
+ test? ( |
56 |
+ dev-ruby/mocha |
57 |
+ dev-ruby/test-unit |
58 |
+ )" |
59 |
+ |
60 |
+all_ruby_prepare() { |
61 |
+ # The package bundles samuel and right_http_connection, remove |
62 |
+ # them |
63 |
+ rm -r test/vendor || die "failed to remove bundled gems" |
64 |
+ |
65 |
+ # We don't package sdoc and we don't have the direct template. |
66 |
+ sed -i -e 's/sdoc/rdoc/' -e '/template/d' Rakefile || die |
67 |
+ |
68 |
+ # Use the test-unit gem to make jruby compatible with newer mocha. |
69 |
+ sed -i -e '1igem "test-unit"' \ |
70 |
+ -e '/bundler/I s:^:#:' \ |
71 |
+ -e '/simplecov/ s:^:#:' test/test_helper.rb || die |
72 |
+ |
73 |
+ # Avoid test dependencies on unmaintained packages that no longer work |
74 |
+ rm test/test_other_net_http_libraries.rb || die |
75 |
+ |
76 |
+ sed -i -e '/test:preflight/ s:^:#:' Rakefile || die |
77 |
+} |