diff options
| author | Phil Christensen <philc@microsoft.com> | 2019-02-27 11:56:29 -0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-02-27 11:56:29 -0800 |
| commit | 2cc7fa27e57f1129d1f37ccb009563509ca25720 (patch) | |
| tree | 3c75e423b71e54f6f65ec085c5d3d190d9d0d1a9 /ports/rang | |
| parent | 3830517ec7519b823f5d8c404710889c6bd00278 (diff) | |
| parent | 2dfa568d186e4f0d199040929f9b3e44f27c8943 (diff) | |
| download | vcpkg-2cc7fa27e57f1129d1f37ccb009563509ca25720.tar.gz vcpkg-2cc7fa27e57f1129d1f37ccb009563509ca25720.zip | |
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/5254
Diffstat (limited to 'ports/rang')
| -rw-r--r-- | ports/rang/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | ports/rang/CONTROL | 3 | ||||
| -rw-r--r-- | ports/rang/portfile.cmake | 21 |
3 files changed, 29 insertions, 0 deletions
diff --git a/ports/rang/CMakeLists.txt b/ports/rang/CMakeLists.txt new file mode 100644 index 000000000..6cf64a05f --- /dev/null +++ b/ports/rang/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required (VERSION 2.8)
+project (rang)
+
+include_directories(include)
+install(FILES ${PROJECT_SOURCE_DIR}/include/rang.hpp DESTINATION include)
\ No newline at end of file diff --git a/ports/rang/CONTROL b/ports/rang/CONTROL new file mode 100644 index 000000000..629bee475 --- /dev/null +++ b/ports/rang/CONTROL @@ -0,0 +1,3 @@ +Source: rang
+Version: 3.1.0
+Description: Colors for your Terminal.
\ No newline at end of file diff --git a/ports/rang/portfile.cmake b/ports/rang/portfile.cmake new file mode 100644 index 000000000..4c332a82e --- /dev/null +++ b/ports/rang/portfile.cmake @@ -0,0 +1,21 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO agauniyal/rang
+ REF v3.1.0
+ SHA512 3419c9d8b8177320d4254a3e317790b0ca17bb08940025a16cb6a468a5f4c6e6a8bae391441fbb61b46e94cbe760aef1cb7f31fb8a1e958312e9dcb568b04470
+ HEAD_REF master
+)
+
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
\ No newline at end of file |
