diff options
3 files changed, 66 insertions, 17 deletions
diff --git a/meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch b/meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch new file mode 100644 index 0000000000..7e6611b6a8 --- /dev/null +++ b/meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 93557d5c5acf9ebb2c0fa708658e1d36621dd23a Mon Sep 17 00:00:00 2001 | ||
2 | From: Wang Mingyu <wangmy@fujitsu.com> | ||
3 | Date: Wed, 7 Sep 2022 10:05:15 +0900 | ||
4 | Subject: [PATCH] Do not download the catch framework during configure. | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | ||
9 | --- | ||
10 | tests/CMakeLists.txt | 15 --------------- | ||
11 | 1 file changed, 15 deletions(-) | ||
12 | |||
13 | diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt | ||
14 | index 80c4f6a..ae210db 100644 | ||
15 | --- a/tests/CMakeLists.txt | ||
16 | +++ b/tests/CMakeLists.txt | ||
17 | @@ -74,21 +74,6 @@ if(Catch2_FOUND) | ||
18 | endif() | ||
19 | message(STATUS "Found Catch2") | ||
20 | target_link_libraries(catch_main PUBLIC Catch2::Catch2) | ||
21 | -else() | ||
22 | - message(STATUS "Downloading Catch2") | ||
23 | - | ||
24 | - # FetchContent would be better, but requires newer CMake. | ||
25 | - file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/catch2") | ||
26 | - set(url https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp) | ||
27 | - file( | ||
28 | - DOWNLOAD ${url} "${CMAKE_CURRENT_BINARY_DIR}/catch2/catch.hpp" | ||
29 | - STATUS status | ||
30 | - EXPECTED_HASH SHA256=ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc) | ||
31 | - list(GET status 0 error) | ||
32 | - if(error) | ||
33 | - message(FATAL_ERROR "Could not download ${url}, and Catch2 not found on your system.") | ||
34 | - endif() | ||
35 | - target_include_directories(catch_main PUBLIC "${CMAKE_CURRENT_BINARY_DIR}") | ||
36 | endif() | ||
37 | |||
38 | # Target must already exist | ||
39 | -- | ||
40 | 2.25.1 | ||
41 | |||
diff --git a/meta-oe/recipes-support/cli11/cli11_1.9.1.bb b/meta-oe/recipes-support/cli11/cli11_1.9.1.bb deleted file mode 100644 index 7de3335abd..0000000000 --- a/meta-oe/recipes-support/cli11/cli11_1.9.1.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | SUMMARY = "C++11 command line parser" | ||
2 | DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface." | ||
3 | HOMEPAGE = "https://github.com/CLIUtils/CLI11" | ||
4 | LICENSE = "BSD-3-Clause" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b73927b18d5c6cd8d2ed28a6ad539733" | ||
6 | SRCREV = "5cb3efabce007c3a0230e4cc2e27da491c646b6c" | ||
7 | PV .= "+git${SRCPV}" | ||
8 | |||
9 | SRC_URI += "gitsm://github.com/CLIUtils/CLI11;branch=v1;protocol=https" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | inherit cmake | ||
14 | inherit ptest | ||
15 | |||
16 | # cli11 is a header only C++ library, so the main package will be empty. | ||
17 | RDEPENDS:${PN}-dev = "" | ||
diff --git a/meta-oe/recipes-support/cli11/cli11_2.2.0.bb b/meta-oe/recipes-support/cli11/cli11_2.2.0.bb new file mode 100644 index 0000000000..53a57489fe --- /dev/null +++ b/meta-oe/recipes-support/cli11/cli11_2.2.0.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "C++11 command line parser" | ||
2 | DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface." | ||
3 | HOMEPAGE = "https://github.com/CLIUtils/CLI11" | ||
4 | LICENSE = "BSD-3-Clause" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9ad746b5f49c0fd53c08ca1faff1922c" | ||
6 | SRCREV = "b9be5b9444772324459989177108a6a65b8b2769" | ||
7 | PV .= "+git${SRCPV}" | ||
8 | |||
9 | SRC_URI += "gitsm://github.com/CLIUtils/CLI11;branch=main;protocol=https \ | ||
10 | https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp \ | ||
11 | file://0001-Do-not-download-the-catch-framework-during-configure.patch" | ||
12 | |||
13 | SRC_URI[sha256sum] = "ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc" | ||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | do_configure:prepend() { | ||
17 | mkdir -p ${S}/tests/catch2 | ||
18 | cp ${DL_DIR}/catch.hpp ${S}/tests/catch2/catch.hpp | ||
19 | } | ||
20 | |||
21 | inherit cmake | ||
22 | inherit ptest | ||
23 | |||
24 | # cli11 is a header only C++ library, so the main package will be empty. | ||
25 | RDEPENDS:${PN}-dev = "" | ||