1 |
commit: d8f96f949c22809db1b3428305df9c1eadcb0282 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 9 12:42:23 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 9 12:42:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8f96f94 |
7 |
|
8 |
dev-ruby/httpclient: drop 2.8.3, 2.8.3-r1 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
|
12 |
dev-ruby/httpclient/httpclient-2.8.3-r1.ebuild | 78 -------------------------- |
13 |
dev-ruby/httpclient/httpclient-2.8.3.ebuild | 64 --------------------- |
14 |
2 files changed, 142 deletions(-) |
15 |
|
16 |
diff --git a/dev-ruby/httpclient/httpclient-2.8.3-r1.ebuild b/dev-ruby/httpclient/httpclient-2.8.3-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index c9e2e593e099..000000000000 |
19 |
--- a/dev-ruby/httpclient/httpclient-2.8.3-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,78 +0,0 @@ |
22 |
-# Copyright 1999-2022 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=5 |
26 |
- |
27 |
-USE_RUBY="ruby26 ruby27 ruby30" |
28 |
- |
29 |
-RUBY_FAKEGEM_TASK_TEST="-Ilib test" |
30 |
-RUBY_FAKEGEM_TASK_DOC="doc" |
31 |
- |
32 |
-RUBY_FAKEGEM_DOCDIR="doc" |
33 |
- |
34 |
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
35 |
- |
36 |
-RUBY_FAKEGEM_GEMSPEC="httpclient.gemspec" |
37 |
- |
38 |
-inherit ruby-fakegem eapi8-dosym |
39 |
- |
40 |
-DESCRIPTION="'httpclient' gives something like the functionality of libwww-perl (LWP) in Ruby" |
41 |
-HOMEPAGE="https://github.com/nahi/httpclient" |
42 |
-SRC_URI="https://github.com/nahi/httpclient/archive/v${PV}.tar.gz -> ${P}.tgz" |
43 |
- |
44 |
-LICENSE="Ruby" |
45 |
-SLOT="0" |
46 |
- |
47 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" |
48 |
-IUSE="" |
49 |
- |
50 |
-ruby_add_rdepend "virtual/ruby-ssl" |
51 |
- |
52 |
-ruby_add_bdepend "doc? ( dev-ruby/rdoc )" |
53 |
-ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/http-cookie )" |
54 |
- |
55 |
-all_ruby_prepare() { |
56 |
- rm Gemfile || die |
57 |
- sed -i -e '/[bB]undler/s:^:#:' Rakefile || die |
58 |
- |
59 |
- # Fix documentation task |
60 |
- sed -i -e 's/README.txt/README.md/' Rakefile || die |
61 |
- |
62 |
- # Remove mandatory CI reports since we don't need this for testing. |
63 |
- sed -i -e '/reporter/s:^:#:' Rakefile || die |
64 |
- |
65 |
- # Remove mandatory simplecov dependency |
66 |
- sed -i -e '/[Ss]imple[Cc]ov/ s:^:#:' test/helper.rb || die |
67 |
- |
68 |
- # Comment out test requiring network access that makes assumptions |
69 |
- # about the environment, bug 395155 |
70 |
- sed -i -e '/test_async_error/,/^ end/ s:^:#:' test/test_httpclient.rb || die |
71 |
- |
72 |
- # Skip tests using rack-ntlm which is not packaged. Weirdly these |
73 |
- # only fail on jruby. |
74 |
- rm test/test_auth.rb || die |
75 |
- |
76 |
- # Skip test failing due to hard-coded expired certificate |
77 |
- sed -i -e '/test_verification_without_httpclient/,/^ end/ s:^:#:' test/test_ssl.rb || die |
78 |
- |
79 |
- # Skip test depending on obsolete and vulnerable SSLv3 |
80 |
- sed -i -e '/test_no_sslv3/,/^ end/ s:^:#:' test/test_ssl.rb || die |
81 |
- |
82 |
- # Do not use 11-year-old bundled certificates! |
83 |
- # fix this copy so it doesn't fail tests |
84 |
- ln -sf "${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ./dist_key/cacerts.pem |
85 |
- ln -sf "${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ./lib/httpclient/cacert.pem |
86 |
-} |
87 |
- |
88 |
-each_ruby_test() { |
89 |
- ${RUBY} -Ilib:test:. -e 'gem "test-unit"; Dir["test/test_*.rb"].each{|f| require f}' || die |
90 |
-} |
91 |
- |
92 |
-each_ruby_install() { |
93 |
- each_fakegem_install |
94 |
- # Do not use 11-year-old bundled certificates! |
95 |
- # fix this copy for production systems |
96 |
- # do not ship the cacert1024.pem at all anymore, nobody should use RSA1024 certs! |
97 |
- rm -f "${ED}/$(ruby_fakegem_gemsdir)/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/lib/httpclient/"{cacert.pem,cacert1024}.pem |
98 |
- dosym8 -r /etc/ssl/certs/ca-certificates.crt $(ruby_fakegem_gemsdir)/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/lib/httpclient/cacert.pem |
99 |
-} |
100 |
|
101 |
diff --git a/dev-ruby/httpclient/httpclient-2.8.3.ebuild b/dev-ruby/httpclient/httpclient-2.8.3.ebuild |
102 |
deleted file mode 100644 |
103 |
index 160c1d9af9dd..000000000000 |
104 |
--- a/dev-ruby/httpclient/httpclient-2.8.3.ebuild |
105 |
+++ /dev/null |
106 |
@@ -1,64 +0,0 @@ |
107 |
-# Copyright 1999-2021 Gentoo Authors |
108 |
-# Distributed under the terms of the GNU General Public License v2 |
109 |
- |
110 |
-EAPI=5 |
111 |
- |
112 |
-USE_RUBY="ruby26 ruby27 ruby30" |
113 |
- |
114 |
-RUBY_FAKEGEM_TASK_TEST="-Ilib test" |
115 |
-RUBY_FAKEGEM_TASK_DOC="doc" |
116 |
- |
117 |
-RUBY_FAKEGEM_DOCDIR="doc" |
118 |
- |
119 |
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
120 |
- |
121 |
-RUBY_FAKEGEM_GEMSPEC="httpclient.gemspec" |
122 |
- |
123 |
-inherit ruby-fakegem |
124 |
- |
125 |
-DESCRIPTION="'httpclient' gives something like the functionality of libwww-perl (LWP) in Ruby" |
126 |
-HOMEPAGE="https://github.com/nahi/httpclient" |
127 |
-SRC_URI="https://github.com/nahi/httpclient/archive/v${PV}.tar.gz -> ${P}.tgz" |
128 |
- |
129 |
-LICENSE="Ruby" |
130 |
-SLOT="0" |
131 |
- |
132 |
-KEYWORDS="amd64 ~arm ~arm64 ~hppa ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" |
133 |
-IUSE="" |
134 |
- |
135 |
-ruby_add_rdepend "virtual/ruby-ssl" |
136 |
- |
137 |
-ruby_add_bdepend "doc? ( dev-ruby/rdoc )" |
138 |
-ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/http-cookie )" |
139 |
- |
140 |
-all_ruby_prepare() { |
141 |
- rm Gemfile || die |
142 |
- sed -i -e '/[bB]undler/s:^:#:' Rakefile || die |
143 |
- |
144 |
- # Fix documentation task |
145 |
- sed -i -e 's/README.txt/README.md/' Rakefile || die |
146 |
- |
147 |
- # Remove mandatory CI reports since we don't need this for testing. |
148 |
- sed -i -e '/reporter/s:^:#:' Rakefile || die |
149 |
- |
150 |
- # Remove mandatory simplecov dependency |
151 |
- sed -i -e '/[Ss]imple[Cc]ov/ s:^:#:' test/helper.rb || die |
152 |
- |
153 |
- # Comment out test requiring network access that makes assumptions |
154 |
- # about the environment, bug 395155 |
155 |
- sed -i -e '/test_async_error/,/^ end/ s:^:#:' test/test_httpclient.rb || die |
156 |
- |
157 |
- # Skip tests using rack-ntlm which is not packaged. Weirdly these |
158 |
- # only fail on jruby. |
159 |
- rm test/test_auth.rb || die |
160 |
- |
161 |
- # Skip test failing due to hard-coded expired certificate |
162 |
- sed -i -e '/test_verification_without_httpclient/,/^ end/ s:^:#:' test/test_ssl.rb || die |
163 |
- |
164 |
- # Skip test depending on obsolete and vulnerable SSLv3 |
165 |
- sed -i -e '/test_no_sslv3/,/^ end/ s:^:#:' test/test_ssl.rb || die |
166 |
-} |
167 |
- |
168 |
-each_ruby_test() { |
169 |
- ${RUBY} -Ilib:test:. -e 'gem "test-unit"; Dir["test/test_*.rb"].each{|f| require f}' || die |
170 |
-} |