# -*- 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
PortGroup                       php 1.1

name                            php-yaf
categories-append               net devel
maintainers                     {ryandesign @ryandesign} {mathiesen.info:macintosh @BjarneDMat} openmaintainer
license                         PHP-3.01

php.branches                    5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5

description                     a fast php framework written in c, built in php-ext
long_description                ${name} is ${description}.

github.tarball_from             archive

if {[vercmp ${php.branch} >= 7.0]} {
    github.setup                laruence yaf 3.3.8
    revision                    0
    checksums                   rmd160  69073ec2ef1d3e038e7fa3dae3e6aabc3ce1c891 \
                                sha256  85cb3f7df85cb8e5618ebab6c280f4f73200066ab2e2865b44de4f9a3dda2172 \
                                size    162766
} else {
    github.setup                laruence yaf 2.3.5 yaf-
    revision                    0
    checksums                   rmd160  eef0004d25fb08c22d2e4279ee64e22875083699 \
                                sha256  36c2ecaa7156f18f445d0a85197cba1bcc4cb7ba82c7ae12333a4c8905d419c6 \
                                size    112595
}

if {${subport} ne ${name}} {
    # remove w/ next update
    dist_subdir                 ${name}/${github.version}_1
}
