[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:
PanForPancakes 2022-03-23 02:12:30 +04:00 committed by GitHub
parent b219334d40
commit 6065e5175f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 45 additions and 0 deletions

View 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})

View 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})

View 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"
}

View File

@ -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

View 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
}
]
}