# -*- 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

name                contao
version             2.10.1
categories          www php
platforms           darwin freebsd
maintainers         nomaintainer
supported_archs     noarch
license             LGPL-3+

description         Powerful web content management system

long_description    cantao webCMS is a powerful web content management system that \
                    specializes in accessibility (back end and front end) and uses XHTML \
                    and CSS to generate W3C/WAI compliant pages.

depends_run         port:php5-web \
                    port:php5-imagick \
                    port:php5-gd \
                    port:php5-mysql \
                    port:php5-xsl

homepage            http://www.contao.org/
master_sites        sourceforge:typolight

checksums           sha1    f8139b1baef077f5ddb2ba5b7d3fc6b6169db147 \
                    rmd160  cb71bdadc9414bd03394ef71928b7fb00d3c5f0b

use_configure       no

build               {}

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

destroot {
    xinstall -d -m 0755 ${docpath}
    copy ${worksrcpath} ${docpath}/${name}
}

livecheck.type      regex
livecheck.url       https://sourceforge.net/projects/contao/files/
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)