Files
haikuports/dev-libs/check/check-0.9.14.recipe
2014-09-03 16:57:14 +02:00

68 lines
1.5 KiB
Plaintext

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/"
LICENSE="GNU LGPL v2.1"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
# NOTE: on x86_64 haikuporter/python 2.7.6 cannot extract correctly the archive
# because it contains hard links. One has to extract manually, put flag.unpack
# build, then copy the packages. No source package can be produced.
SRC_URI="http://sourceforge.net/projects/check/files/check/$portVersion/check-$portVersion.tar.gz"
CHECKSUM_SHA256="c272624645b1b738cf57fd5d81a3e4d9b722b99d6133ee3f3c4007d4d279840a"
COPYRIGHT="xxx"
PROVIDES="
check = $portVersion
cmd:checkmk
lib:libcheck = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:awk
cmd:gcc
cmd:make
"
BUILD()
{
runConfigure ./configure
make
}
INSTALL()
{
make install
prepareInstalledDevelLib libcheck
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make check
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
check_devel = $portVersion
devel:libcheck = $portVersion
"
REQUIRES_devel="
check == $portVersion base
"