Files
haikuports/dev-libs/check/check-0.9.14.recipe
fbrosson 6b1d1cee6d check: fix PROVIDES for secondary arch & improve pkg splitting. (#594)
* 0.9.13, 0.9.14 and 0.10.0 were missing a cmd:gawk in REQUIRES.
* Fixed 2nd arch for 0.10.0 and improved the package splitting.
* Switch 0.9.13 and 0.9.14 to the same layout as 0.10.0.
2016-05-13 14:46:30 -04:00

87 lines
2.0 KiB
Bash

SUMMARY="Unit Testing Framework for C"
DESCRIPTION="Check is a unit testing framework for C. It features a simple \
interface for defining unit tests, putting little in the way of the developer.
Tests are run in a separate address space, so both assertion failures and code \
errors that cause segmentation faults or other signals can be caught. Test \
results are reportable in the following: Subunit, TAP, XML, and a generic \
logging format."
HOMEPAGE="http://check.sourceforge.net/"
COPYRIGHT="2001-2014 Arien Malec, Branden Archer, Chris Pickett, Fredrik \
Hugosson, and Robert Lemmen."
LICENSE="GNU LGPL v2.1"
REVISION="3"
SOURCE_URI="http://sourceforge.net/projects/check/files/check/$portVersion/check-$portVersion.tar.gz"
CHECKSUM_SHA256="c272624645b1b738cf57fd5d81a3e4d9b722b99d6133ee3f3c4007d4d279840a"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
check$secondaryArchSuffix = $portVersion
cmd:checkmk$secondaryArchSuffix = $portVersion
lib:libcheck$secondaryArchSuffix = 0.0.0
"
REQUIRES="
haiku$secondaryArchSuffix
check_common
cmd:gawk
"
if [ -z "$secondaryArchSuffix" ]; then
ARCHITECTURES_common="any"
PROVIDES_common="
check_common = $portVersion
"
REQUIRES_common=""
fi
PROVIDES_devel="
check${secondaryArchSuffix}_devel = $portVersion
devel:libcheck$secondaryArchSuffix = 0.0.0
"
REQUIRES_devel="
check$secondaryArchSuffix == $portVersion base
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:diff
cmd:find
cmd:gawk
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
runConfigure ./configure --disable-static
make $jobArgs
}
INSTALL()
{
make install
if [ -z "$secondaryArchSuffix" ]; then
packageEntries common \
$dataDir/doc \
$documentationDir
else
rm -rf $dataDir/doc $documentationDir
fi
rm $libDir/libcheck.la
prepareInstalledDevelLib libcheck
fixPkgconfig
packageEntries devel \
$dataDir/aclocal \
$developDir
}
TEST()
{
make check
}