# -*- 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
# $Id: Portfile 114286 2013-12-04 09:06:15Z ryandesign@macports.org $

PortSystem         1.0
PortGroup          perl5 1.0

perl5.branches     5.8 5.10 5.12 5.14 5.16
perl5.setup        Dancer 1.3119 ../by-authors/id/Y/YA/YANICK/
platforms          darwin
maintainers        di.uminho.pt:jpo openmaintainer
supported_archs    noarch
license            {Artistic GPL}

description        Lightweight yet powerful web application framework

long_description \
    Dancer aims to provide the simplest way for writing web applications, \
    and offers the flexibility to scale between a very simple lightweight \
    web service consisting of a few lines of code in a single file, all the \
    way up to a more complex fully-fledged web application with session \
    support, templates for views and layouts, etc.

checksums           rmd160 1dc85e35de4c12b5940cfd5b45acdcc3b3dcc5d0 \
                    sha256 b36f438b365e59a1ea02a66008ae8e82aaf8a81faa9f01544afd0c51f8af3fbd

if {${perl5.major} != ""} {
depends_lib-append port:p${perl5.major}-http-server-simple-psgi \
                   port:p${perl5.major}-uri \
                   port:p${perl5.major}-http-body \
                   port:p${perl5.major}-mime-types \
                   port:p${perl5.major}-libwww-perl \
                   port:p${perl5.major}-try-tiny \
                   port:p${perl5.major}-module-runtime
}
