Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 30 additions & 22 deletions ports/yandex-disk-cpp-client/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
set(VCPKG_POLICY_ALLOW_DEBUG_SHARE enabled)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Krasnovvvvv/yandex-disk-cpp-client
REF v1.0.3
SHA512 de0e68aa0419f9918afea9fa7741477941d63c21e08cbe50d27a5fe9de7160a7a1f5ce4d307c906001aa757f82951295189c5d213b788987449d1a1b102da945
HEAD_REF main
)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
PACKAGE_NAME "yandex-disk-cpp-client"
CONFIG_PATH "lib/cmake/yandex-disk-cpp-client"
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
set(VCPKG_POLICY_ALLOW_DEBUG_SHARE enabled)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Krasnovvvvv/yandex-disk-cpp-client
REF v1.0.4
SHA512 93a142d5bce93fe9f751decede2dfd715f5f21cd72f716a58b16202483cab8fdc4102f558e738864e1ac57e941e95d62ba4af6a9b60a89c1bdb72e8ffe24dd88
HEAD_REF main
)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(
PACKAGE_NAME "yandex-disk-cpp-client"
CONFIG_PATH "lib/cmake/yandex-disk-cpp-client"
)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
4 changes: 0 additions & 4 deletions ports/yandex-disk-cpp-client/usage

This file was deleted.

14 changes: 10 additions & 4 deletions ports/yandex-disk-cpp-client/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"name": "yandex-disk-cpp-client",
"version": "1.0.3",
"description": "Modern C++ client for Yandex.Disk REST API",
"version": "1.0.4",
"description": "C++ client library for Yandex Disk REST API",
"homepage": "https://github.com/Krasnovvvvv/yandex-disk-cpp-client",
"documentation": "https://krasnovvvvv.github.io/yandex-disk-cpp-client/",
"license": "MIT",
"dependencies": [
"curl",
"nlohmann-json",
"vcpkg-cmake",
"vcpkg-cmake-config"
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -11085,7 +11085,7 @@
"port-version": 0
},
"yandex-disk-cpp-client": {
"baseline": "1.0.3",
"baseline": "1.0.4",
"port-version": 0
},
"yara": {
Expand Down
5 changes: 5 additions & 0 deletions versions/y-/yandex-disk-cpp-client.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dbdde105b62ce251a679ff80f6485c228a96d44f",
"version": "1.0.4",
"port-version": 0
},
{
"git-tree": "4ddb20a4777c4b753db8bb364238b33e36dee2ca",
"version": "1.0.3",
Expand Down