diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
commit | f70a1bfc721336d4fc7dfb711c2f518a6b18cf16 (patch) | |
tree | e907cb121b30e3c1df1710719c0ddf4029597a47 /dev-ruby/coolio | |
parent | db063b515939ab15261136b24e4bc44386335c0c (diff) |
gentoo resync : 30.09.2020
Diffstat (limited to 'dev-ruby/coolio')
-rw-r--r-- | dev-ruby/coolio/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/coolio/coolio-1.7.0.ebuild | 57 |
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-ruby/coolio/Manifest b/dev-ruby/coolio/Manifest index d0e6ca7368c2..df0bc6fbf914 100644 --- a/dev-ruby/coolio/Manifest +++ b/dev-ruby/coolio/Manifest @@ -1,3 +1,5 @@ DIST cool.io-1.6.0.gem 112128 BLAKE2B 829a2ce47342b4611fb76457836935e26902e5849dd7c43aae297f1d4b220c30020478d3176d15c179489be2ceb504da218b123d04cd6639a7b99e8a185f51eb SHA512 d6ef51ef15b804158b5d84a6a774368513e787d0bec12743d3ebf0c634d40b1fbfe213b5b7c484a1f3de0aaf894e5edb3072e39452d53886b00317a368570e76 +DIST cool.io-1.7.0.gem 112128 BLAKE2B 6c3db3fb6ac001321884de8cb1ffb4b1b8d7ef10afdd92cdbbae97672de43b75b79316cdd56f3a2075c7521742e1fd6874afdd9c218c68f532560d0fa77c0745 SHA512 e443fdd71a6bd0dd8409b7285a4fcea880aae2a43fc5687f664caa936ff4304b522bc07e148bdd51c91f8847ed2f482c5bbcee435dfab5282cf1114a47686d95 EBUILD coolio-1.6.0.ebuild 1446 BLAKE2B b02a2812141f06849746a78cc80d80f976d551b757ccccd6fb538166b05eb4092e513cf78fc5309d392aec224ec31c7456c54a9ed84608403838df0248d15a60 SHA512 ccbdf45fb33cc23061d8b59f61db20e43a4218bc11f3cab834c890b72e49c785f3d1bdc1d31033fb65b97124f54335a9cec0d4fe8a17bac31d7673da5100fe50 +EBUILD coolio-1.7.0.ebuild 1439 BLAKE2B ccbb6b6695432b9b36f68cd426ae9a346375b53d0597cfd6a2aca5dd749f6d27f42ee1d321683ecd76b86bf04a9b5b7c2b16760ea4e0f61c46edf346a6866f83 SHA512 6e91969a45e80c178fbe04360a66aaba2423db1fd162a90f9bb70d310f27e45bea3c6d0fa9678eeceb3b87aca67c419f14fe33a8c97b8b01c5801863573af943 MISC metadata.xml 247 BLAKE2B 7717702c51c35b2a20983332abc6218047b2b5036e6b4c09d3d58b4339e8f9e776879cd116cfda60d3bcf4188859993fb9f3f779aaf595f155d53e85288f3dcc SHA512 ea4c044637b751a2c28c6ac226121e74ef18196af4b594e60413fec907bbab29c6b0c7735c3f503485df16dcfb36ddb86038394d92e2cd18c8f04626628e9f09 diff --git a/dev-ruby/coolio/coolio-1.7.0.ebuild b/dev-ruby/coolio/coolio-1.7.0.ebuild new file mode 100644 index 000000000000..30cbd1fc5c95 --- /dev/null +++ b/dev-ruby/coolio/coolio-1.7.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" +RUBY_FAKEGEM_NAME="cool.io" + +RUBY_FAKEGEM_GEMSPEC="cool.io.gemspec" + +inherit multilib ruby-fakegem + +DESCRIPTION="A high performance event framework for Ruby which uses the libev C library" +HOMEPAGE="https://coolio.github.com/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# cool.io includes a bundled version of libev that is patched to work correctly with ruby. + +ruby_add_rdepend ">=dev-ruby/iobuffer-1" + +all_ruby_prepare() { + rm -r Gemfile* lib/.gitignore || die + + sed -i -e '/[Bb]undler/d' Rakefile || die + sed -i -e '28i s.add_dependency "iobuffer"' ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid dependency on rake-compiler + sed -i -e '/extensiontask/ s:^:#:' \ + -e '/ExtensionTask/,/^end/ s:^:#:' Rakefile || die + + # Remove specs that require network connectivity + rm -f spec/dns_spec.rb || die + + # Use one address consistently + sed -i -e 's/localhost/127.0.0.1/' spec/{udp_socket,tcp_server,iobuffer}_spec.rb || die +} + +each_ruby_configure() { + pushd ext/cool.io || die + ${RUBY} extconf.rb || die + popd || die +} + +each_ruby_compile() { + pushd ext/cool.io || die + emake V=1 + popd || die + cp ext/cool.io/cool.io_ext$(get_modname) lib/ || die +} |