From 80cf1e4b19f2b75b9c5c5fd4aea89cd026489d9b Mon Sep 17 00:00:00 2001 From: myd7349 Date: Tue, 24 Dec 2019 06:35:45 +0800 Subject: [PATCH] [indicators] Add new port (#9315) * [indicators] Add new port * [indicators] Update patch * [indicators] Install LICENSE.termcolor * [indicators] Update to 2019-12-15 * [indicators] Update to 2019-12-17 * [indicators] Update to 1.5 --- ports/indicators/CONTROL | 4 ++++ ports/indicators/portfile.cmake | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 ports/indicators/CONTROL create mode 100644 ports/indicators/portfile.cmake diff --git a/ports/indicators/CONTROL b/ports/indicators/CONTROL new file mode 100644 index 0000000000..ceda7065c7 --- /dev/null +++ b/ports/indicators/CONTROL @@ -0,0 +1,4 @@ +Source: indicators +Version: 1.5 +Description: Activity indicators for modern C++ +Homepage: https://github.com/p-ranav/indicators diff --git a/ports/indicators/portfile.cmake b/ports/indicators/portfile.cmake new file mode 100644 index 0000000000..46b5660a64 --- /dev/null +++ b/ports/indicators/portfile.cmake @@ -0,0 +1,27 @@ +# header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO p-ranav/indicators + REF e697a43fec7ae2198275022cea071236fcc7a52f + SHA512 7b06816e6e3fb78ade46906c51aec5dc8c3dae6d826871914c36373d0f55daf3839ba35630f74be11eec18766ad4084131b3c8fa411f371f253c71239e6861ea + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DINDICA_BUILD_TESTS=OFF + -DSAMPLES=OFF + -DDEMO=OFF +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/indica TARGET_PATH share/indica) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE.termcolor DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})