mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
57 lines
1.2 KiB
Bash
57 lines
1.2 KiB
Bash
SUMMARY="Fail if tests warn"
|
|
DESCRIPTION="Loading this plugin causes your tests to fail if there any warnings while they run. \
|
|
Each warning generates a new failing test and the warning content is outputted via diag.
|
|
This module uses \$SIG{__WARN__}, so if the code you're testing sets this, then this module will \
|
|
stop working."
|
|
HOMEPAGE="https://metacpan.org/pod/Test2::Plugin::NoWarnings"
|
|
COPYRIGHT="2024 by Dave Rolsky"
|
|
LICENSE="Artistic"
|
|
REVISION="1"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Test2-Plugin-NoWarnings-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="c97cb1122cc6e3e4a079059da71e12f65760bfb0671d19d25a7ec7c5f1f240fb"
|
|
SOURCE_DIR="Test2-Plugin-NoWarnings-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
test2_plugin_nowarnings = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
vendor_perl
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
#ipc_run3 # not available
|
|
module_pluggable
|
|
"
|
|
|
|
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
|
|
}
|