# -*- 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 88421 2012-01-02 01:09:15Z ryandesign@macports.org $

PortSystem              1.0

name                    php5-text-template
set cap_name            Text_Template
version                 1.1.0
categories              php devel
maintainers             singingwolfboy openmaintainer
supported_archs         noarch
license                 BSD

homepage                https://github.com/sebastianbergmann/php-text-template
master_sites            http://pear.phpunit.de/get/
distname                ${cap_name}-${version}
extract.suffix          .tgz
platforms               darwin freebsd
checksums               md5     2ae956193c84c3e5b543b8bab992c0f1 \
                        sha1    2f733232070bce28beb9c644a743f2ad30a00ce9 \
                        rmd160  e472afa06ad1abbac3cb2ae93564496a651dd285
description             simple template engine for PHP
long_description \
    ${description}

depends_lib             path:bin/php:php5

use_configure           no
build                   {}
destroot {
    xinstall -d ${destroot}${prefix}/lib/php
    file copy ${worksrcpath}/Text ${destroot}${prefix}/lib/php/Text
}

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