unittest++, fix recipe, disable static (#8058)

This commit is contained in:
Schrijvers Luc
2023-03-22 19:49:24 +01:00
committed by GitHub
parent 925ae78bda
commit 4e3c54b317
3 changed files with 3 additions and 96 deletions

View File

@@ -1,23 +0,0 @@
From e9bd231d1a65425721a94b945973fc8dd26a42a3 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 2 Jun 2016 19:49:48 +0200
Subject: Haiku patch
diff --git a/UnitTest++/Config.h b/UnitTest++/Config.h
index ff62b4e..4bd31fe 100644
--- a/UnitTest++/Config.h
+++ b/UnitTest++/Config.h
@@ -21,7 +21,8 @@
#endif
#if defined(unix) || defined(__unix__) || defined(__unix) || defined(linux) || \
- defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+ defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) \
+ || defined (__HAIKU__)
#define UNITTEST_POSIX
#endif
--
2.2.2

View File

@@ -1,71 +0,0 @@
SUMMARY="A lightweight unit testing framework for C++"
DESCRIPTION="UnitTest++ was designed to do test-driven development on a wide \
variety of platforms. Simplicity, portability, speed, and small footprint \
are all very important aspects of UnitTest++. UnitTest++ is mostly standard \
C++ and makes minimal use of advanced library and language features, which \
means it should be easily portable to just about any platform."
HOMEPAGE="http://unittest-cpp.github.io"
COPYRIGHT="2006 Noel Llopis and Charles Nicholson"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://github.com/unittest-cpp/unittest-cpp/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="1cc9071be01db190f26868fefb6a7af49ee56a339fc3b08d1a1e9eeca5376c45"
SOURCE_FILENAME="unittest-cpp-$portVersion.tar.gz"
SOURCE_DIR="unittest-cpp-$portVersion"
PATCHES="unittest++-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
unittest++$secondaryArchSuffix = $portVersion
lib:libunittest++$secondaryArchSuffix = $portVersion compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
unittest++${secondaryArchSuffix}_devel = $portVersion
devel:libunittest++$secondaryArchSuffix = $portVersion compat >= 1
"
REQUIRES_devel="
unittest++$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -DCMAKE_INSTALL_PREFIX=$prefix .
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $includeDir
mv $prefix/include/UnitTest++ $includeDir/
rmdir $prefix/include
if [ -n "$secondaryArchSuffix" ]; then
mkdir -p $libDir
mv $prefix/lib/lib* $prefix/lib/cmake $libDir/
fi
prepareInstalledDevelLibs libUnitTest++
packageEntries devel $relativeDevelopDir
}
TEST()
{
./TestUnitTest++
}

View File

@@ -7,7 +7,7 @@ means it should be easily portable to just about any platform."
HOMEPAGE="https://unittest-cpp.github.io/"
COPYRIGHT="2006 Noel Llopis and Charles Nicholson"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/unittest-cpp/unittest-cpp/releases/download/v$portVersion/unittest-cpp-$portVersion.tar.gz"
CHECKSUM_SHA256="1d1b118518dc200e6b87bbf3ae7bfd00a0cfc6be708255f98e5e3d627a7c9f98"
SOURCE_DIR="unittest-cpp-$portVersion"
@@ -38,6 +38,7 @@ BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:git
cmd:make
@@ -49,7 +50,7 @@ defineDebugInfoPackage unittest++$secondaryArchSuffix \
BUILD()
{
runConfigure ./configure
runConfigure ./configure --disable-static
make $jobArgs
}