mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 08:28:59 +08:00
[imfl/color-console] Add new port (#23671)
* color-console port
* :trollface:
* 🚀
* git hates me for that :trollface: emoji
* Update ports/color-console/portfile.cmake
Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
* Update ports/color-console/vcpkg.json
Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
* Update ports/color-console/vcpkg.json
Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
* vcpkg x-add-version color-console
Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
This commit is contained in:
parent
b219334d40
commit
6065e5175f
16
ports/color-console/portfile.cmake
Normal file
16
ports/color-console/portfile.cmake
Normal file
@ -0,0 +1,16 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO imfl/color-console
|
||||
REF 745f57141e6322e20cdda59a74ab1e00d107ade1
|
||||
SHA512 d4d919eb211f2981daf6b9af93262fc8ac89bac0db755ba30b31d6aa1b981e5383fb23ef95d1ff004606d138fee630fd790c72e92440b684306c6780750bd9fd
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
# Install source file
|
||||
file(INSTALL ${SOURCE_PATH}/include/color.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include RENAME colorconsole.hpp)
|
||||
|
||||
# Install license
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
# Install usage
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
4
ports/color-console/usage
Normal file
4
ports/color-console/usage
Normal file
@ -0,0 +1,4 @@
|
||||
The package zstr is header only and can be used from CMake via:
|
||||
|
||||
find_path(COLORCONSOLE_INCLUDE_DIRS "colorconsole.hpp")
|
||||
target_include_directories(main PRIVATE ${COLORCONSOLE_INCLUDE_DIRS})
|
7
ports/color-console/vcpkg.json
Normal file
7
ports/color-console/vcpkg.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "color-console",
|
||||
"version-date": "2022-03-20",
|
||||
"description": "A lightweight header-only C++ library to bring colors to your Windows console with a very-easy-to-use API.",
|
||||
"homepage": "https://github.com/imfl/color-console",
|
||||
"license": "MIT"
|
||||
}
|
@ -1480,6 +1480,10 @@
|
||||
"baseline": "2022-03-14",
|
||||
"port-version": 0
|
||||
},
|
||||
"color-console": {
|
||||
"baseline": "2022-03-20",
|
||||
"port-version": 0
|
||||
},
|
||||
"comms": {
|
||||
"baseline": "3.4.0",
|
||||
"port-version": 1
|
||||
|
14
versions/c-/color-console.json
Normal file
14
versions/c-/color-console.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "bdd7720df549670e50ef636219b7d093f7cc8bc6",
|
||||
"version-date": "2022-03-20",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "9a371b999eb2e8c7d72d50267fbcad9c9b3967b1",
|
||||
"version-semver": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user