diff options
author | Hans de Graaff <graaff@gentoo.org> | 2007-08-04 19:37:18 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2007-08-04 19:37:18 +0000 |
commit | 9f5086e8c8ab5f66caf7d7f8a369e4adeabd9aaa (patch) | |
tree | a57e43f19036c787c6a705e4c4c58dacce7379c5 /dev-ruby | |
parent | whitespace (diff) | |
download | gentoo-2-9f5086e8c8ab5f66caf7d7f8a369e4adeabd9aaa.tar.gz gentoo-2-9f5086e8c8ab5f66caf7d7f8a369e4adeabd9aaa.tar.bz2 gentoo-2-9f5086e8c8ab5f66caf7d7f8a369e4adeabd9aaa.zip |
Add patch from bug 186838 to fix compatibility with newer ruby versions.
(Portage version: 2.1.2.11)
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/ruby-pcap/ChangeLog | 6 | ||||
-rw-r--r-- | dev-ruby/ruby-pcap/files/ruby-pcap-0.6-fixnum.patch | 15 | ||||
-rw-r--r-- | dev-ruby/ruby-pcap/ruby-pcap-0.6.ebuild | 6 |
3 files changed, 24 insertions, 3 deletions
diff --git a/dev-ruby/ruby-pcap/ChangeLog b/dev-ruby/ruby-pcap/ChangeLog index 1a52e6845965..989716c0c70f 100644 --- a/dev-ruby/ruby-pcap/ChangeLog +++ b/dev-ruby/ruby-pcap/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-ruby/ruby-pcap # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-pcap/ChangeLog,v 1.2 2007/01/21 08:17:15 pclouds Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-pcap/ChangeLog,v 1.3 2007/08/04 19:37:18 graaff Exp $ + + 04 Aug 2007; Hans de Graaff <graaff@gentoo.org> + +files/ruby-pcap-0.6-fixnum.patch, ruby-pcap-0.6.ebuild: + Add patch from bug #186838 to fix compatibility with newer versions of ruby. 21 Jan 2007; Nguyễn Thái Ngọc Duy <pclouds@gentoo.org> ruby-pcap-0.6.ebuild: diff --git a/dev-ruby/ruby-pcap/files/ruby-pcap-0.6-fixnum.patch b/dev-ruby/ruby-pcap/files/ruby-pcap-0.6-fixnum.patch new file mode 100644 index 000000000000..406eed25a7ea --- /dev/null +++ b/dev-ruby/ruby-pcap/files/ruby-pcap-0.6-fixnum.patch @@ -0,0 +1,15 @@ +--- Pcap.c.orig 2007-08-04 21:32:58.837581638 +0200 ++++ Pcap.c 2007-08-04 21:33:36.523548516 +0200 +@@ -782,9 +782,9 @@ + /* define class PcapStat */ + cPcapStat = rb_funcall(rb_cStruct, rb_intern("new"), 4, + Qnil, +- INT2NUM(rb_intern("recv")), +- INT2NUM(rb_intern("drop")), +- INT2NUM(rb_intern("ifdrop"))); ++ ID2SYM(rb_intern("recv")), ++ ID2SYM(rb_intern("drop")), ++ ID2SYM(rb_intern("ifdrop"))); + rb_define_const(mPcap, "Stat", cPcapStat); + + /* define exception classes */ diff --git a/dev-ruby/ruby-pcap/ruby-pcap-0.6.ebuild b/dev-ruby/ruby-pcap/ruby-pcap-0.6.ebuild index c15eb9bb6862..ab9cf9e968a2 100644 --- a/dev-ruby/ruby-pcap/ruby-pcap-0.6.ebuild +++ b/dev-ruby/ruby-pcap/ruby-pcap-0.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-pcap/ruby-pcap-0.6.ebuild,v 1.2 2007/01/21 08:17:15 pclouds Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-pcap/ruby-pcap-0.6.ebuild,v 1.3 2007/08/04 19:37:18 graaff Exp $ RUBY_BUG_145222=yes inherit ruby @@ -14,7 +14,9 @@ SRC_URI="http://www.goto.info.waseda.ac.jp/%7efukusima/ruby/${P}.tar.gz" SLOT="0" USE_RUBY="ruby16 ruby18" LICENSE="GPL-2" -KEYWORDS="~x86" +KEYWORDS="~amd64 ~x86" DEPEND="net-libs/libpcap" S="${WORKDIR}/pcap" + +PATCHES="${FILESDIR}/ruby-pcap-0.6-fixnum.patch" |