# -*- 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$ PortSystem 1.0 name php5-token-stream set real_name phptok set cap_name PHP_TokenStream version 1.0.1 categories php devel maintainers singingwolfboy openmaintainer supported_archs noarch 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 md5 858f010464237f5f0b2fbe503fad1f90 \ sha1 6754c6e9cd234435ac5660dd101e91af5f6391bc \ rmd160 cde302050501fcedca63cda356799a2c71bed4f5 description wrapper around PHP's tokenizer extension long_description \ ${description} depends_lib path:bin/php:php5 use_configure no build {} destroot { reinplace "s|@php_bin@|${prefix}/bin/php|" ${worksrcpath}/${real_name}.php reinplace "s|#!/usr/bin/env php|#!${prefix}/bin/php|" ${worksrcpath}/${real_name}.php xinstall -m 755 ${worksrcpath}/${real_name}.php ${destroot}${prefix}/bin/${real_name} xinstall -d ${destroot}${prefix}/lib/php file copy ${worksrcpath}/PHP ${destroot}${prefix}/lib/php/PHP } livecheck.type regex livecheck.url ${homepage}/downloads livecheck.regex {/([0-9.]+)"}