From 5a497469d19594d2218d453db02614a3b0b65fd7 Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Mon, 31 Oct 2022 21:25:38 +0100 Subject: [PATCH] [ogdf] update (#27502) --- ports/ogdf/fix-c4723.patch | 13 ------------- ports/ogdf/portfile.cmake | 20 +++++++++----------- ports/ogdf/vcpkg.json | 17 ++++++++++++++--- scripts/ci.baseline.txt | 11 ----------- versions/baseline.json | 4 ++-- versions/o-/ogdf.json | 5 +++++ 6 files changed, 30 insertions(+), 40 deletions(-) delete mode 100644 ports/ogdf/fix-c4723.patch diff --git a/ports/ogdf/fix-c4723.patch b/ports/ogdf/fix-c4723.patch deleted file mode 100644 index 14401c7a988d09..00000000000000 --- a/ports/ogdf/fix-c4723.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/cmake/compiler-specifics.cmake b/cmake/compiler-specifics.cmake -index 2446f32..45b00ac 100644 ---- a/cmake/compiler-specifics.cmake -+++ b/cmake/compiler-specifics.cmake -@@ -40,7 +40,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") - set(available_default_warning_flags_release "${available_default_warning_flags_release} -Wno-error=unused-variable") - set(warnings_as_errors_flag "-Werror") - elseif(MSVC) -- set(available_default_warning_flags "/W3 /wd4018 /wd4068 /wd4101 /wd4244 /wd4250 /wd4267 /wd4373 /wd4800 /wd4996") -+ set(available_default_warning_flags "/W3 /wd4018 /wd4068 /wd4101 /wd4244 /wd4250 /wd4267 /wd4373 /wd4800 /wd4996 /wd4723") - # this has to be explained because MSVC is so cryptic: - # /W3 sets the warning level of MSVC to 3 (all warnings except informational warnings), - # /wd disables the warning with the specific code, diff --git a/ports/ogdf/portfile.cmake b/ports/ogdf/portfile.cmake index 45951698a5ad1b..aa188e7a9fd42d 100644 --- a/ports/ogdf/portfile.cmake +++ b/ports/ogdf/portfile.cmake @@ -1,15 +1,13 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO ogdf/ogdf - REF 8a103cf3a7dfff87fe8b7534575604bc53c0870c - SHA512 264e8586be7a18640f253eb7b289dd99f1f2fc42c4d2304ab12f7c6aa9c5754b710642e7296038aea0cd9368d732d0106501fefed800743b403adafff7e3f0b2 + REF 214105da97863e1d0a066157e5cc573b65b433a9 + SHA512 8ab9f266fef224ce600cec418d5de56761714fbaa2d509ba89d55700c1d27d02a5fc93fab8eb8e10325a42c7d2fa8e251e2a18ece9a9565e215bf39672bff92d HEAD_REF master - PATCHES fix-c4723.patch ) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DCOIN_INSTALL_LIBRARY_DIR:STRING=lib -DCOIN_INSTALL_CMAKE_DIR:STRING=lib/cmake/OGDF @@ -17,11 +15,11 @@ vcpkg_configure_cmake( -DOGDF_INSTALL_CMAKE_DIR:STRING=lib/cmake/OGDF ) -vcpkg_install_cmake() +vcpkg_cmake_install() -vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/OGDF) +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/OGDF) # Handle copyright -file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/minisat/doc ${CURRENT_PACKAGES_DIR}/include/ogdf/lib/minisat/doc) +file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/minisat/doc" "${CURRENT_PACKAGES_DIR}/include/ogdf/lib/minisat/doc") diff --git a/ports/ogdf/vcpkg.json b/ports/ogdf/vcpkg.json index dc21d5e43f8141..51731e2211b047 100644 --- a/ports/ogdf/vcpkg.json +++ b/ports/ogdf/vcpkg.json @@ -1,7 +1,18 @@ { "name": "ogdf", - "version-string": "2019-08-23", - "port-version": 2, + "version-date": "2022-06-30", "description": "Open Graph Drawing Framework", - "homepage": "https://github.com/ogdf/ogdf" + "homepage": "https://github.com/ogdf/ogdf", + "license": null, + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] } diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 6d6e7674396694..e9cc0b1310a9ce 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -713,17 +713,6 @@ ode:arm-uwp=fail ode:x64-uwp=fail offscale-libetcd-cpp:arm-uwp=fail offscale-libetcd-cpp:x64-uwp=fail -ogdf:arm64-windows = skip -ogdf:arm-uwp = skip -ogdf:x64-osx=fail -ogdf:arm64-osx=fail -ogdf:x64-uwp = skip -ogdf:x64-windows = skip -ogdf:x64-windows-static = skip -ogdf:x64-windows-static-md=skip -ogdf:x86-windows = skip -# broken when `python` is python3, https://github.com/microsoft/vcpkg/issues/18936 -ogdf:x64-linux=fail ogre:arm64-osx=fail # Conflicts with ogre ogre-next:arm64-windows = skip diff --git a/versions/baseline.json b/versions/baseline.json index 25cf63af0a4a14..6d9e6ed507df77 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5321,8 +5321,8 @@ "port-version": 3 }, "ogdf": { - "baseline": "2019-08-23", - "port-version": 2 + "baseline": "2022-06-30", + "port-version": 0 }, "ogre": { "baseline": "13.4.4", diff --git a/versions/o-/ogdf.json b/versions/o-/ogdf.json index d7d605da07f9c5..5057eb79ac69f2 100644 --- a/versions/o-/ogdf.json +++ b/versions/o-/ogdf.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "59450d8dd4543482cace9a1a59ca8f46883e85b2", + "version-date": "2022-06-30", + "port-version": 0 + }, { "git-tree": "1a3d7f1e718f35843520add2d7e102b12586e401", "version-string": "2019-08-23",