# $Id: Portfile 67016 2010-04-27 16:45:29Z narf_tm@macports.org $

PortSystem                1.0
PortGroup                 perl5 1.0

perl5.setup               HTML-Mason 1.45
maintainers               narf_tm openmaintainer
description               High-performance, dynamic web site authoring system
long_description          Mason is a tool for building, serving and managing \
                          large web sites. Its features make it an ideal \
                          backend for high load sites serving dynamic \
                          content, such as online newspapers or database \
                          driven e-commerce sites.

platforms                 darwin

checksums                 md5 5ad416ae8425d81dde3daf5fab913a23 \
                          sha1 17f7bafb95f46cc872d3748bf4bb1f3a9ec349c4 \
                          rmd160 96b84ec0488a1771a81af7ccc15470fb7456ee05

depends_lib-append        port:p5-cache-cache \
                          port:p5-class-container \
                          port:p5-exception-class \
                          port:p5-params-validate \
                          port:p5-html-parser \
                          port:p5-test-deep \
                          port:p5-log-any

perl5.use_module_build

variant mod_perl conflicts mod_perl2 description {build with mod_perl port} {
    depends_lib-append    port:mod_perl \
                          port:p5-libapreq
}

variant mod_perl2 conflicts mod_perl description {build with mod_perl2 port} {
    depends_lib-append    port:mod_perl2 \
                          port:p5-libapreq2 \
                          port:p5-cgi
}

if {![variant_isset mod_perl]} {
    default_variants      +mod_perl2
}
