# -*- 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                tiki
version             3.9
categories          www
maintainers         nomaintainer
license             LGPL-2.1
description         php based wiki with lots of extra features
long_description    \
    TikiWiki is an open source web application which provides a     \
    full Wiki environment as well as Articles, Sections, User/Group \
    Management (including optinal LDAP interaction), Polls and      \
    Quizzes, File and Image Galleries, Forums, Comments on many     \
    areas, Weblogs, and much more.
homepage            http://tikiwiki.org

platforms           darwin
supported_archs     noarch
depends_run         port:php5-web port:php5-mysql

master_sites        sourceforge:tikiwiki
distname            tikiwiki-${version}
use_bzip2           yes

checksums           rmd160  57160fcf4ad881d4a8d71b50bc406c4a6d53d72e \
                    sha256  02b3ee0c24426746540d3a1d69f1e7de5326346069154386af979f013a9c0a49

use_configure       no

build {}

destroot    {
    set dname tikiwiki-${version}
    file mkdir ${destroot}${prefix}/www
    file copy ${worksrcpath} \
        ${destroot}${prefix}/www/${name}
    system "cd ${destroot}${prefix}/www/${name} && sudo sh ./setup.sh www www && chown -R www:www *"
}

livecheck.url       http://sourceforge.net/api/file/index/project-id/64258/rss?path=%2FTikiWiki%203.x%20-Betelgeuse-
livecheck.regex     tikiwiki-(\\d+\\.\\d+)${extract.suffix}