SUMMARY="Build and install Perl modules"
DESCRIPTION="Module::Build is a system for building, testing, and installing \
Perl modules. It is meant to be an alternative to 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."
HOMEPAGE="https://metacpan.org/pod/distribution/Module-Build/lib/Module/Build.pm"
COPYRIGHT="2001-2006 Ken Williams"
LICENSE="Artistic"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-$portVersion.tar.gz"
CHECKSUM_SHA256="1fe491a6cda914b01bc8e592faa2b5404e9f35915ca15322f8f2a8d8f9008c18"
SOURCE_DIR="Module-Build-$portVersion"

ARCHITECTURES="any"

PROVIDES="
	module_build = $portVersion
	cmd:config_data
	"
REQUIRES="
	vendor_perl
	"

BUILD_REQUIRES="
	cmd:perl
	"
BUILD_PREREQUIRES="
	"

BUILD()
{
	export PERL_MM_USE_DEFAULT=1 # Don't ask questions and use the default values
	perl Build.PL --installdirs vendor --prefix $prefix
	./Build
}

INSTALL()
{
	./Build install --installdirs vendor
}

TEST()
{
	./Build test
}
