community/catch2-3: upgrade to 3.9.0

This commit is contained in:
Celeste 2025-07-25 03:49:28 +00:00
parent 89ecf9b1f9
commit 9a39ef2c66
2 changed files with 49 additions and 5 deletions

View File

@ -2,19 +2,21 @@
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=catch2-3
pkgver=3.8.1
pkgver=3.9.0
pkgrel=0
arch="all"
url="https://github.com/catchorg/Catch2"
pkgdesc="Modern, C++-native, header-only, test framework for unit-tests (v3)"
url="https://github.com/catchorg/Catch2"
arch="all"
license="BSL-1.0"
makedepends="
cmake
python3
samurai
"
source="https://github.com/catchorg/Catch2/archive/v$pkgver/catch2-v$pkgver.tar.gz"
subpackages="$pkgname-doc"
source="https://github.com/catchorg/Catch2/archive/v$pkgver/catch2-v$pkgver.tar.gz
pkgconf-unwritable.patch
"
builddir="$srcdir/Catch2-$pkgver"
build() {
@ -39,5 +41,6 @@ package() {
}
sha512sums="
071f407dfefa84c3f766e32de48525dcaa50f5c5b0a2e2e9e615fdfff8d36476c7a28c9c27f4030fcf2f5f612043124efe61582bc2c174ddb62b4f307f74ffc5 catch2-v3.8.1.tar.gz
b215216088dbebf0d590351767e71e7643158b26835e3d6dab8c826d8252c4ab09697dd9eaf37d34ad7fc7cc367846bf501ee9489ba3a407ace00ae5d18268ed catch2-v3.9.0.tar.gz
9e4dbf0654ca4224bab45503dd393823b2e932275b094a729a233f78b0ca720be7f49c9c27e24746171b888ace0c9bd9567642950f4995657fe21c545a51ada5 pkgconf-unwritable.patch
"

View File

@ -0,0 +1,41 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -190,7 +190,9 @@ if(NOT_SUBPROJECT)
install_script
"set(install_pkgconfdir \"${PKGCONFIG_INSTALL_DIR}\")"
"set(impl_pc_file \"${CMAKE_CURRENT_SOURCE_DIR}/CMake/catch2.pc.in\")"
+ "set(impl_pc_file_tmp \"${CMAKE_CURRENT_BINARY_DIR}/catch2.pc\")"
"set(main_pc_file \"${CMAKE_CURRENT_SOURCE_DIR}/CMake/catch2-with-main.pc.in\")"
+ "set(main_pc_file_tmp \"${CMAKE_CURRENT_BINARY_DIR}/catch2-with-main.pc\")"
"set(Catch2_VERSION ${Catch2_VERSION})"
"set(include_dir \"${CMAKE_INSTALL_INCLUDEDIR}\")"
"set(lib_dir \"${CMAKE_INSTALL_LIBDIR}\")"
@@ -198,19 +200,26 @@ if(NOT_SUBPROJECT)
set(lib_name "$<TARGET_FILE_BASE_NAME:Catch2>")
configure_file(
"${impl_pc_file}"
- "${CMAKE_INSTALL_PREFIX}/${install_pkgconfdir}/catch2.pc"
+ "${impl_pc_file_tmp}"
@ONLY
)
set(lib_name "$<TARGET_FILE_BASE_NAME:Catch2WithMain>")
configure_file(
"${main_pc_file}"
- "${CMAKE_INSTALL_PREFIX}/${install_pkgconfdir}/catch2-with-main.pc"
+ "${main_pc_file_tmp}"
@ONLY
)
]]
)
install(CODE "${install_script}")
+ install(
+ FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/catch2.pc"
+ "${CMAKE_CURRENT_BINARY_DIR}/catch2-with-main.pc"
+ DESTINATION
+ ${PKGCONFIG_INSTALL_DIR}
+ )
set(CPACK_PACKAGE_CONTACT "https://github.com/catchorg/Catch2/")