[38036] trunk/dports/ruby
raimue at macports.org
raimue at macports.org
Thu Jul 3 18:32:33 PDT 2008
Revision: 38036
http://trac.macosforge.org/projects/macports/changeset/38036
Author: raimue at macports.org
Date: 2008-07-03 18:32:32 -0700 (Thu, 03 Jul 2008)
Log Message:
-----------
ruby/rb-net-geoip:
New port, closes #15596
Added Paths:
-----------
trunk/dports/ruby/rb-net-geoip/
trunk/dports/ruby/rb-net-geoip/Portfile
trunk/dports/ruby/rb-net-geoip/files/
trunk/dports/ruby/rb-net-geoip/files/patch-extconf.rb
trunk/dports/ruby/rb-net-geoip/files/patch-geoip.c
Added: trunk/dports/ruby/rb-net-geoip/Portfile
===================================================================
--- trunk/dports/ruby/rb-net-geoip/Portfile (rev 0)
+++ trunk/dports/ruby/rb-net-geoip/Portfile 2008-07-04 01:32:32 UTC (rev 38036)
@@ -0,0 +1,28 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup ruby 1.0
+
+ruby.setup net-geoip 0.06 extconf.rb
+maintainers kykim at mac.com
+description Net::Geoip
+long_description Net::Geoip module to interface with the GeoIP library provided my MaxMind
+homepage http://www.maxmind.com/app/ruby
+platforms darwin
+master_sites http://www.maxmind.com/download/geoip/api/ruby/
+distname net-geoip-${version}
+
+checksums md5 4bbae1a05a4339f79e2853778d4b50f3 \
+ sha1 45dac7a1e4d738b62043e0e0819b198046063391 \
+ rmd160 041a8532d4e3f222b87c17fa11cc87f7aa31920e
+
+depends_lib-append \
+ port:libgeoip \
+ port:libiconv
+
+patchfiles patch-extconf.rb \
+ patch-geoip.c
+
+post-patch {
+ file rename ${worksrcpath}/geoip.h ${worksrcpath}/geoiplocal.h
+}
Property changes on: trunk/dports/ruby/rb-net-geoip/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/ruby/rb-net-geoip/files/patch-extconf.rb
===================================================================
--- trunk/dports/ruby/rb-net-geoip/files/patch-extconf.rb (rev 0)
+++ trunk/dports/ruby/rb-net-geoip/files/patch-extconf.rb 2008-07-04 01:32:32 UTC (rev 38036)
@@ -0,0 +1,46 @@
+--- extconf.rb.orig 2008-06-11 13:25:38.000000000 -0400
++++ extconf.rb 2008-06-10 19:18:56.000000000 -0400
+@@ -31,20 +31,20 @@
+ EOL
+ end
+
+-unless have_library('iconv','iconv_open') or
+- have_library('c','iconv_open') or
+- have_library('recode','iconv_open')
+- crash(<<EOL)
+-need libiconv.
+-
+- Install libiconv or try passing some of the following options
+- to extconf.rb:
+-
+- --with-iconv-dir=/path/to/iconv
+- --with-iconv-lib=/path/to/iconv/lib
+- --with-iconv-include=/path/to/iconv/include
+-EOL
+-end
++# unless have_library('iconv','iconv_open') or
++# have_library('c','iconv_open') or
++# have_library('recode','iconv_open')
++# crash(<<EOL)
++# need libiconv.
++#
++# Install libiconv or try passing some of the following options
++# to extconf.rb:
++#
++# --with-iconv-dir=/path/to/iconv
++# --with-iconv-lib=/path/to/iconv/lib
++# --with-iconv-include=/path/to/iconv/include
++# EOL
++# end
+
+ unless have_header('GeoIP.h') and
+ have_header('GeoIPUpdate.h') and
+@@ -66,7 +66,7 @@
+ EOL
+ end
+
+-$CFLAGS = '-g -Wall' + $CFLAGS
++$CFLAGS = '-g -Wall ' + $CFLAGS
+
+ create_header()
+ create_makefile('net/geoip')
Added: trunk/dports/ruby/rb-net-geoip/files/patch-geoip.c
===================================================================
--- trunk/dports/ruby/rb-net-geoip/files/patch-geoip.c (rev 0)
+++ trunk/dports/ruby/rb-net-geoip/files/patch-geoip.c 2008-07-04 01:32:32 UTC (rev 38036)
@@ -0,0 +1,10 @@
+--- geoip.c.orig 2008-06-11 13:25:57.000000000 -0400
++++ geoip.c 2008-06-10 19:17:48.000000000 -0400
+@@ -1,6 +1,6 @@
+ /* $Id: geoip.c,v 1.6 2002/11/19 21:21:38 sean Exp $ */
+
+-#include "geoip.h"
++#include "geoiplocal.h"
+ #include "GeoIP.h"
+ #include "GeoIPUpdate.h"
+
Property changes on: trunk/dports/ruby/rb-net-geoip/files/patch-geoip.c
___________________________________________________________________
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080703/063cf3f8/attachment.html
More information about the macports-changes
mailing list