diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-03-17 07:30:52 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-03-17 07:30:52 +0100 |
commit | a037e07efd55b118871fd332ba4e3fe0ce38bd63 (patch) | |
tree | ed66cab7ec639a1949e868fb4de6ecb56a8066d2 /dev-ruby/eventmachine | |
parent | x11-wm/bspwm: version bump to 0.9.1 (diff) | |
download | gentoo-a037e07efd55b118871fd332ba4e3fe0ce38bd63.tar.gz gentoo-a037e07efd55b118871fd332ba4e3fe0ce38bd63.tar.bz2 gentoo-a037e07efd55b118871fd332ba4e3fe0ce38bd63.zip |
dev-ruby/eventmachine: add 1.2.0.1
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/eventmachine')
-rw-r--r-- | dev-ruby/eventmachine/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/eventmachine/eventmachine-1.2.0.1.ebuild | 84 |
2 files changed, 85 insertions, 0 deletions
diff --git a/dev-ruby/eventmachine/Manifest b/dev-ruby/eventmachine/Manifest index 49c7bb014ea0..d8f80429790c 100644 --- a/dev-ruby/eventmachine/Manifest +++ b/dev-ruby/eventmachine/Manifest @@ -1,3 +1,4 @@ DIST eventmachine-1.0.3.gem 225792 SHA256 34424c87fc517f70ba137fe2281d16b53ce9c13f5cbfc2dda3ada56e96a65827 SHA512 ea4f0b1a2580d14e564641c49f0e3ac2a9c86d916dd2c5e938df22d1d105c00811154d8bfa7a0f9a8ce32783f5398524c70458c161eab2f0591c690e1e6a5573 WHIRLPOOL 52159101a59ba3d9eff28bedbc2baea46c867049de596f72da4d4a5784e79542f291275c61639d3dc6f062150d4819f7343d12e71bae8fc8954956d6d6db36e2 DIST eventmachine-1.0.8.gem 232960 SHA256 57ba18d8f76fb43f8842dd17cc3cebc46eea06a5d5033b3131ac8f73c7bc3bbb SHA512 55bfb8a22149495ca70913e6df6b9861cf0e10a512cdd25579064a816eb7e365bd0a03a1219ed23ed99772b9b312e3ce137781cb0890e31fbb5e5f542ba5ef70 WHIRLPOOL e4c295ebb6f931a0773b9fd9618598e56a7e5ec07908159aac4bdfb148b42ef0ee18d10e5f01008d2c435b008565b6d874a6776ab43d3171f372b6c855afbfaa DIST eventmachine-1.0.9.1.gem 235008 SHA256 9f4cb30b3bce0c2a90da875a81534f12cbf6f1174f80d64c32efbda1140b599e SHA512 5cbc178c604fe9a21850c298f7a5b6f904573f5e1db9e07fee599c5700841c52ec0311a6e50192eff9c1bb45cf30a9dd81d2150fe9d04cabd24cc7c9c32c5df0 WHIRLPOOL 9b46ec04930ff0d54b27cace94b9fe65118e122c96c15b5aed0a7ac7c4ff9e5e4bbf73c8325af2e50db7e7e4014cbfadd5b3dc287fe144bb5fc5610f7f9969e7 +DIST eventmachine-1.2.0.1.gem 241152 SHA256 a23d65be3492b5e8699699c549799e9d0fbffaac7bf9f5c0fd9afd23e287fbf1 SHA512 a861a2c5172b7cf2720bdb54f52ea96c311c10efdb2f54970054901674e044a72307a5b32210efbbdb78d0472a9b3fb6e898640e1c0b406bdad8b581970e30aa WHIRLPOOL 91e26345f995f2a77f6f9186fbda2614a99ff9abb5dc623cf0c610e2c1bcc4333efeac5dedc70269df23e71d2e5edd59a7ea6677571b810986cbc33e52d6bcc3 diff --git a/dev-ruby/eventmachine/eventmachine-1.2.0.1.ebuild b/dev-ruby/eventmachine/eventmachine-1.2.0.1.ebuild new file mode 100644 index 000000000000..c23e79254302 --- /dev/null +++ b/dev-ruby/eventmachine/eventmachine-1.2.0.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ruby20 crashes in test suite +USE_RUBY="ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_DOCDIR="rdoc" +RUBY_FAKEGEM_EXTRADOC="docs/*.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="EventMachine is a fast, simple event-processing library for Ruby programs" +HOMEPAGE="http://rubyeventmachine.com" + +LICENSE="|| ( GPL-2 Ruby )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="${DEPEND} + dev-libs/openssl:0" +RDEPEND="${RDEPEND} + dev-libs/openssl:0" + +ruby_add_bdepend "test? ( dev-ruby/test-unit:2 )" + +all_ruby_prepare() { + # Remove package tasks to avoid dependency on rake-compiler. + rm rakelib/package.rake || die + + # fix test issue - upstream b96b736b39261f7d74f013633cc7cd619afa20c4 + sed -i -e 's/DEBUG/BROADCAST/g' tests/test_set_sock_opt.rb || die + sed -i -e "/omit_/d" tests/test_*.rb || die + # Remove the resolver tests since they require network access and + # the localhost test fails with an IPv6 localhost. + rm tests/test_resolver.rb || die + # Needs a tty + rm tests/test_kb.rb || die + # Avoid tests that require network access + sed -i -e '/test_bind_connect/,/^ end/ s:^:#:' \ + tests/test_basic.rb || die + sed -i -e '/test_\(cookie\|http_client\|version_1_0\)/,/^ end/ s:^:#:' \ + tests/test_httpclient.rb || die + sed -i -e '/test_\(get\|https_get\)/,/^ end/ s:^:#:' \ + tests/test_httpclient2.rb || die + sed -i -e '/test_connect_timeout/,/^ end/ s:^:#:' \ + tests/test_unbind_reason.rb || die + sed -i -e '/test_for_real/,/^ end/ s:^:#:' \ + tests/test_pending_connect_timeout.rb || die + rm -f tests/test_{get_sock_opt,set_sock_opt,idle_connection}.rb || die +} + +each_ruby_configure() { + for extdir in ext ext/fastfilereader; do + pushd $extdir + ${RUBY} extconf.rb || die "extconf.rb failed for ${extdir}" + popd + done +} + +each_ruby_compile() { + for extdir in ext ext/fastfilereader; do + pushd $extdir + # both extensions use C++, so use the CXXFLAGS not the CFLAGS + emake V=1 CFLAGS="${CXXFLAGS} -fPIC" archflag="${LDFLAGS}" || die "emake failed for ${extdir}" + popd + cp $extdir/*.so lib/ || die "Unable to copy extensions for ${extdir}" + done +} + +each_ruby_test() { + ${RUBY} -Ilib -S testrb tests/test_*.rb || die +} + +all_ruby_install() { + all_fakegem_install + + insinto /usr/share/doc/${PF}/ + doins -r examples || die "Failed to install examples" +} |