diff --git a/dev-perl/config_autoconf/config_autoconf-0.320.recipe b/dev-perl/config_autoconf/config_autoconf-0.320.recipe new file mode 100644 index 000000000..afb701732 --- /dev/null +++ b/dev-perl/config_autoconf/config_autoconf-0.320.recipe @@ -0,0 +1,68 @@ +SUMMARY="A module to implement some of AutoConf macros in pure perl" +DESCRIPTION="Config::AutoConf is intended to provide the same opportunities to Perl developers as \ +GNU Autoconf does for Shell developers. +As Perl is the second most deployed language (mind: every Unix comes with Perl, several \ +mini-computers have Perl and even lot's of Windows machines run Perl software - which requires \ +deployed Perl there, too), this gives wider support than Shell based probes. +The API is leaned against GNU Autoconf, but we try to make the API (especially optional \ +arguments) more Perl'ish than m4 abilities allow to the original." +HOMEPAGE="https://metacpan.org/pod/Config::AutoConf" +COPYRIGHT="2004-2020 Alberto Simões and Jens Rehsack" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/A/AM/AMBS/Config-AutoConf-$portVersion.tar.gz" +CHECKSUM_SHA256="bb57a958ef49d3f7162276dae14a7bd5af43fd1d8513231af35d665459454023" +SOURCE_DIR="Config-AutoConf-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + config_autoconf = $portVersion + " +REQUIRES=" + haiku + capture_tiny + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + capture_tiny + " +if [ "$targetArchitecture" = x86_gcc2 ]; then + TEST_REQUIRES+=" + cmd:gcc_x86 + " +else + TEST_REQUIRES+=" + cmd:gcc + " +fi + +BUILD() +{ + perl Makefile.PL PREFIX=$prefix + make +} + +INSTALL() +{ + make pure_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() +{ + make test +}