1 |
commit: 26f4a6627f317791d93b27b9ec07c2f403d444a7 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 26 07:10:14 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 26 07:20:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26f4a662 |
7 |
|
8 |
dev-ruby/coolio: add 1.7.0 |
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/coolio/Manifest | 1 + |
14 |
dev-ruby/coolio/coolio-1.7.0.ebuild | 57 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/coolio/Manifest b/dev-ruby/coolio/Manifest |
18 |
index 8acc4077910..07eb92d36c2 100644 |
19 |
--- a/dev-ruby/coolio/Manifest |
20 |
+++ b/dev-ruby/coolio/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST cool.io-1.6.0.gem 112128 BLAKE2B 829a2ce47342b4611fb76457836935e26902e5849dd7c43aae297f1d4b220c30020478d3176d15c179489be2ceb504da218b123d04cd6639a7b99e8a185f51eb SHA512 d6ef51ef15b804158b5d84a6a774368513e787d0bec12743d3ebf0c634d40b1fbfe213b5b7c484a1f3de0aaf894e5edb3072e39452d53886b00317a368570e76 |
23 |
+DIST cool.io-1.7.0.gem 112128 BLAKE2B 6c3db3fb6ac001321884de8cb1ffb4b1b8d7ef10afdd92cdbbae97672de43b75b79316cdd56f3a2075c7521742e1fd6874afdd9c218c68f532560d0fa77c0745 SHA512 e443fdd71a6bd0dd8409b7285a4fcea880aae2a43fc5687f664caa936ff4304b522bc07e148bdd51c91f8847ed2f482c5bbcee435dfab5282cf1114a47686d95 |
24 |
|
25 |
diff --git a/dev-ruby/coolio/coolio-1.7.0.ebuild b/dev-ruby/coolio/coolio-1.7.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..30cbd1fc5c9 |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/coolio/coolio-1.7.0.ebuild |
30 |
@@ -0,0 +1,57 @@ |
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 ruby27" |
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 |
+} |