diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-02-17 06:45:36 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-02-17 06:45:36 +0100 |
commit | f8ecd28b26199e373eefd8783a6717fc8d5daa46 (patch) | |
tree | 79282fae3240fb5b88d0ee5cb1a10ef1d073521e | |
parent | dev-ruby/iobuffer: EAPI=7; fix extension install (diff) | |
download | gentoo-f8ecd28b26199e373eefd8783a6717fc8d5daa46.tar.gz gentoo-f8ecd28b26199e373eefd8783a6717fc8d5daa46.tar.bz2 gentoo-f8ecd28b26199e373eefd8783a6717fc8d5daa46.zip |
dev-ruby/coolio: add 1.7.1
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | dev-ruby/coolio/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/coolio/coolio-1.7.1.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/coolio/Manifest b/dev-ruby/coolio/Manifest index 07eb92d36c23..de32634e524b 100644 --- a/dev-ruby/coolio/Manifest +++ b/dev-ruby/coolio/Manifest @@ -1,2 +1,3 @@ DIST cool.io-1.6.0.gem 112128 BLAKE2B 829a2ce47342b4611fb76457836935e26902e5849dd7c43aae297f1d4b220c30020478d3176d15c179489be2ceb504da218b123d04cd6639a7b99e8a185f51eb SHA512 d6ef51ef15b804158b5d84a6a774368513e787d0bec12743d3ebf0c634d40b1fbfe213b5b7c484a1f3de0aaf894e5edb3072e39452d53886b00317a368570e76 DIST cool.io-1.7.0.gem 112128 BLAKE2B 6c3db3fb6ac001321884de8cb1ffb4b1b8d7ef10afdd92cdbbae97672de43b75b79316cdd56f3a2075c7521742e1fd6874afdd9c218c68f532560d0fa77c0745 SHA512 e443fdd71a6bd0dd8409b7285a4fcea880aae2a43fc5687f664caa936ff4304b522bc07e148bdd51c91f8847ed2f482c5bbcee435dfab5282cf1114a47686d95 +DIST cool.io-1.7.1.gem 112640 BLAKE2B 107d7541180de46c78542eab4b131220c4ae4a10210c7ff870f54eb24178b364fcac1abc4b93f8d0eccea197fb746cede95416aea8f3d5cc458626b1fa9a02f4 SHA512 9ab3e6ddd1689b2825f9bd82714b4ef5ac921dc4b2f84786971c3ec448577613cee73084c99090382878b0da43c9228cb2fd3a8627dc8f62ceeeff274dbdc929 diff --git a/dev-ruby/coolio/coolio-1.7.1.ebuild b/dev-ruby/coolio/coolio-1.7.1.ebuild new file mode 100644 index 000000000000..82cb3c7c0068 --- /dev/null +++ b/dev-ruby/coolio/coolio-1.7.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 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" + +RUBY_FAKEGEM_EXTENSIONS=(ext/cool.io/extconf.rb) + +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 +} |