mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
57 lines
1.9 KiB
Tcl
57 lines
1.9 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup php 1.1
|
|
|
|
name php-geoip
|
|
license PHP
|
|
categories-append devel
|
|
maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh @BjarneDMat} openmaintainer
|
|
|
|
php.branches 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5
|
|
php.pecl yes
|
|
|
|
if {[vercmp ${php.branch} >= 7.0]} {
|
|
php.pecl.prerelease yes
|
|
version 1.1.1
|
|
revision 0
|
|
checksums rmd160 60c128064decb959b497bd2f627712b7be32fa79 \
|
|
sha256 b2d05c03019d46135c249b5a7fa0dbd43ca5ee98aea8ed807bc7aa90ac8c0f06 \
|
|
size 13004
|
|
|
|
if {[vercmp ${php.branch} >= 8.0]} {
|
|
patchfiles php8.patch
|
|
}
|
|
|
|
configure.checks.implicit_function_declaration.whitelist-append strchr
|
|
} else {
|
|
version 1.0.8
|
|
revision 1
|
|
checksums rmd160 cea5d556b2d502f40cc197cb8acec09d8482aac0 \
|
|
sha256 08beeb2cbe9ab729d06b026795f5b9084aead6a1762493b0be53c4393d68d08a \
|
|
size 10061
|
|
}
|
|
|
|
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.
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_lib-append port:libgeoip
|
|
|
|
configure.args --with-geoip=${prefix}
|
|
|
|
use_parallel_build yes
|
|
|
|
test.run yes
|
|
|
|
post-destroot {
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
xinstall -d ${destroot}${docdir}
|
|
xinstall -m 0644 -W ${worksrcpath} ChangeLog README ${destroot}${docdir}
|
|
}
|
|
}
|