# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 62299 2010-01-03 14:39:58Z nox@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     xdebug 2.0.5
revision                2
php5extension.type      zend
categories-append       net devel
platforms               darwin freebsd openbsd
maintainers             gmail.com:emory.smith openmaintainer
homepage                http://www.xdebug.org/index.php
master_sites            http://www.xdebug.org/files/

description             php5 extension for php debugging

long_description        Xdebug is a php extension that helps you debug your \
                        scripts. It provides valuable debug information, \
                        including error stack traces and memory allocation \
                        summaries. It can generate profiling information \
                        about your php scripts, to be used for script \
                        execution analysis and optimization. It also supports \
                        debugging interactively using the dbg debug client.

checksums           md5     2d87dab7b6c499a80f0961af602d030c \
                    sha1    77e6a8fd56641d8b37be68ea3c4a5c52b7511114 \
                    rmd160  f07cc3cdc9f1378fb6154c0b972baa6995cd7043

extract.suffix          .tgz

configure.args          --enable-xdebug \
                        --with-php-config=${prefix}/bin/php-config

post-install {
    set xdebug_docs     "http://www.xdebug.org/docs/"
    
    ui_msg "
    ***************************************************************************
    * You can get a list of the available configuration settings for xdebug
    * with the following command:
    *
    * % php --ri xdebug
    *
    * For more information and details about configuration settings, see
    * ${xdebug_docs}
    ***************************************************************************"
}

livecheck.type          regex
livecheck.url           http://www.xdebug.org/updates.php
livecheck.regex         {Xdebug (\d+(\.\d+)*)<}
