# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 124944 2014-09-01 01:05:32Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php 1.1

name            php-geoip
version         1.0.8
revision        1
license         PHP
categories      php devel
platforms       darwin
maintainers     ryandesign openmaintainer

php.branches    5.3 5.4 5.5 5.6
php.pecl        yes

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

if {${name} ne ${subport}} {
    depends_lib-append  port:libgeoip
    
    use_parallel_build  yes
    
    test.run            yes
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} ChangeLog README ${destroot}${docdir}
    }
}
