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/http_parser_rb/
Date: Sat, 27 Aug 2022 23:11:45
Message-Id: 1661592198.e09d2f1ed5089f7bda3bd7effa0e563ecabd8648.graaff@gentoo
1 commit: e09d2f1ed5089f7bda3bd7effa0e563ecabd8648
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 27 09:22:29 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 27 09:23:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e09d2f1e
7
8 dev-ruby/http_parser_rb: add 0.8.0
9
10 Closes: https://bugs.gentoo.org/866950
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/http_parser_rb/Manifest | 1 +
14 .../http_parser_rb/http_parser_rb-0.8.0.ebuild | 29 ++++++++++++++++++++++
15 dev-ruby/http_parser_rb/metadata.xml | 1 +
16 3 files changed, 31 insertions(+)
17
18 diff --git a/dev-ruby/http_parser_rb/Manifest b/dev-ruby/http_parser_rb/Manifest
19 index 255fe0ce8758..91f97441ff0b 100644
20 --- a/dev-ruby/http_parser_rb/Manifest
21 +++ b/dev-ruby/http_parser_rb/Manifest
22 @@ -1 +1,2 @@
23 DIST http_parser.rb-0.6.0.gem 177664 BLAKE2B ecae9e862454584759cbb3158eb16dd6de09fe95c6b38099f1c6d4be2376ca1d3eb8a6713994da600c9c567193466da30f4784652e19ad796891a53d67578fff SHA512 51c29bfc85de8cedb4e98fec84c955252556abaa4d0848fbc38b232879ffc946c72acf38440e8e9f1e31a8b734a68d43a96924af5f48ac4f1a054153ec913a08
24 +DIST http_parser.rb-0.8.0.gem 195072 BLAKE2B e02fa70e5f5219d70c887db47541985b07f938bb32c4cca943a3d50f73e3baf820a733a2f479f5d40a2e1dabda4d8ae2466834c8b6d8167646a8fb6dcf7c792b SHA512 228e8a617154411c43a548f10d2d8d2cae2d97970f621b4ef2955de94ed1943611cff22659cd75d63a09a0a02396993ab646ee29303d99856b46a80253a618c8
25
26 diff --git a/dev-ruby/http_parser_rb/http_parser_rb-0.8.0.ebuild b/dev-ruby/http_parser_rb/http_parser_rb-0.8.0.ebuild
27 new file mode 100644
28 index 000000000000..d00c5f9020cd
29 --- /dev/null
30 +++ b/dev-ruby/http_parser_rb/http_parser_rb-0.8.0.ebuild
31 @@ -0,0 +1,29 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +USE_RUBY="ruby27 ruby30 ruby31"
37 +
38 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
39 +
40 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
41 +RUBY_FAKEGEM_EXTRADOC="README.md"
42 +
43 +RUBY_FAKEGEM_NAME="http_parser.rb"
44 +
45 +RUBY_FAKEGEM_EXTENSIONS=(ext/ruby_http_parser/extconf.rb)
46 +
47 +inherit ruby-fakegem
48 +
49 +DESCRIPTION="Simple callback-based HTTP request/response parser"
50 +HOMEPAGE="https://github.com/tmm1/http_parser.rb"
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
55 +IUSE=""
56 +
57 +all_ruby_prepare() {
58 + # rspec 3 compatibility
59 + sed -i -e 's/be_true/be true/; s/be_false/be false/' spec/parser_spec.rb || die
60 +}
61
62 diff --git a/dev-ruby/http_parser_rb/metadata.xml b/dev-ruby/http_parser_rb/metadata.xml
63 index 28c8973fca91..9f78bfb37c79 100644
64 --- a/dev-ruby/http_parser_rb/metadata.xml
65 +++ b/dev-ruby/http_parser_rb/metadata.xml
66 @@ -7,5 +7,6 @@
67 </maintainer>
68 <upstream>
69 <remote-id type="github">tmm1/http_parser.rb</remote-id>
70 + <remote-id type="rubygems">http_parser.rb</remote-id>
71 </upstream>
72 </pkgmetadata>