source: trunk/dports/php/php-geoip/Portfile

Last change on this file was 153216, checked in by ryandesign@…, 10 months ago

php-geoip: add php70-geoip subport version 1.1.1

Resolves #50127

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# -*- 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
2# $Id: Portfile 153216 2016-09-27 12:21:45Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       php 1.1
6
7name            php-geoip
8license         PHP
9categories      php devel
10platforms       darwin
11maintainers     ryandesign openmaintainer
12
13php.branches    5.3 5.4 5.5 5.6 7.0
14php.pecl        yes
15
16if {[vercmp ${php.branch} 7] >= 0} {
17    php.pecl.prerelease yes
18    version     1.1.1
19    revision    0
20    checksums   rmd160  60c128064decb959b497bd2f627712b7be32fa79 \
21                sha256  b2d05c03019d46135c249b5a7fa0dbd43ca5ee98aea8ed807bc7aa90ac8c0f06
22} else {
23    version     1.0.8
24    revision    1
25    checksums   rmd160  cea5d556b2d502f40cc197cb8acec09d8482aac0 \
26                sha256  08beeb2cbe9ab729d06b026795f5b9084aead6a1762493b0be53c4393d68d08a
27}
28
29description     Map IP address to geographic places
30
31long_description \
32    This PHP extension allows you to find the location of an IP address - \
33    City, State, Country, Longitude, Latitude, and other information as all, \
34    such as ISP and connection type.
35
36if {${name} ne ${subport}} {
37    depends_lib-append  port:libgeoip
38   
39    use_parallel_build  yes
40   
41    test.run            yes
42   
43    post-destroot {
44        set docdir ${prefix}/share/doc/${subport}
45        xinstall -d ${destroot}${docdir}
46        xinstall -m 644 -W ${worksrcpath} ChangeLog README ${destroot}${docdir}
47    }
48}
Note: See TracBrowser for help on using the repository browser.