[48994] trunk/dports/ruby

jmr at macports.org jmr at macports.org
Wed Apr 1 09:58:10 PDT 2009


Revision: 48994
          http://trac.macports.org/changeset/48994
Author:   jmr at macports.org
Date:     2009-04-01 09:58:09 -0700 (Wed, 01 Apr 2009)
Log Message:
-----------
New port: rb-pcap (#17387)

Added Paths:
-----------
    trunk/dports/ruby/rb-pcap/
    trunk/dports/ruby/rb-pcap/Portfile
    trunk/dports/ruby/rb-pcap/files/
    trunk/dports/ruby/rb-pcap/files/patch-Pcap.c.diff

Added: trunk/dports/ruby/rb-pcap/Portfile
===================================================================
--- trunk/dports/ruby/rb-pcap/Portfile	                        (rev 0)
+++ trunk/dports/ruby/rb-pcap/Portfile	2009-04-01 16:58:09 UTC (rev 48994)
@@ -0,0 +1,26 @@
+# $Id$
+
+PortSystem          1.0
+PortGroup           ruby 1.0
+
+ruby.setup          {pcap ruby-pcap} 0.6 extconf.rb
+
+categories          ruby net
+maintainers         atnan.com:nathan nomaintainer
+description         Ruby interface to LBL Packet Capture library (libpcap).
+long_description    Ruby interface to LBL Packet Capture library (libpcap). \
+                    This library also includes classes to access packet header \
+                    fields. It is much easier to code in Ruby/Pcap than to code \
+                    in C and use libpcap directly.
+homepage            http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html
+platforms           darwin
+master_sites        http://www.goto.info.waseda.ac.jp/~fukusima/ruby/ \
+                    ftp://ftp.iDaemons.org/pub/distfiles/ruby/
+
+worksrcdir          pcap
+patchfiles          patch-Pcap.c.diff
+checksums           md5 bf8024831bfbbf0cfbf7c7ca27c1b16a \
+                    sha1 d098a04e4bb5e414fc10d267b3d6dcf9490bccd3 \
+                    rmd160 6422c9fe0a5a35f5cc1fe6cba418223d0e764766
+
+depends_lib-append  port:libpcap


Property changes on: trunk/dports/ruby/rb-pcap/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/ruby/rb-pcap/files/patch-Pcap.c.diff
===================================================================
--- trunk/dports/ruby/rb-pcap/files/patch-Pcap.c.diff	                        (rev 0)
+++ trunk/dports/ruby/rb-pcap/files/patch-Pcap.c.diff	2009-04-01 16:58:09 UTC (rev 48994)
@@ -0,0 +1,15 @@
+--- Pcap.c.orig	2008-11-25 13:29:00.000000000 +1100
++++ Pcap.c	2008-11-25 13:29:42.000000000 +1100
+@@ -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 */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090401/5cb831e3/attachment.html>


More information about the macports-changes mailing list