1 |
commit: 708e4a450bd38fa2684dafa52a2280f85e30a7f8 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 3 05:19:59 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 3 05:45:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=708e4a45 |
7 |
|
8 |
dev-ruby/coolio: add 1.5.4 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
|
13 |
dev-ruby/coolio/Manifest | 1 + |
14 |
dev-ruby/coolio/coolio-1.5.4.ebuild | 57 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/coolio/Manifest b/dev-ruby/coolio/Manifest |
18 |
index 9be01d3d319..8c05a34993e 100644 |
19 |
--- a/dev-ruby/coolio/Manifest |
20 |
+++ b/dev-ruby/coolio/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST cool.io-1.5.3.gem 112128 BLAKE2B f343ee73e3796744ec21d3af13e92a0a462e10b262543c2d77ab0dd6c5250bbd6cf0d6579646d146983df1c2b288717f3d4e9f1d5d0cded58a9b1422e497dee5 SHA512 6ef61713acdccf951ebd64018a3d9ec83e2655895994fe23842e18cd2556f4d35ec42144577a83b30ef369a9047a58d1bba2224145653db0b7c203dfdca6c3c3 |
23 |
+DIST cool.io-1.5.4.gem 112128 BLAKE2B 49ae41e7ab3481609952d0234e3303d195f59d3a7f369c40aadf72b1c7a85cb46b189532025912d60e972d41f6abd1b4dce3b00d458f59ba80d98a3c51845adc SHA512 d618b3ff396dd2145f8af78e38cafa13c3bb8ca8b9c2d17c8d2884b15178a3f644a8afabadb1b2821b315a5625f169f58bb384f8829828303b9de0d761dec1e7 |
24 |
|
25 |
diff --git a/dev-ruby/coolio/coolio-1.5.4.ebuild b/dev-ruby/coolio/coolio-1.5.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..b0718cda696 |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/coolio/coolio-1.5.4.ebuild |
30 |
@@ -0,0 +1,57 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+USE_RUBY="ruby23 ruby24 ruby25 ruby26" |
37 |
+ |
38 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
39 |
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" |
40 |
+RUBY_FAKEGEM_NAME="cool.io" |
41 |
+ |
42 |
+RUBY_FAKEGEM_GEMSPEC="cool.io.gemspec" |
43 |
+ |
44 |
+inherit multilib ruby-fakegem |
45 |
+ |
46 |
+DESCRIPTION="A high performance event framework for Ruby which uses the libev C library" |
47 |
+HOMEPAGE="https://coolio.github.com/" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="" |
53 |
+ |
54 |
+# cool.io includes a bundled version of libev that is patched to work correctly with ruby. |
55 |
+ |
56 |
+ruby_add_rdepend ">=dev-ruby/iobuffer-1" |
57 |
+ |
58 |
+all_ruby_prepare() { |
59 |
+ rm -r Gemfile* lib/.gitignore || die |
60 |
+ |
61 |
+ sed -i -e '/[Bb]undler/d' Rakefile || die |
62 |
+ sed -i -e '28i s.add_dependency "iobuffer"' ${RUBY_FAKEGEM_GEMSPEC} || die |
63 |
+ sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die |
64 |
+ |
65 |
+ # Avoid dependency on rake-compiler |
66 |
+ sed -i -e '/extensiontask/ s:^:#:' \ |
67 |
+ -e '/ExtensionTask/,/^end/ s:^:#:' Rakefile || die |
68 |
+ |
69 |
+ # Remove specs that require network connectivity |
70 |
+ rm -f spec/dns_spec.rb || die |
71 |
+ |
72 |
+ # Use one address consistently |
73 |
+ sed -i -e 's/localhost/127.0.0.1/' spec/{udp_socket,tcp_server,iobuffer}_spec.rb || die |
74 |
+} |
75 |
+ |
76 |
+each_ruby_configure() { |
77 |
+ pushd ext/cool.io || die |
78 |
+ ${RUBY} extconf.rb || die |
79 |
+ popd || die |
80 |
+} |
81 |
+ |
82 |
+each_ruby_compile() { |
83 |
+ pushd ext/cool.io || die |
84 |
+ emake V=1 |
85 |
+ popd || die |
86 |
+ cp ext/cool.io/cool.io_ext$(get_modname) lib/ || die |
87 |
+} |