# $Id: Portfile 56365 2009-08-26 18:09:38Z alakazam@macports.org $

PortSystem          1.0

name                phpmyadmin
set my_name         phpMyAdmin
version             3.2.1
categories          www php databases
maintainers         alakazam
description         A tool written in PHP intended to handle the \
                    administration of MySQL over the Web.
long_description    phpMyAdmin is a tool written in PHP intended to handle \
                    the administration of MySQL over the Web. phpMyAdmin \
                    supports a wide range of operations with MySQL. The most \
                    frequently used operations are supported by the user \
                    interface (managing databases, tables, fields, relations, \
                    indexes, users, permissions, etc), while you still have \
                    the ability to directly execute any SQL statement.
homepage            http://www.phpmyadmin.net
master_sites        sourceforge
distname            ${my_name}-${version}-all-languages
use_bzip2           yes

checksums           md5     f6b0273cba534fefa0a1d69b78a003df \
                    sha1    3251e1a54d0e30e05bf4f9d4ede1c6ab063b2be3 \
                    rmd160  c83f39bcccdd79417d63cd2b19c258b74174072e

platforms           darwin freebsd

depends_run         port:php5-gd \
                    port:php5-mbstring \
                    port:php5-mcrypt \
                    port:php5-mysql \
                    port:php5-zip

set docpath ${destroot}${prefix}/www

use_configure       no
build               {}

destroot {
    xinstall -d -m 0755 ${docpath}/phpmyadmin
    eval copy [glob ${worksrcpath}/*] ${docpath}/phpmyadmin
}

livecheck.distname  ${my_name}
livecheck.regex     "<title>${livecheck.distname} (\\d+(?:\\.\\d+)*) .*</title>"
