diff options
Diffstat (limited to 'dev-ruby/eventmachine')
-rw-r--r-- | dev-ruby/eventmachine/Manifest | 7 | ||||
-rw-r--r-- | dev-ruby/eventmachine/eventmachine-1.0.9.1.ebuild | 81 | ||||
-rw-r--r-- | dev-ruby/eventmachine/eventmachine-1.2.0.1.ebuild | 83 | ||||
-rw-r--r-- | dev-ruby/eventmachine/metadata.xml | 11 |
4 files changed, 182 insertions, 0 deletions
diff --git a/dev-ruby/eventmachine/Manifest b/dev-ruby/eventmachine/Manifest new file mode 100644 index 000000000000..87891dc653a3 --- /dev/null +++ b/dev-ruby/eventmachine/Manifest @@ -0,0 +1,7 @@ +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 +EBUILD eventmachine-1.0.9.1.ebuild 2439 SHA256 cb9610c4f26281caa8454600ee7ce1b72fde4f266dd0510ca7e4e53ce90fd4ec SHA512 a94a37275262e2b30a753e31fa5090bba3fd6ec1b05651fc6bd6e2a5ceb1d893c46d1643ce11dcf5ec1cd78be7616f4191d7e2e44f90d3183e8cd36d9d3d9379 WHIRLPOOL ae3aa0ab669e51e8d200e25ade86d3fd828e3920f47c4dd99b5450385ad902ad846de1d01a649fe486522be05ed92e99fc671082fc8d55e7704cce7dad196a86 +EBUILD eventmachine-1.2.0.1.ebuild 2499 SHA256 84361d2cd1a25b5e4fd029367666fef2b3bc60b08190664945f53efba08e1b7c SHA512 cf81861a278616e7cf5ee26224d287c4e889e23a44caa336249274a445b3dfdaf6d324227cd4b9518d2fff74c8f1028ac558d36d714b98153d87d75746b9478d WHIRLPOOL a681d299f0c4abf05a2a83dc8b4f2945c05c86517d04e221b56de5b34634615acf1a73b6e6d107af73be0a885bc6711673371b3374e7eed5af75e9e6963726fb +MISC ChangeLog 4552 SHA256 79260cd924a5c83d7adc5612ae7f16bafe1f4339cabd7140c1da0c46bb23cfbc SHA512 245a5e9d3754f16806ce7ab8e8f5c0690a993a201aebd6e1e104bd166872e95991314cd71558bc146ce8a86f885f1d276a496b575a52d570aa5d97570ba1852e WHIRLPOOL a81c1f501b7e8b5aa4842d812f1dc17dcfa2ea7b3b6437cb2bbcbfcdd54010b998dffe3e25fc84a2b8923dd3ef0e729c5f0f4f8cc8c3b5e1766e55401941cee6 +MISC ChangeLog-2015 5456 SHA256 449e1c6256aa96cdbc799d924226f0b52fdb6819cbb2d212af978c12ff6ee838 SHA512 a7c982605a2c84b444596bb22f9422ed7ec690ad0ac37dfdeba3a6106b6fe804f9511c3e60d5abc53f3ccc30501c1b9278b19c58ebaee91597cf25087282b1eb WHIRLPOOL 3dab7d9568cda827f9fc6cddb49eb50c1746805cbd3d17e959ae4179a5dfaf80cf34a0820ec70d190a85e2a7cf0a745bf95e9b34f48cd7bb05dac802be220ed4 +MISC metadata.xml 523 SHA256 967fba63a9745c8c46be1117b779013679aab374d0236d1724bf60c82a22bc9f SHA512 622ac8cdd832ad49db828fefc3c9ab089e1d7e3795e369778591b4f572a647a99d4625fb9a3624189d0521a8daa9d2360bfe01fd905e8d106b83e244d900e509 WHIRLPOOL 60097f7af309a9808be1d4ee8935cad2030986513a01c3f0522d7d3acb129dd228fd86867c87d5c9ded037ba526920477746abe1e897a07422be977f68d2d9dc diff --git a/dev-ruby/eventmachine/eventmachine-1.0.9.1.ebuild b/dev-ruby/eventmachine/eventmachine-1.0.9.1.ebuild new file mode 100644 index 000000000000..7f0b8880d3c2 --- /dev/null +++ b/dev-ruby/eventmachine/eventmachine-1.0.9.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_RECIPE_DOC="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" +} 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..f33030d66141 --- /dev/null +++ b/dev-ruby/eventmachine/eventmachine-1.2.0.1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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" +} diff --git a/dev-ruby/eventmachine/metadata.xml b/dev-ruby/eventmachine/metadata.xml new file mode 100644 index 000000000000..b61ffaa1744c --- /dev/null +++ b/dev-ruby/eventmachine/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> +</maintainer> +<longdescription> +Ruby/EventMachine is a fast, simple event-processing library for Ruby programs. It lets you write network clients and servers without handling sockets- all you do is send and receive data. Single-threaded socket engine- scalable and FAST! +</longdescription> +</pkgmetadata> |