# -*- 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
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {snc @nerdling} openmaintainer
description A PHP-based bulletin board / discussion forum system
long_description phpBB is a high powered, fully scalable, and highly \
customisable open-source bulletin board package. phpBB \
has a user-friendly interface, simple and straightforward \
administration panel, and helpful FAQ. Based on the \
powerful PHP server language and your choice of MySQL, \
MS-SQL, PostgreSQL or Access/ODBC database servers, phpBB \
is the ideal free community solution for all web sites.
depends_run port:php56-apache2handler \
homepage http://www.phpbb.com/
master_sites https://download.phpbb.com/pub/release/${branch}/${version}/
distname phpBB-${version}
checksums rmd160 0234798c818c61f7c42bdd035865de7a58575de8 \
sha256 d0ac7bf96beaabddcf6fc799f14893adbd30243ca6e176a1f7466048e6837a21 \
variant mysql description {add convenient runtime dependency on PHP's mysql extension} {
depends_run-append port:php56-mysql
variant postgresql description {add convenient runtime dependency on PHP's postgresql extension} {
depends_run-append port:php56-postgresql
set docpath ${destroot}${prefix}/www/data
set worksrcpath ${workpath}/phpBB3
xinstall -d -m 0755 ${docpath}/phpbb
file copy {*}[glob ${worksrcpath}/*] ${docpath}/phpbb
file rename ${docpath}/phpbb/config.php \
${docpath}/phpbb/config.php-dist
livecheck.url http://www.phpbb.com/
livecheck.regex version">(\\d+(\\.\\d+)+(-PL\\d+)?)