From 549bcf0a106763c885990e423e08d1175000611c Mon Sep 17 00:00:00 2001 From: JackBoosY Date: Sun, 1 Aug 2021 19:14:27 -0700 Subject: [PATCH] [tinyfiledialogs] Change repo to sourceforge --- ports/tinyfiledialogs/CONTROL | 5 ----- ports/tinyfiledialogs/portfile.cmake | 18 +++++++++++------- ports/tinyfiledialogs/vcpkg.json | 18 ++++++++++++++++++ 3 files changed, 29 insertions(+), 12 deletions(-) delete mode 100644 ports/tinyfiledialogs/CONTROL create mode 100644 ports/tinyfiledialogs/vcpkg.json diff --git a/ports/tinyfiledialogs/CONTROL b/ports/tinyfiledialogs/CONTROL deleted file mode 100644 index c17db719450551..00000000000000 --- a/ports/tinyfiledialogs/CONTROL +++ /dev/null @@ -1,5 +0,0 @@ -Source: tinyfiledialogs -Version: 3.8.8 -Description: Highly portable and cross-platform dialogs for native inputbox, passwordbox, colorpicker and more -Homepage: https://sourceforge.net/projects/tinyfiledialogs/ -Supports: !uwp diff --git a/ports/tinyfiledialogs/portfile.cmake b/ports/tinyfiledialogs/portfile.cmake index afeb1c2d70eb5d..27e5209599518b 100644 --- a/ports/tinyfiledialogs/portfile.cmake +++ b/ports/tinyfiledialogs/portfile.cmake @@ -2,26 +2,30 @@ vcpkg_fail_port_install(ON_TARGET "uwp") vcpkg_check_linkage(ONLY_STATIC_LIBRARY) -vcpkg_from_git( +vcpkg_from_sourceforge( OUT_SOURCE_PATH SOURCE_PATH - URL "https://git.code.sf.net/p/tinyfiledialogs/code" - REF "8e966d92d0e772b5e34ffc3d8ec1559731a07ccb" + REPO tinyfiledialogs + SHA512 d63d6dd847d6bbd1f252c8fbd228086381af7189ac71afc97bd57e06badd1d3f4d90c6aab6207191ae7253d5a71fc44636cf8e33714089d5b478dd2714f59376 + FILENAME "tinyfiledialogs-current.zip" ) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") -vcpkg_configure_cmake( +vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" PREFER_NINJA ) -vcpkg_install_cmake() +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") -vcpkg_fixup_cmake_targets() file(READ "${CURRENT_PACKAGES_DIR}/include/tinyfiledialogs/tinyfiledialogs.h" _contents) # reads between the line "- License -" and a closing "*/" if (NOT _contents MATCHES [[- License -(([^*]|\*[^/])*)\*/]]) message(FATAL_ERROR "Failed to parse license from tinyfiledialogs.h") endif() file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "${CMAKE_MATCH_1}") -file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") diff --git a/ports/tinyfiledialogs/vcpkg.json b/ports/tinyfiledialogs/vcpkg.json new file mode 100644 index 00000000000000..48819cab3afaa4 --- /dev/null +++ b/ports/tinyfiledialogs/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "tinyfiledialogs", + "version-semver": "3.8.8", + "port-version": 1, + "description": "Highly portable and cross-platform dialogs for native inputbox, passwordbox, colorpicker and more", + "homepage": "https://sourceforge.net/projects/tinyfiledialogs/", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +}