0
0
Fork 0
haikuports/dev-util/cppunit/cppunit-1.14.0.recipe

78 lines
1.9 KiB
Bash
Raw Permalink Normal View History

2016-06-19 00:19:18 +00:00
SUMMARY="C++ unit testing framework"
2018-05-07 17:53:46 +00:00
DESCRIPTION="CppUnit is a C++ unit testing framework. It started its life as \
a port of JUnit to C++ by Michael Feathers."
HOMEPAGE="https://www.freedesktop.org/wiki/Software/cppunit/"
2016-06-19 00:19:18 +00:00
COPYRIGHT="2000 Jerome Lacoste
2000 Michael Feathers
2000-2002 E. Sommerlade
2001-2013 Baptiste Lepilleur
2001 Bastiaan Bakker
2001-2002, 2007-2008 Steve Robbins
2012-2013 Harvey Brydon"
LICENSE="GNU LGPL v2.1"
2019-06-17 11:00:10 +00:00
REVISION="4"
2018-05-07 17:53:46 +00:00
SOURCE_URI="https://dev-www.libreoffice.org/src/cppunit-$portVersion.tar.gz"
2018-02-18 13:33:20 +00:00
CHECKSUM_SHA256="3d569869d27b48860210c758c4f313082103a5e58219a7669b52bfd29d674780"
2016-06-19 00:19:18 +00:00
ARCHITECTURES="all !x86_gcc2 ?x86"
2016-06-19 00:19:18 +00:00
SECONDARY_ARCHITECTURES="x86"
2018-05-07 17:53:46 +00:00
libVersion="0.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= ${portVersion%%.*}"
portVers="${portVersion%.*}"
2016-06-19 00:19:18 +00:00
PROVIDES="
cppunit$secondaryArchSuffix = $portVersion
2018-05-07 17:53:46 +00:00
cmd:DllPlugInTester$secondaryArchSuffix = $portVersionCompat
lib:libcppunit$secondaryArchSuffix = $libVersionCompat
lib:libcppunit_$portVers$secondaryArchSuffix = $libVersionCompat
2016-06-19 00:19:18 +00:00
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
cppunit${secondaryArchSuffix}_devel = $portVersion
2018-05-07 17:53:46 +00:00
devel:libcppunit$secondaryArchSuffix = $libVersionCompat
devel:libcppunit_$portVers$secondaryArchSuffix = $libVersionCompat
2016-06-19 00:19:18 +00:00
"
REQUIRES_devel="
cppunit$secondaryArchSuffix == $portVersion base
haiku${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
2018-05-07 17:53:46 +00:00
cmd:libtoolize$secondaryArchSuffix
2016-06-19 00:19:18 +00:00
cmd:make
cmd:sed
"
2018-05-07 17:53:46 +00:00
defineDebugInfoPackage cppunit$secondaryArchSuffix \
$libDir/libcppunit-$portVers.so.$libVersion
2016-06-19 00:19:18 +00:00
BUILD()
{
autoreconf -i
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
2016-11-21 15:20:36 +00:00
rm $libDir/libcppunit.la
2018-05-07 17:53:46 +00:00
prepareInstalledDevelLibs libcppunit-$portVers libcppunit
2016-06-19 00:19:18 +00:00
fixPkgconfig
packageEntries devel $developDir
}