# $Id: Portfile 92226 2012-04-22 08:34:43Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup geoip 1.0.8 pecl
license         PHP
categories      php devel
platforms       darwin
maintainers     nomaintainer
description     Map IP address to geographic places

long_description \
    This PHP extension allows you to find the location of an IP address - \
    City, State, Country, Longitude, Latitude, and other information as all, \
    such as ISP and connection type.

checksums           rmd160  cea5d556b2d502f40cc197cb8acec09d8482aac0 \
                    sha256  08beeb2cbe9ab729d06b026795f5b9084aead6a1762493b0be53c4393d68d08a

depends_lib-append port:libgeoip

use_parallel_build yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} ChangeLog README \
        ${destroot}${docdir}
}

test.run yes

livecheck.regex {(\d+(?:\.\d+)*)</a></th>}
