diff options
| author | myd7349 <myd7349@gmail.com> | 2019-12-24 06:35:45 +0800 |
|---|---|---|
| committer | dan-shaw <51385773+dan-shaw@users.noreply.github.com> | 2019-12-23 14:35:45 -0800 |
| commit | 80cf1e4b19f2b75b9c5c5fd4aea89cd026489d9b (patch) | |
| tree | 5d952947d09a6ae03626b86829f111f714239bda | |
| parent | 1c4a1d1cef7eaf23f6d9ff1785c35625479b0942 (diff) | |
| download | vcpkg-80cf1e4b19f2b75b9c5c5fd4aea89cd026489d9b.tar.gz vcpkg-80cf1e4b19f2b75b9c5c5fd4aea89cd026489d9b.zip | |
[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
| -rw-r--r-- | ports/indicators/CONTROL | 4 | ||||
| -rw-r--r-- | ports/indicators/portfile.cmake | 27 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/indicators/CONTROL b/ports/indicators/CONTROL new file mode 100644 index 000000000..ceda7065c --- /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 000000000..46b5660a6 --- /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})
|
