From b69d0c41c17193f382f5f0ac915a77d7a3a9f0fe Mon Sep 17 00:00:00 2001 From: Nick D'Ademo Date: Tue, 22 Oct 2024 09:35:39 +0800 Subject: [PATCH] [mimicpp] new port (#41684) --- ports/mimicpp/portfile.cmake | 26 ++++++++++++++++++++++++++ ports/mimicpp/vcpkg.json | 17 +++++++++++++++++ versions/baseline.json | 4 ++++ versions/m-/mimicpp.json | 9 +++++++++ 4 files changed, 56 insertions(+) create mode 100644 ports/mimicpp/portfile.cmake create mode 100644 ports/mimicpp/vcpkg.json create mode 100644 versions/m-/mimicpp.json diff --git a/ports/mimicpp/portfile.cmake b/ports/mimicpp/portfile.cmake new file mode 100644 index 00000000000000..21e2576076b255 --- /dev/null +++ b/ports/mimicpp/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO DNKpp/mimicpp + REF "v${VERSION}" + SHA512 a1c9496c28ad7940a91e6491d9a5992533c72fe3dcd19a3397ae40bc0de363bc796db1168a3caf66c8fc6718a100ab83cb0458e2b68e564efd2cf146db45b221 + HEAD_REF main +) + +set(VCPKG_BUILD_TYPE release) # header-only port + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DMIMICPP_BUILD_TESTS=OFF + -DMIMICPP_BUILD_EXAMPLES=OFF + -DMIMICPP_CONFIGURE_DOXYGEN=OFF + -DMIMICPP_ENABLE_AMALGAMATE_HEADERS=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/mimipp/cmake) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt") diff --git a/ports/mimicpp/vcpkg.json b/ports/mimicpp/vcpkg.json new file mode 100644 index 00000000000000..7bfec60ea21570 --- /dev/null +++ b/ports/mimicpp/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "mimicpp", + "version": "3", + "description": "mimic++, a modern and (mostly) macro free mocking framework.", + "homepage": "https://github.com/DNKpp/mimicpp", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 380adfe27b915f..5b77ce78d98074 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5892,6 +5892,10 @@ "baseline": "2.1.7", "port-version": 0 }, + "mimicpp": { + "baseline": "3", + "port-version": 0 + }, "minc": { "baseline": "2.4.03", "port-version": 3 diff --git a/versions/m-/mimicpp.json b/versions/m-/mimicpp.json new file mode 100644 index 00000000000000..ce60038e6c03cf --- /dev/null +++ b/versions/m-/mimicpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "ef648806009c754d8077dad2e1fd9e434616f427", + "version": "3", + "port-version": 0 + } + ] +}