diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2021-08-03 07:31:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-02 16:31:29 -0700 |
| commit | 667f041ea77ba18b08d0f2eb32eaaccc1b1db5b8 (patch) | |
| tree | 99e80fa1c8a6ea078322ffb0a0f9069dcf5b4572 | |
| parent | 1ecfc2b3a9450ba6ebf67b70f1f7c591bcf0c5f0 (diff) | |
| download | vcpkg-667f041ea77ba18b08d0f2eb32eaaccc1b1db5b8.tar.gz vcpkg-667f041ea77ba18b08d0f2eb32eaaccc1b1db5b8.zip | |
[vcpkg baseline][tinyfiledialogs] Change repo to sourceforge (#19287)
* [tinyfiledialogs] Change repo to sourceforge
* version
* Export INTERFACE_INCLUDE_DIRECTORIES
* Update versions/t-/tinyfiledialogs.json
| -rw-r--r-- | ports/tinyfiledialogs/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | ports/tinyfiledialogs/CONTROL | 5 | ||||
| -rw-r--r-- | ports/tinyfiledialogs/portfile.cmake | 18 | ||||
| -rw-r--r-- | ports/tinyfiledialogs/vcpkg.json | 18 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/t-/tinyfiledialogs.json | 5 |
6 files changed, 37 insertions, 13 deletions
diff --git a/ports/tinyfiledialogs/CMakeLists.txt b/ports/tinyfiledialogs/CMakeLists.txt index 34940b79d..cb48742a1 100644 --- a/ports/tinyfiledialogs/CMakeLists.txt +++ b/ports/tinyfiledialogs/CMakeLists.txt @@ -3,6 +3,8 @@ project(tinyfiledialogs C) add_library(tinyfiledialogs tinyfiledialogs.c) +target_include_directories(tinyfiledialogs INTERFACE $<INSTALL_INTERFACE:include/tinyfiledialogs>) + install( TARGETS tinyfiledialogs EXPORT tinyfiledialogsConfig diff --git a/ports/tinyfiledialogs/CONTROL b/ports/tinyfiledialogs/CONTROL deleted file mode 100644 index c17db7194..000000000 --- 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 afeb1c2d7..27e520959 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 000000000..48819cab3 --- /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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 6e204ecc7..89becb65a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6294,7 +6294,7 @@ }, "tinyfiledialogs": { "baseline": "3.8.8", - "port-version": 0 + "port-version": 1 }, "tinygltf": { "baseline": "2020-07-28", diff --git a/versions/t-/tinyfiledialogs.json b/versions/t-/tinyfiledialogs.json index d918fbdef..d7b0b5fcd 100644 --- a/versions/t-/tinyfiledialogs.json +++ b/versions/t-/tinyfiledialogs.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "3959a47c7d93ca7db6e2022553b1d3427970cecf", + "version-semver": "3.8.8", + "port-version": 1 + }, + { "git-tree": "1a5b599e8303e1b62bca446461bd7114ec97caba", "version-string": "3.8.8", "port-version": 0 |
