mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[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.
This commit is contained in:
parent
9fb3b9c8fa
commit
1e1f2949ac
5
ports/rang/CMakeLists.txt
Normal file
5
ports/rang/CMakeLists.txt
Normal file
@ -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)
|
3
ports/rang/CONTROL
Normal file
3
ports/rang/CONTROL
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Source: rang
|
||||||
|
Version: 3.1.0
|
||||||
|
Description: Colors for your Terminal.
|
21
ports/rang/portfile.cmake
Normal file
21
ports/rang/portfile.cmake
Normal file
@ -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)
|
Loading…
x
Reference in New Issue
Block a user