Rebuild package
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
name: catch2
|
name: catch2
|
||||||
description: A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later
|
description: A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later
|
||||||
version: 3.10.0
|
version: 3.10.0
|
||||||
|
revision: 2
|
||||||
url: https://github.com/catchorg/catch2
|
url: https://github.com/catchorg/catch2
|
||||||
license: BSL1
|
license: BSL1
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -15,34 +15,30 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
cmake -B build \
|
||||||
cd build
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
-DCATCH_BUILD_EXAMPLES=OFF \
|
-DCATCH_BUILD_EXAMPLES=OFF \
|
||||||
-DCATCH_ENABLE_COVERAGE=OFF \
|
-DCATCH_ENABLE_COVERAGE=OFF \
|
||||||
-DCATCH_ENABLE_WERROR=OFF \
|
-DCATCH_ENABLE_WERROR=OFF \
|
||||||
-DCATCH_DEVELOPMENT_BUILD=ON \
|
-DCATCH_DEVELOPMENT_BUILD=ON \
|
||||||
-DBUILD_TESTING=ON \
|
-DBUILD_TESTING=ON \
|
||||||
-DBUILD_SHARED_LIBS=OFF ..
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
cmake --build .
|
-W no-dev
|
||||||
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cd build
|
ctest --test-dir build --output-on-failure
|
||||||
|
|
||||||
ctest
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||||
|
|
||||||
DESTDIR="$BPM_OUTPUT" cmake --install .
|
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/catch2/LICENSE.txt
|
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/catch2/LICENSE.txt
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user