catch2, bump version (#9664)

This commit is contained in:
Schrijvers Luc
2023-10-22 07:19:03 +00:00
committed by GitHub
parent 2dec7d8496
commit 2cad8aef5e

View File

@@ -11,7 +11,7 @@ COPYRIGHT="Catch2 Authors"
LICENSE="Boost v1.0"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="d90351cdc55421f640c553cfc0875a8c834428679444e8062e9187d05b18aace"
CHECKSUM_SHA256="122928b814b75717316c71af69bd2b43387643ba076a6ec16e7882bfb2dfacbb"
SOURCE_FILENAME="catch2-v$portVersion.tar.gz"
SOURCE_DIR="Catch2-$portVersion"
@@ -20,13 +20,22 @@ SECONDARY_ARCHITECTURES="x86"
PROVIDES="
catch2$secondaryArchSuffix = $portVersion
devel:libcatch2$secondaryArchSuffix = $portVersion
devel:libcatch2main$secondaryArchSuffix = $portVersion
lib:libcatch2$secondaryArchSuffix = $portVersion
lib:libcatch2main$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
catch2${secondaryArchSuffix}_devel = $portVersion
devel:libcatch2$secondaryArchSuffix = $portVersion
devel:libcatch2main$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
catch2$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
@@ -40,8 +49,10 @@ BUILD_PREREQUIRES="
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs #\
#-DCATCH_DEVELOPMENT_BUILD=ON #needed to run the tests
$cmakeDirArgs \
-DBUILD_SHARED_LIBS=ON \
-DPKGCONFIG_INSTALL_DIR=$developLibDir/pkgconfig # \
# -DCATCH_DEVELOPMENT_BUILD=ON #needed to run the tests
make -C build $jobArgs
}
@@ -49,7 +60,13 @@ INSTALL()
{
make -C build install
prepareInstalledDevelLibs libCatch2 libCatch2Main
prepareInstalledDevelLibs libCatch2 \
libCatch2Main
packageEntries devel \
$developDir \
$documentationDir \
$libDir/cmake
}
TEST()