diff options
Diffstat (limited to 'dev-ruby/celluloid')
-rw-r--r-- | dev-ruby/celluloid/Manifest | 8 | ||||
-rw-r--r-- | dev-ruby/celluloid/celluloid-0.16.0-r1.ebuild | 41 | ||||
-rw-r--r-- | dev-ruby/celluloid/celluloid-0.17.3.ebuild | 44 | ||||
-rw-r--r-- | dev-ruby/celluloid/files/celluloid-0.16.0-call-private-methods.patch | 19 | ||||
-rw-r--r-- | dev-ruby/celluloid/metadata.xml | 11 |
5 files changed, 123 insertions, 0 deletions
diff --git a/dev-ruby/celluloid/Manifest b/dev-ruby/celluloid/Manifest new file mode 100644 index 000000000000..edbd11c1bab1 --- /dev/null +++ b/dev-ruby/celluloid/Manifest @@ -0,0 +1,8 @@ +AUX celluloid-0.16.0-call-private-methods.patch 765 SHA256 dfb6006a0dd1b65b30f738e5e3cd2ccf72687a8aa96f3502023f90660bf78610 SHA512 322039ffb8c08f88c334e84123084aac3c870d2149d67d3bb083a6496a383cfe6506f4fd2b62fb1b59a261a9be4ab24975b6196cd74a2561f17e0a98dc6cae40 WHIRLPOOL 3f9f920114c4484fc2dd404c14820eb04801b88076dbe550809b88097d3fc3012bf8c31bbd64352940ad71ede7fd9acea38ca3fc83e8c4331e1c356f648ba1b6 +DIST celluloid-0.16.0-git.tgz 63859 SHA256 3f5d5be010c97b9a0a3a21008a0ad9880729e23cfda100b5df174279d427f338 SHA512 b1acc0daf35b16c086d720fccec93519de609e6c9e8f411ed70c48f3cfcb0c88f5ee665ac41e4a535e00eef112cae26ca2e8ab6b6de4738e13ed50579098d8ed WHIRLPOOL a9d583ff8495c978e3d042df781ae5ced30a97eea8b401bd8c763aa75c7f72cf0de49e1a131345ff1e991f4303745c58b491cd413e7cb6b287d8a5df85de254d +DIST celluloid-0.17.3.gem 61952 SHA256 afe25394c5954e3b14131389bb0550259deadaf37d90978b8399b6390f4e2282 SHA512 bb5005452ef7a2da1fb6b6515a6ad9df992dfd043caa605d1282a24b874c1f0798da0d19ee00f434486f9ef2c9467b1d6d2cadaa7883db98b885eeb842f1b94c WHIRLPOOL 8a006e779551327d8b583d014ad514fbf4b4f697f19c3c91dfd68e3455113e289ffaa083ca6355f191fe4ee4e32477758cc7f296d07d764fc34aae5685fe4128 +EBUILD celluloid-0.16.0-r1.ebuild 1315 SHA256 8c8efbda8083797aa15534a1fbfba3c379acd7a6721082fc0baaae1fc3c1f275 SHA512 3062aa391bef128d2482605aab724d8ebc2fd960716bc539db2e756dbafcf8ac15dbec761e3616468499a0373e38880511bfdb75828d7447843fff83db03a5e0 WHIRLPOOL 574c9e6c1751c367ff7e15b0b9c5a47d5c5dbbb1d5a40a52652c65c5211d38ab0467eaef570889476a586dd743664501f1aa5bcc215d022d6659a7de903024a8 +EBUILD celluloid-0.17.3.ebuild 1178 SHA256 747c8a7fcb2b21928ecd05ade9abd1f419184dc1a0d95d0f1ea89bd7f3b8fecd SHA512 8878fed12a3a31361a0e9fbd3ecb31975b8acc630fea1da440449fabaeb68e4fe82f81a41f118b02161a7751bcb83d7088b61566241020322a3939c4045d0455 WHIRLPOOL b9c1b55dbb4ee5925ac15315a38ce7aa68d474492310623bd304c4a51cf656c597028e3ca496c7bdadf32e4371f658f280966d758fd42211cdad86061c3f9af3 +MISC ChangeLog 4048 SHA256 98161fa23ee4f84ed28e969736184592810194ca132f6b3360dcbf835140f72d SHA512 ce4d73b3b2958afecc29018c6aa20c884d6dc06d45746977b31e383aca4224c6a2c985b691b149d83ef870682619bd14fdce25b4cf294b304d22781251944f4f WHIRLPOOL 110391de4c9a62ea3a4a64250fc3262f23640947c403a408f7faa341b8761f29f2af0951ded2fc0da9a86888db47a431b45b02ca654e4933f616272525dce411 +MISC ChangeLog-2015 2874 SHA256 1b2654367145a604a4e97243be9ae7c99b008a16d5eba3627a175dfd9216b16c SHA512 4f13ee49e5214e4faee60574ad31e8455132016e2dbb455df33782207cf8e5d00b85139137adc4f26de5a246496be1f4b0f97804491217cd7e43f79068adeccb WHIRLPOOL 0dbd61f38ea006429c23b74ec49453730faa334b67d49b10f8fb6c3d065a32af55a4fd745be7e64d24edf43fcc517bc60bd2be1e485ed7e1bd0cb3f0b57d4b78 +MISC metadata.xml 345 SHA256 9983ea029e8ca673716759e3416888085323a9ba90b21c8e6d0cd3dc2943fa8f SHA512 e07f38e8feadf085f1adeb737ff56aeb9cc4c79a3b7702f9c018544bebcc14646be394aa32ff5502c37ef0fb8968707b7f8d9a6fdaeff23cac5b71fabae46aa8 WHIRLPOOL a344973223a015af970b7aba3aa8d22b1a7fff3add6ffbe95ecfc9ad333b19c94b014d9abc7e082e6fc0e95cbd2e7744cedc7bceea55a03cbf52ba62d627d29f diff --git a/dev-ruby/celluloid/celluloid-0.16.0-r1.ebuild b/dev-ruby/celluloid/celluloid-0.16.0-r1.ebuild new file mode 100644 index 000000000000..30755bd02299 --- /dev/null +++ b/dev-ruby/celluloid/celluloid-0.16.0-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +# rbx or jruby recommended, but only in 1.9 mode. +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" +#Needed by dev-ruby/listen +RUBY_FAKEGEM_EXTRAINSTALL="spec" +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Provides a simple and natural way to build fault-tolerant concurrent programs" +HOMEPAGE="https://github.com/celluloid/celluloid" +SRC_URI="https://github.com/celluloid/celluloid/archive/v${PV}.tar.gz -> ${P}-git.tgz" +IUSE="" +SLOT="0" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RUBY_PATCHES=( "${P}-call-private-methods.patch" ) + +ruby_add_rdepend ">=dev-ruby/timers-4.0.0:4" + +all_ruby_prepare() { + rm Gemfile .rspec || die + + sed -i -e '/[Bb]undler/d' -e '/coveralls/I s:^:#:' spec/spec_helper.rb || die + + # Force loading of the correct timers slot to avoid a bundler dependency. + sed -i -e '3igem "timers", "~>4.0"' spec/spec_helper.rb || die + + # Adjust timers dependency to match our slots, bug 563018 + sed -i -e '/timers/ s/4.0.0/4.0/' ${RUBY_FAKEGEM_GEMSPEC} || die +} diff --git a/dev-ruby/celluloid/celluloid-0.17.3.ebuild b/dev-ruby/celluloid/celluloid-0.17.3.ebuild new file mode 100644 index 000000000000..7f86373950ae --- /dev/null +++ b/dev-ruby/celluloid/celluloid-0.17.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +# Needed by packages writing specs for celluloid +RUBY_FAKEGEM_EXTRAINSTALL="spec" +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="Provides a simple and natural way to build fault-tolerant concurrent programs" +HOMEPAGE="https://github.com/celluloid/celluloid" +IUSE="" +SLOT="0" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +ruby_add_rdepend " + dev-ruby/celluloid-essentials + dev-ruby/celluloid-extras + dev-ruby/celluloid-fsm + dev-ruby/celluloid-pool + dev-ruby/celluloid-supervision + >=dev-ruby/timers-4.1.1" + +ruby_add_bdepend "test? ( + dev-ruby/dotenv + dev-ruby/nenv + dev-ruby/rspec-retry +)" + +all_ruby_prepare() { + sed -i -e '/[Bb]undler/d' -e '/coveralls/I s:^:#:' spec/spec_helper.rb || die + + sed -i -e '1irequire "spec_helper"' spec/celluloid/actor/system_spec.rb || die + + sed -i -e '1irequire "pathname"' spec/spec_helper.rb || die + mkdir log || die +} diff --git a/dev-ruby/celluloid/files/celluloid-0.16.0-call-private-methods.patch b/dev-ruby/celluloid/files/celluloid-0.16.0-call-private-methods.patch new file mode 100644 index 000000000000..f503a2334c84 --- /dev/null +++ b/dev-ruby/celluloid/files/celluloid-0.16.0-call-private-methods.patch @@ -0,0 +1,19 @@ +commit 092ce58aa8713f387ae3d0467b6d8029cf2765cd +Author: Jonathan <chapmajs@gmail.com> +Date: Sun Oct 19 22:05:26 2014 -0400 + + Allowing calls to private_methods + +diff --git a/lib/celluloid/proxies/abstract_proxy.rb b/lib/celluloid/proxies/abstract_proxy.rb +index 6a79acb..2db7a8e 100644 +--- a/lib/celluloid/proxies/abstract_proxy.rb ++++ b/lib/celluloid/proxies/abstract_proxy.rb +@@ -5,7 +5,7 @@ module Celluloid + def __class__; AbstractProxy; end + + # Needed for storing proxies in data structures +- needed = [:object_id, :__id__, :hash] - instance_methods ++ needed = [:object_id, :__id__, :hash, :private_methods] - instance_methods + if needed.any? + include ::Kernel.dup.module_eval { + undef_method(*(instance_methods - needed)) diff --git a/dev-ruby/celluloid/metadata.xml b/dev-ruby/celluloid/metadata.xml new file mode 100644 index 000000000000..8a1a7aed35b3 --- /dev/null +++ b/dev-ruby/celluloid/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> + <upstream> + <remote-id type="github">celluloid/celluloid</remote-id> + </upstream> +</pkgmetadata> |