1 |
commit: b173bf40d39751dccdb5780ec7557f61bb9b5b4b |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 05:45:04 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 06:09:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b173bf40 |
7 |
|
8 |
dev-ruby/em-websocket: add 0.5.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/em-websocket/Manifest | 1 + |
14 |
dev-ruby/em-websocket/em-websocket-0.5.2.ebuild | 47 +++++++++++++++++++++++++ |
15 |
2 files changed, 48 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/em-websocket/Manifest b/dev-ruby/em-websocket/Manifest |
18 |
index 1d6e1bc1ba1..b374a75d4ce 100644 |
19 |
--- a/dev-ruby/em-websocket/Manifest |
20 |
+++ b/dev-ruby/em-websocket/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST em-websocket-0.5.1.tar.gz 27792 BLAKE2B 5aa8b9b9a1bf7066086c3115358a01054dbd24c3b9e7b454210c653aa25face2230e5504e0fc3a13d4770bcfcdf5d792c1914f173ec8d83d1b97ee7c169636af SHA512 ca2b4e2e4be663a5932fe63ed0efab169fbee9aec50f9780c1ee5df0efa300acb58410b97a22d5d10a2cb9195c2a68f6c71bf4e070ee6d915c6abf4015aa5d94 |
23 |
+DIST em-websocket-0.5.2.tar.gz 29367 BLAKE2B 91d41044e20f1f8277527205e3ee6671de2a1fb9b433c18d5b48a166c7cfa53c6553e32b726326f126981f0e014625075bc918b71e00bd8a6919670c370b6cab SHA512 46df705e2af93082884c7ca521df4f6cf33309c441eb3ba96be609b2cf280e3b72c689810d55279db6dbbc178ed843d64ccdaf9d4b39d52ddac7d84956065b06 |
24 |
|
25 |
diff --git a/dev-ruby/em-websocket/em-websocket-0.5.2.ebuild b/dev-ruby/em-websocket/em-websocket-0.5.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..61ebed06f90 |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/em-websocket/em-websocket-0.5.2.ebuild |
30 |
@@ -0,0 +1,47 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+USE_RUBY="ruby25 ruby26" |
37 |
+ |
38 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
39 |
+ |
40 |
+RUBY_FAKEGEM_DOCDIR="rdoc" |
41 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
42 |
+ |
43 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
44 |
+ |
45 |
+inherit ruby-fakegem |
46 |
+ |
47 |
+DESCRIPTION="EventMachine based WebSocket server" |
48 |
+HOMEPAGE="https://rubygems.org/gems/em-websocket" |
49 |
+SRC_URI="https://github.com/igrigorik/em-websocket/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
54 |
+IUSE="" |
55 |
+ |
56 |
+ruby_add_rdepend " |
57 |
+ >=dev-ruby/eventmachine-0.12.9 |
58 |
+ =dev-ruby/http_parser_rb-0.6* |
59 |
+" |
60 |
+ |
61 |
+all_ruby_prepare() { |
62 |
+ # Avoid dependency on git |
63 |
+ sed -i -e '/ls-files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die |
64 |
+ |
65 |
+ # Only run unit tests since we require unpackaged code for the |
66 |
+ # integration tests. |
67 |
+ sed -i -e "/^require 'em-\(spec\|http\|websocket-client\)/ s:^:#:" \ |
68 |
+ -e "/^require 'integration/ s:^:#:" spec/helper.rb || die |
69 |
+ rm -fr spec/integration || die |
70 |
+} |
71 |
+ |
72 |
+all_ruby_install() { |
73 |
+ all_fakegem_install |
74 |
+ |
75 |
+ insinto /usr/share/doc/${PF}/ |
76 |
+ doins -r examples |
77 |
+} |