diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2012-04-17 15:47:11 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2012-04-17 15:47:11 +0000 |
commit | cfbec2a9f2d1bffcef3c3788f7db1395e534b74a (patch) | |
tree | 8a028c883ea68490b701b9d48e819c3defffbe95 /dev-ruby | |
parent | masking libvirt use on cfengine (diff) | |
download | gentoo-2-cfbec2a9f2d1bffcef3c3788f7db1395e534b74a.tar.gz gentoo-2-cfbec2a9f2d1bffcef3c3788f7db1395e534b74a.tar.bz2 gentoo-2-cfbec2a9f2d1bffcef3c3788f7db1395e534b74a.zip |
Added RESTRICT="test".
(Portage version: 2.1.10.54/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/coolio/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/coolio/coolio-1.1.0-r2.ebuild (renamed from dev-ruby/coolio/coolio-1.1.0.ebuild) | 20 | ||||
-rw-r--r-- | dev-ruby/coolio/files/coolio-1.1.0-rubyio.patch | 32 |
3 files changed, 55 insertions, 5 deletions
diff --git a/dev-ruby/coolio/ChangeLog b/dev-ruby/coolio/ChangeLog index f8c1f92d885c..bdd0ef4b0f3d 100644 --- a/dev-ruby/coolio/ChangeLog +++ b/dev-ruby/coolio/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/coolio # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/coolio/ChangeLog,v 1.2 2012/03/14 18:40:06 matsuu Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/coolio/ChangeLog,v 1.3 2012/04/17 15:47:11 matsuu Exp $ + +*coolio-1.1.0-r2 (17 Apr 2012) + + 17 Apr 2012; MATSUU Takuto <matsuu@gentoo.org> -coolio-1.1.0.ebuild, + +coolio-1.1.0-r2.ebuild, +files/coolio-1.1.0-rubyio.patch: + Added RESTRICT="test". *coolio-1.1.0-r1 (14 Mar 2012) diff --git a/dev-ruby/coolio/coolio-1.1.0.ebuild b/dev-ruby/coolio/coolio-1.1.0-r2.ebuild index d3b86eab994c..8ba656bf850a 100644 --- a/dev-ruby/coolio/coolio-1.1.0.ebuild +++ b/dev-ruby/coolio/coolio-1.1.0-r2.ebuild @@ -1,12 +1,11 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/coolio/coolio-1.1.0.ebuild,v 1.1 2012/03/14 15:10:54 matsuu Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/coolio/coolio-1.1.0-r2.ebuild,v 1.1 2012/04/17 15:47:11 matsuu Exp $ EAPI="4" # iobuffer: -jruby -rbx USE_RUBY="ruby18 ruby19 ree18" -RUBY_FAKEGEM_TASK_TEST="" -RUBY_FAKEGEM_DOCDIR="" +RUBY_FAKEGEM_TASK_TEST="spec" RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" RUBY_FAKEGEM_NAME="cool.io" @@ -22,6 +21,19 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" +DEPEND="dev-libs/libev" +RDEPEND="${DEPEND}" + +RESTRICT="test" # need network + +RUBY_PATCHES=( "${P}-libev.patch" "${P}-rubyio.patch" ) + ruby_add_rdepend ">=dev-ruby/iobuffer-1" -S="${WORKDIR}/${MY_P}" +all_ruby_prepare() { + rm -r Gemfile* ext/libev ext/cool.io/libev.c lib/.gitignore || die +} + +each_ruby_compile() { + ${RUBY} -S rake compile || die +} diff --git a/dev-ruby/coolio/files/coolio-1.1.0-rubyio.patch b/dev-ruby/coolio/files/coolio-1.1.0-rubyio.patch new file mode 100644 index 000000000000..a47e607702ca --- /dev/null +++ b/dev-ruby/coolio/files/coolio-1.1.0-rubyio.patch @@ -0,0 +1,32 @@ +diff --git a/ext/cool.io/cool.io.h b/ext/cool.io/cool.io.h +index 364d4ae..05ce5bc 100644 +--- a/ext/cool.io/cool.io.h ++++ b/ext/cool.io/cool.io.h +@@ -8,7 +8,11 @@ + #define COOLIO_H + + #include "ruby.h" ++#ifdef HAVE_RUBY_IO_H ++#include "ruby/io.h" ++#else + #include "rubyio.h" ++#endif + + #ifdef GetReadFile + #define FPTR_TO_FD(fptr) (fileno(GetReadFile(fptr))) +diff --git a/ext/cool.io/iowatcher.c b/ext/cool.io/iowatcher.c +index 09ff87b..ccf6a3f 100644 +--- a/ext/cool.io/iowatcher.c ++++ b/ext/cool.io/iowatcher.c +@@ -5,7 +5,11 @@ + */ + + #include "ruby.h" ++#ifdef HAVE_RUBY_IO_H ++#include "ruby/io.h" ++#else + #include "rubyio.h" ++#endif + + #include "ev_wrap.h" + |