# $Id: Portfile 82782 2011-08-20 01:07:52Z ryandesign@macports.org $

PortSystem            1.0
PortGroup             perl5 1.0

perl5.setup           Catalyst-Plugin-Authentication-Store-DBIC 0.11
revision              2
maintainers           nomaintainer
description           Authentication against a DBIx::Class or Class::DBI model.
long_description      This plugin uses a DBIx::Class (or Class::DBI) \
                      object to authenticate a user.

platforms             darwin

checksums             md5 7743beb2c7bca430f906b6c04899eade \
                      sha1 42ac18b2b5d6cf471d7d57f811596436a987e966 \
                      rmd160 09b3e7c2e7fb48c2aaa514cc56b206d6d72ef12c

if {${perl5.major} != ""} {
    depends_lib-append    port:p${perl5.major}-catalyst-runtime \
                          port:p${perl5.major}-catalyst-plugin-authentication \
                          port:p${perl5.major}-set-object \
                          port:p${perl5.major}-class-accessor \
                          port:p${perl5.major}-dbix-class \
                          port:p${perl5.major}-catalyst-model-dbic-schema \
                          port:p${perl5.major}-catalyst-plugin-authorization-roles \
                          port:p${perl5.major}-catalyst-plugin-session-state-cookie \
                          port:p${perl5.major}-test-www-mechanize-catalyst
    
    variant class_dbi description {build with class_dbi support} {
        depends_lib-append    port:p${perl5.major}-class-dbi
    }
}
