mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
There is nothing here that depends on specifically the GNU implementation of awk. So just use the more generic requirement.
79 lines
1.8 KiB
Bash
79 lines
1.8 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="4"
|
|
SOURCE_URI="http://sourceforge.net/projects/check/files/check/$portVersion/check-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ca6589c34f9c60ffd4c3e198ce581e944a9f040ca9352ed54068dd61bebb5cb7"
|
|
|
|
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
|
|
cmd:awk
|
|
"
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
REPLACES="
|
|
check_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 [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $dataDir/doc $documentationDir
|
|
fi
|
|
|
|
rm $libDir/libcheck.la
|
|
prepareInstalledDevelLib libcheck
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$dataDir/aclocal \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|