Files
haikuports/dev-perl/module_build_tiny/module_build_tiny-0.052.recipe
2025-12-25 19:43:04 +01:00

59 lines
1.4 KiB
Bash

SUMMARY="A tiny replacement for Module::Build"
DESCRIPTION="Many Perl distributions use a Build.PL file instead of a Makefile.PL file to drive \
distribution configuration, build, test and installation. Traditionally, Build.PL uses \
Module::Build as the underlying build system. This module provides a simple, lightweight, drop-in \
replacement.
Whereas Module::Build has over 6,700 lines of code; this module has less than 200, yet supports \
the features needed by most distributions."
HOMEPAGE="https://metacpan.org/pod/Module::Build::Tiny"
COPYRIGHT="2011 by Leon Timmermans, David Golden"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-Tiny-$portVersion.tar.gz"
CHECKSUM_SHA256="bd10452c9f24d4b4fe594126e3ad231bab6cebf16acda40a4e8dc784907eb87f"
SOURCE_DIR="Module-Build-Tiny-$portVersion"
ARCHITECTURES="any"
PROVIDES="
module_build_tiny = $portVersion
"
REQUIRES="
haiku
extutils_config
extutils_helpers
extutils_installpaths
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
extutils_config
extutils_helpers
extutils_installpaths
"
BUILD_PREREQUIRES="
cmd:perl
"
BUILD()
{
perl Build.PL --prefix $prefix
./Build
}
INSTALL()
{
./Build install
# remove architecture-specific files
cd $prefix
rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-)
# cut extracts the quoted string and strips the prefix (which is perl's and not ours)
}
TEST()
{
./Build test
}