From e01906b2ba7e645a76ee021a19de616edc98d29f Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Thu, 11 Jul 2024 17:57:16 +0200 Subject: [PATCH] [ctbignum] fix build (#39851) --- ports/ctbignum/no-boost.patch | 23 +++++++++++++++++++++++ ports/ctbignum/portfile.cmake | 2 ++ ports/ctbignum/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/c-/ctbignum.json | 5 +++++ 5 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 ports/ctbignum/no-boost.patch diff --git a/ports/ctbignum/no-boost.patch b/ports/ctbignum/no-boost.patch new file mode 100644 index 0000000000..2df58229f6 --- /dev/null +++ b/ports/ctbignum/no-boost.patch @@ -0,0 +1,23 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a5070b1..b60462b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -19,18 +19,6 @@ cmake_minimum_required(VERSION 3.0.0) + ## + project(ctbignum VERSION 0.1 LANGUAGES CXX) + +-## +-## INCLUDE +-## +-## +-include(ExternalProject) +- +-## External dependencies +-find_package(Boost 1.61 REQUIRED) +-if(Boost_FOUND) +- include_directories(${Boost_INCLUDE_DIRS}) +-endif() +- + ## + ## OPTIONS + ## diff --git a/ports/ctbignum/portfile.cmake b/ports/ctbignum/portfile.cmake index 1260fbfeaf..650ad8ecd8 100644 --- a/ports/ctbignum/portfile.cmake +++ b/ports/ctbignum/portfile.cmake @@ -4,6 +4,8 @@ vcpkg_from_github( REF cf3233d8b7dcff59f29a7389204959ee2228a4af SHA512 8cd5e187836f48165a088a171c87ce438393e66f7362af1b67a253ae6ef0b17c41468e21e0dfe337094796f2b2a2fa5062cc9a9231afc377f187baf1ead1257e HEAD_REF master + PATCHES + no-boost.patch ) vcpkg_cmake_configure( diff --git a/ports/ctbignum/vcpkg.json b/ports/ctbignum/vcpkg.json index a9d26aadcb..57e333306f 100644 --- a/ports/ctbignum/vcpkg.json +++ b/ports/ctbignum/vcpkg.json @@ -1,7 +1,7 @@ { "name": "ctbignum", "version-date": "2019-08-02", - "port-version": 4, + "port-version": 5, "description": "This is a header-only template library for fixed-width \"small big-integer\" computations, for use during run-time as well as compile-time.", "homepage": "https://github.com/niekbouman/ctbignum", "dependencies": [ diff --git a/versions/baseline.json b/versions/baseline.json index 2716cad8fc..4beb453196 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2054,7 +2054,7 @@ }, "ctbignum": { "baseline": "2019-08-02", - "port-version": 4 + "port-version": 5 }, "ctemplate": { "baseline": "2020-09-14", diff --git a/versions/c-/ctbignum.json b/versions/c-/ctbignum.json index fbe0a8d6f9..fea9a4f066 100644 --- a/versions/c-/ctbignum.json +++ b/versions/c-/ctbignum.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "6906803a0f8c9dc9c86a05bf2cc726a5064208e5", + "version-date": "2019-08-02", + "port-version": 5 + }, { "git-tree": "e343f08ae948a498ea8aba148c3dacda6da0fb3f", "version-date": "2019-08-02",