# -*- 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-token-stream
set cap_name            PHP_TokenStream
version                 1.1.5
categories-append       devel
maintainers             nomaintainer
license                 BSD

homepage                https://github.com/sebastianbergmann/php-token-stream
master_sites            http://pear.phpunit.de/get/
distname                ${cap_name}-${version}
extract.suffix          .tgz
platforms               darwin freebsd
checksums               rmd160  f33d72d3aa16b922892b48b0c83f9cea617f4c3a \
                        sha256  9ac8f3c2345d5a65920dd176cbe4334b8f4e52511bcb617967cc925e4a8b7945
description             wrapper around PHP's tokenizer extension
long_description \
    ${description}


php.branches            5.3 5.4 5.5

php.build_dirs

if {$name ne $subport} {
    destroot {
        xinstall -d ${destroot}${prefix}/lib/php
        file copy ${worksrcpath}/PHP ${destroot}${prefix}/lib/php/PHP
    }

    livecheck.type          none
} else {
    livecheck.type          regex
    livecheck.url           ${homepage}/releases
    livecheck.regex         {/([0-9.]+)"}
}