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

PortSystem                1.0
PortGroup                 perl5 1.0

epoch                     2
perl5.setup               Module-Build 0.3800 ../by-authors/id/D/DA/DAGOLDEN/
revision                  1
license                   {Artistic GPL}
maintainers               nomaintainer
supported_archs           noarch

description               Build and install perl modules (MakeMaker replacement)
long_description          Module::Build is a system for building, testing, \
                          and installing Perl modules. It is meant to be a \
                          replacement for ExtUtils::MakeMaker.  Developers \
                          may alter the behavior of the module through \
                          subclassing in a much more straightforward way than \
                          with MakeMaker. It also does not require a make on \
                          your system - most of the Module::Build code is \
                          pure-perl and written in a very cross-platform way. \
                          In fact, you don't even need a shell, so even \
                          platforms like Mac OS (traditional) can use it \
                          fairly easily. Its only prerequisites are modules \
                          that are included with perl 5.6.0, and it works \
                          fine on perl 5.005 if you can install a few \
                          additional modules.

platforms                 darwin

checksums                 sha1    b5da5631b3ae8afaf558caa2afec1a85da6d20dc \
                          rmd160  c520ecd73e378600f5d9d9206d9203efc9245849

if {${perl5.major} != ""} {
depends_lib-append        port:p${perl5.major}-yaml \
                          port:p${perl5.major}-extutils-cbuilder \
                          port:p${perl5.major}-extutils-parsexs \
                          port:p${perl5.major}-module-metadata \
                          port:p${perl5.major}-perl-ostype \
                          port:p${perl5.major}-cpan-meta-yaml

perl5.use_module_build

depends_lib-delete        port:p${perl5.major}-module-build
}
