Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/fakeweb/
Date: Mon, 26 Jun 2017 18:39:55
Message-Id: 1498502381.4d15fbe6f8a8a45be6024df9dd18fe4a6ef84431.graaff@gentoo
1 commit: 4d15fbe6f8a8a45be6024df9dd18fe4a6ef84431
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 26 05:16:44 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 26 18:39:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d15fbe6
7
8 dev-ruby/fakeweb: cleanup
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 dev-ruby/fakeweb/Manifest | 1 -
13 dev-ruby/fakeweb/fakeweb-1.3.0-r2.ebuild | 53 --------------------------
14 dev-ruby/fakeweb/fakeweb-1.3.0.20131201.ebuild | 53 --------------------------
15 3 files changed, 107 deletions(-)
16
17 diff --git a/dev-ruby/fakeweb/Manifest b/dev-ruby/fakeweb/Manifest
18 index d85007e3bdf..7693720647d 100644
19 --- a/dev-ruby/fakeweb/Manifest
20 +++ b/dev-ruby/fakeweb/Manifest
21 @@ -1,2 +1 @@
22 DIST fakeweb-1.3.0.20131201.tar.gz 60162 SHA256 44f599eb76b4996c53a3f047b3f37c72d93bac967893dcb1da18e5f8270b4f14 SHA512 f3bd40680b7eefe90d3fee67f5282dbe4c67d46a1f1040d0d0d62c978b69d08987581a53495bb56e32ebcc6679c84f03c2e26c51d2bd98daa80554d3424c6603 WHIRLPOOL 5cdb5faf3932614838fb9e1bb5f01a115c087af396df6bbecab421ea0d97f24377c06ab41f1919b339f76137d4c1ea1186a4269052163f0942cd9ee9ca1f8900
23 -DIST fakeweb-1.3.0.gem 58368 SHA256 1ec996be13020a00b3464560c09180b424477c698f59f82edf2b99b16cfa09a8 SHA512 5785bf8e17f9b9b73a9fd2b581c6c5dcf466a5d68c2dbea593bca7cd5d385b5b1315ca777c39bce2a8077ccab6d5df7f031435c9227931c3d2a84512da9cb423 WHIRLPOOL 976e48b1e66e951a22fa28970356c3e85927027fd7262242a50ecac55771fc2ed7c1830d4dcc0566f479fa5c844a0d59b2b268ebd26ba87988f543b982e51214
24
25 diff --git a/dev-ruby/fakeweb/fakeweb-1.3.0-r2.ebuild b/dev-ruby/fakeweb/fakeweb-1.3.0-r2.ebuild
26 deleted file mode 100644
27 index c45c5ea6054..00000000000
28 --- a/dev-ruby/fakeweb/fakeweb-1.3.0-r2.ebuild
29 +++ /dev/null
30 @@ -1,53 +0,0 @@
31 -# Copyright 1999-2016 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=5
35 -
36 -# ruby22 -> not compatible with new net/http implementation
37 -USE_RUBY="ruby20 ruby21"
38 -
39 -RUBY_FAKEGEM_DOCDIR="html"
40 -RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc"
41 -
42 -inherit ruby-fakegem
43 -
44 -DESCRIPTION="Helper for faking web requests in Ruby"
45 -HOMEPAGE="https://github.com/chrisk/fakeweb"
46 -
47 -LICENSE="GPL-2"
48 -SLOT="0"
49 -KEYWORDS="~alpha amd64 ~arm ~ppc ~ppc64 ~x86"
50 -IUSE=""
51 -
52 -ruby_add_bdepend "
53 - test? (
54 - dev-ruby/mocha:0.14
55 - dev-ruby/test-unit
56 - dev-ruby/samuel
57 - dev-ruby/right_http_connection
58 - )"
59 -
60 -all_ruby_prepare() {
61 - # The package bundles samuel and right_http_connection, remove
62 - # them and use the packages instead.
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 - # Require an old enough version of mocha
69 - sed -i -e '1igem "mocha", "~> 0.14.0"' test/test_helper.rb || die
70 -
71 - # Use the test-unit gem to make jruby compatible with newer mocha.
72 - sed -i -e '1igem "test-unit"' test/test_helper.rb || die
73 -}
74 -
75 -each_ruby_prepare() {
76 - case ${RUBY} in
77 - *ruby2[01])
78 - # Tests fail on mocking of TCPSocket, but fakeweb itself
79 - # actually works as evidenced by the thor test suite.
80 - rm test/test_fake_web_open_uri.rb test/test_allow_net_connect.rb test/test_fake_web.rb || die
81 - ;;
82 - esac
83 -}
84
85 diff --git a/dev-ruby/fakeweb/fakeweb-1.3.0.20131201.ebuild b/dev-ruby/fakeweb/fakeweb-1.3.0.20131201.ebuild
86 deleted file mode 100644
87 index a74e9845224..00000000000
88 --- a/dev-ruby/fakeweb/fakeweb-1.3.0.20131201.ebuild
89 +++ /dev/null
90 @@ -1,53 +0,0 @@
91 -# Copyright 1999-2016 Gentoo Foundation
92 -# Distributed under the terms of the GNU General Public License v2
93 -
94 -EAPI=5
95 -
96 -USE_RUBY="ruby20 ruby21 ruby22"
97 -
98 -RUBY_FAKEGEM_RECIPE_DOC="rdoc"
99 -RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc"
100 -
101 -COMMIT=48208f9bf053577befe5723746b6ff35b99b45d0
102 -
103 -inherit ruby-fakegem
104 -
105 -DESCRIPTION="Helper for faking web requests in Ruby"
106 -HOMEPAGE="https://github.com/chrisk/fakeweb"
107 -SRC_URI="https://github.com/chrisk/fakeweb/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
108 -RUBY_S="${PN}-${COMMIT}"
109 -
110 -LICENSE="GPL-2"
111 -SLOT="0"
112 -KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
113 -IUSE=""
114 -
115 -RUBY_PATCHES=( fakeweb-ruby22.patch )
116 -
117 -ruby_add_bdepend "
118 - test? (
119 - dev-ruby/mocha:0.14
120 - dev-ruby/test-unit
121 - )"
122 -
123 -all_ruby_prepare() {
124 - # The package bundles samuel and right_http_connection, remove
125 - # them
126 - rm -r test/vendor || die "failed to remove bundled gems"
127 -
128 - # We don't package sdoc and we don't have the direct template.
129 - sed -i -e 's/sdoc/rdoc/' -e '/template/d' Rakefile || die
130 -
131 - # Require an old enough version of mocha
132 - sed -i -e '1igem "mocha", "~> 0.14.0"' test/test_helper.rb || die
133 -
134 - # Use the test-unit gem to make jruby compatible with newer mocha.
135 - sed -i -e '1igem "test-unit"' \
136 - -e '/bundler/I s:^:#:' \
137 - -e '/simplecov/ s:^:#:' test/test_helper.rb || die
138 -
139 - # Avoid test dependencies on unmaintained packages that no longer work
140 - rm test/test_other_net_http_libraries.rb || die
141 -
142 - sed -i -e '/test:preflight/ s:^:#:' Rakefile || die
143 -}