# $Id: Portfile 85629 2011-10-15 09:44:33Z jmr@macports.org $

PortSystem            1.0
PortGroup             perl5 1.0

perl5.setup           CatalystX-Component-Traits 0.16
revision              2
license               {Artistic-1 GPL}
maintainers           nomaintainer
description           Automatic Trait Loading and Resolution for Catalyst Components
long_description      Adds a "COMPONENT" in Catalyst::Component method to your \
                      Catalyst component base class that reads the optional \
                      traits parameter from app and component config and \
                      instantiates the component subclass with those traits \
                      using "new_with_traits" in MooseX::Traits from \
                      MooseX::Traits::Pluggable.

platforms             darwin

checksums             md5 7165156a9ebc786146c710d2939f9c06 \
                      sha1 1ed3138d3aeac8bc5ea7538caf462b6f593ffb82 \
                      rmd160 8a28497ac41110bc6463ba60f689255543bbfb01

if {${perl5.major} != ""} {
depends_lib-append    port:p${perl5.major}-module-pluggable \
                      port:p${perl5.major}-catalyst-runtime \
                      port:p${perl5.major}-list-moreutils \
                      port:p${perl5.major}-moosex-traits-pluggable \
                      port:p${perl5.major}-namespace-autoclean \
                      port:p${perl5.major}-test-simple
}
