# -*- 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 64348 2010-03-03 15:28:07Z snc@macports.org $

PortSystem          1.0

name                tiki
version             3.5
categories          www
maintainers         snc openmaintainer
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
depends_run         port:php5-web port:php5-mysql

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

checksums           md5     c54d424c3743bba3ace939c38f776094 \
                    sha1    8d077665da754562541a19ad721530106c89d2bd \
                    rmd160  8c8807905ab2bc57653d1ed54a952977d45127ce

use_configure       no

build {}

destroot    { 
    set dname tikiwiki-${version}
    file mkdir -p ${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}
