diff --git a/ports/unittest-cpp/CONTROL b/ports/unittest-cpp/CONTROL deleted file mode 100644 index 195b41fe40f8ce..00000000000000 --- a/ports/unittest-cpp/CONTROL +++ /dev/null @@ -1,4 +0,0 @@ -Source: unittest-cpp -Version: 2.0.0-1 -Homepage: https://github.com/unittest-cpp/unittest-cpp -Description: A lightweight unit testing framework for C++ diff --git a/ports/unittest-cpp/fix-include-path.patch b/ports/unittest-cpp/fix-include-path.patch new file mode 100644 index 00000000000000..32455dec53c585 --- /dev/null +++ b/ports/unittest-cpp/fix-include-path.patch @@ -0,0 +1,11 @@ +diff --git a/cmake/UnitTest++Config.cmake b/cmake/UnitTest++Config.cmake +index afe165c..cc43a2b 100644 +--- a/cmake/UnitTest++Config.cmake ++++ b/cmake/UnitTest++Config.cmake +@@ -1,2 +1,4 @@ + include("${CMAKE_CURRENT_LIST_DIR}/UnitTest++Targets.cmake") +-get_filename_component(UTPP_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../../include/" ABSOLUTE) ++get_filename_component(UTPP_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../include/" ABSOLUTE) ++ ++get_filename_component(UnitTest++_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../include/" ABSOLUTE) +\ No newline at end of file diff --git a/ports/unittest-cpp/portfile.cmake b/ports/unittest-cpp/portfile.cmake index e54daf77d11ce0..4558d8a1769058 100644 --- a/ports/unittest-cpp/portfile.cmake +++ b/ports/unittest-cpp/portfile.cmake @@ -6,6 +6,8 @@ vcpkg_from_github( REF v2.0.0 SHA512 39318f4ed31534c116679a3257bf1438a6c4b3bef1894dfd40aea934950c6c8197af6a7f61539b8e9ddc67327c9388d7e8a6f8a3e0e966ad26c07554e2429cab HEAD_REF master + PATCHES + fix-include-path.patch ) vcpkg_configure_cmake( @@ -19,7 +21,7 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/UnitTest++) file(RENAME ${CURRENT_PACKAGES_DIR}/share/unittest-cpp ${CURRENT_PACKAGES_DIR}/share/unittest++) # Handle copyright -file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/unittest-cpp RENAME copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) # Remove duplicate includes file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) diff --git a/ports/unittest-cpp/vcpkg.json b/ports/unittest-cpp/vcpkg.json new file mode 100644 index 00000000000000..b80cbbad575091 --- /dev/null +++ b/ports/unittest-cpp/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "unittest-cpp", + "version-semver": "2.0.0", + "port-version": 2, + "description": "A lightweight unit testing framework for C++", + "homepage": "https://github.com/unittest-cpp/unittest-cpp" +} diff --git a/versions/baseline.json b/versions/baseline.json index 1a318b0c5e8420..101d9974ffe7d0 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6373,8 +6373,8 @@ "port-version": 0 }, "unittest-cpp": { - "baseline": "2.0.0-1", - "port-version": 0 + "baseline": "2.0.0", + "port-version": 2 }, "unixodbc": { "baseline": "2.3.7", diff --git a/versions/u-/unittest-cpp.json b/versions/u-/unittest-cpp.json index f4ac48856a8c14..fe90fa82995c34 100644 --- a/versions/u-/unittest-cpp.json +++ b/versions/u-/unittest-cpp.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "22f6d4e1405162f02c4d25e742fcf0dcc0503146", + "version-semver": "2.0.0", + "port-version": 2 + }, { "git-tree": "3ba07fcecec6bf9298a04b064411601043d98bd7", "version-string": "2.0.0-1",