From 94f03d018a3bf971178eea092a4746788625d185 Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Wed, 20 Dec 2023 13:45:25 -0800 Subject: [PATCH] Guard the libusb dependency for Linux. --- ports/treehopper/portfile.cmake | 3 +-- ports/treehopper/vcpkg.json | 5 ++++- versions/t-/treehopper.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ports/treehopper/portfile.cmake b/ports/treehopper/portfile.cmake index 8dea34d240a717..d2b263386875ac 100644 --- a/ports/treehopper/portfile.cmake +++ b/ports/treehopper/portfile.cmake @@ -3,7 +3,7 @@ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO treehopper-electronics/treehopper-sdk - REF ${VERSION} + REF "${VERSION}" SHA512 65b748375b798787c8b59f9657151f340920c939c3f079105b9b78f4e3b775125598106c6dfa4feba111a64d30f007003a70110ac767802a7dd1127a25c9fb14 HEAD_REF master PATCHES @@ -22,4 +22,3 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") file(INSTALL "${SOURCE_PATH}/C++/API/inc/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/Treehopper/") vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") - diff --git a/ports/treehopper/vcpkg.json b/ports/treehopper/vcpkg.json index 06ee665d3d7e1d..49978c00070768 100644 --- a/ports/treehopper/vcpkg.json +++ b/ports/treehopper/vcpkg.json @@ -6,7 +6,10 @@ "homepage": "https://treehopper.io", "supports": "!staticcrt", "dependencies": [ - "libusb", + { + "name": "libusb", + "platform": "linux" + }, { "name": "vcpkg-cmake", "host": true diff --git a/versions/t-/treehopper.json b/versions/t-/treehopper.json index 7b99f61b0ab810..1504a450723118 100644 --- a/versions/t-/treehopper.json +++ b/versions/t-/treehopper.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "8080a3cb8e29113edc342599b28abde6fcf44fab", + "git-tree": "36bae0eb80724eaefece77807a3176fe1a79aaa3", "version": "1.11.3", "port-version": 9 },