# $Id: Portfile,v 1.9 2006/08/02 21:01:00 narf_tm Exp $

PortSystem			1.0
PortGroup			perl5 1.0
perl5.setup			Module-Build 0.2805
revision                        1
maintainers			narf_tm@opendarwin.org
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 MacOS (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			md5 598bb59b86c2c4842eeffb03392fab5b

depends_lib-append	port:p5-yaml port:p5-archive-tar port:p5-version \
			port:p5-extutils-cbuilder port:p5-extutils-parsexs

# Override default perl group settings, since this uses Module::Build
# (itself) instead of MakeMaker
configure.pre_args	Build.PL
configure.args		installdirs=vendor

build.cmd			${perl5.bin}
build.pre_args		Build
build.args			build

destroot.cmd		${perl5.bin}
destroot.pre_args	Build
destroot.args		install
destroot.destdir	destdir=${destroot}

