# -*- 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
description A PHP-based bulletin board / discussion forum system
long_description MyBB is the free and open source, intuitive, extensible, \
and incredibly powerful forum software you've been \
depends_run port:php5-web \
homepage https://mybb.com/
master_sites http://resources.mybb.com/downloads
distname ${name}_[string map {. ""} [subst [regsub {\.(\d+)$} ${version} {[format {%02d} {\1}]}]]]
checksums rmd160 6cb5038bfabf823b6222da7713503d84ad7d4f05 \
sha256 1f83c892f3b4b47ed3b244177ee4e4e5a5633f8008d92596373820bae7e23a5f
set docpath ${destroot}${prefix}/www/data
xinstall -d -m 0755 ${docpath}
copy ${worksrcpath}/Upload ${docpath}/${name}
livecheck.url ${homepage}download/
livecheck.regex {>Download MyBB ([0-9.]+)<}