# -*- 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
PortGroup           github 1.0

github.setup        splitbrain dokuwiki 2024-02-06a release-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          www
license             GPL-2
platforms           any
maintainers         nomaintainer
supported_archs     noarch

description         simple to use wiki aimed at documentation projects
long_description    dokuwiki is a simple to use wiki aimed at a small \
                    companies documentation needs. It works on plain texts files \
                    and thus needs no database. It has a simple but powerful \
                    syntax which makes sure the datafiles remain readable outside \
                    the Wiki.

checksums           rmd160  c4de7b9cc9f90dc741ca6ee954897eef233bcaac \
                    sha256  c4eb2f71c084db3e563a567e20e4f148344c640c2e0dad38842557cb849ba5fe \
                    size    4087118

foreach php {php74 php80 php81 php82 php83} {
    variant ${php} description "Use ${php}" "
        depends_run \
                port:${php} \
                port:${php}-openssl
    "
}

if {![variant_isset php74] && ![variant_isset php80] && ![variant_isset php81] && ![variant_isset php82]} {
   default_variants +php83
}

use_configure       no

build               {}

set docroot ${destroot}${prefix}/www/${name}

destroot {
    xinstall -m 755 -d ${docroot}
    copy {*}[glob ${worksrcpath}/*] ${docroot}
}

notes "
For Installation Instructions see \
https://www.dokuwiki.org/install
"
