Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[imfl/color-console] Add new port #23671

Merged
merged 8 commits into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ports/color-console/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions ports/color-console/usage
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions ports/color-console/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions versions/c-/color-console.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}