# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem          1.0
PortGroup           ruby 1.0

ruby.setup          net-geoip 0.06 extconf.rb
maintainers         mac.com:kykim
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
}
