From ec809453fb2ad9cebee2bfe1ba9b29077a25b158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 25 Jan 2025 20:41:07 +0100 Subject: [PATCH] module_build_tiny: new perl module recipe --- .../module_build_tiny-0.051.recipe | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 dev-perl/module_build_tiny/module_build_tiny-0.051.recipe diff --git a/dev-perl/module_build_tiny/module_build_tiny-0.051.recipe b/dev-perl/module_build_tiny/module_build_tiny-0.051.recipe new file mode 100644 index 000000000..192ff59f3 --- /dev/null +++ b/dev-perl/module_build_tiny/module_build_tiny-0.051.recipe @@ -0,0 +1,59 @@ +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="74fdce35e8cd4d787bc2d4fc1d43a291b7bbced4e94dc5fc592bd81ca93a98e9" +SOURCE_DIR="Module-Build-Tiny-$portVersion" +#PATCHES="module_build-$portVersion.patchset" + +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 +}