diff options
| author | JackBoos <398808571@qq.com> | 2019-02-02 02:08:22 +0800 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-02-01 10:08:22 -0800 |
| commit | 1e1f2949ac9c98dd38cea3a51b74d8ab8d936d1d (patch) | |
| tree | 61edeeb17d530d40fd644634a041680e1a810bfb | |
| parent | 9fb3b9c8fa3f4a571e00331ab7efe4f2098d472c (diff) | |
| download | vcpkg-1e1f2949ac9c98dd38cea3a51b74d8ab8d936d1d.tar.gz vcpkg-1e1f2949ac9c98dd38cea3a51b74d8ab8d936d1d.zip | |
[rang]add port rang (#5273)
* [rang]add port rang
* change version info and description
* [fann]Add port fann
* Remove Fann temporary. Wait for merge port 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 |
