diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-09-26 09:10:14 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-09-26 09:20:02 +0200 |
commit | 26f4a6627f317791d93b27b9ec07c2f403d444a7 (patch) | |
tree | 5c2eb10efcc87c7c81426a301ec7c4bfddfbbb64 /dev-ruby/coolio | |
parent | profiles/arch/arm/armv7a: unmask media-libs/libavif (diff) | |
download | gentoo-26f4a6627f317791d93b27b9ec07c2f403d444a7.tar.gz gentoo-26f4a6627f317791d93b27b9ec07c2f403d444a7.tar.bz2 gentoo-26f4a6627f317791d93b27b9ec07c2f403d444a7.zip |
dev-ruby/coolio: add 1.7.0
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/coolio')
-rw-r--r-- | dev-ruby/coolio/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/coolio/coolio-1.7.0.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-ruby/coolio/Manifest b/dev-ruby/coolio/Manifest index 8acc4077910b..07eb92d36c23 100644 --- a/dev-ruby/coolio/Manifest +++ b/dev-ruby/coolio/Manifest @@ -1 +1,2 @@ DIST cool.io-1.6.0.gem 112128 BLAKE2B 829a2ce47342b4611fb76457836935e26902e5849dd7c43aae297f1d4b220c30020478d3176d15c179489be2ceb504da218b123d04cd6639a7b99e8a185f51eb SHA512 d6ef51ef15b804158b5d84a6a774368513e787d0bec12743d3ebf0c634d40b1fbfe213b5b7c484a1f3de0aaf894e5edb3072e39452d53886b00317a368570e76 +DIST cool.io-1.7.0.gem 112128 BLAKE2B 6c3db3fb6ac001321884de8cb1ffb4b1b8d7ef10afdd92cdbbae97672de43b75b79316cdd56f3a2075c7521742e1fd6874afdd9c218c68f532560d0fa77c0745 SHA512 e443fdd71a6bd0dd8409b7285a4fcea880aae2a43fc5687f664caa936ff4304b522bc07e148bdd51c91f8847ed2f482c5bbcee435dfab5282cf1114a47686d95 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 +} |