# $Id: Portfile,v 1.7 2006/07/18 14:14:30 narf_tm Exp $

PortSystem			1.0
PortGroup			perl5 1.0
perl5.setup			Module-Build 0.2804
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 db3bd4acd00c257762f12b41c581d6a6

depends_lib-append	port:p5-yaml port:p5-archive-tar port:p5-version

# 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}

