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

[ftxui] Add new port (fix #16327) #18360

Merged
merged 19 commits into from
Jul 6, 2021
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
28 changes: 28 additions & 0 deletions ports/ftxui/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
vcpkg_fail_port_install(ON_TARGET "uwp")

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

myd7349 marked this conversation as resolved.
Show resolved Hide resolved
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ArthurSonzogni/FTXUI
REF 3d5e4eb6ca11a0827bff68a04f4bf68ca9820e20
SHA512 670b0e5d95f7e6132ca7115005efdb1dee645146af82566af3e48bfff64d82dbc058c2f524b8b9d1d92182e4835ff6024067f0eab8dd6204514efa0207b3d33c
HEAD_REF master
)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DFTXUI_BUILD_EXAMPLES=OFF
-DFTXUI_ENABLE_INSTALL=ON
-DFTXUI_BUILD_TESTS=OFF
-DFTXUI_BUILD_DOCS=OFF
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
18 changes: 18 additions & 0 deletions ports/ftxui/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "ftxui",
"version-date": "2021-06-17",
"description": "C++ Functional Terminal User Interface",
"homepage": "https://github.com/ArthurSonzogni/FTXUI",
"license": "MIT",
"supports": "!uwp",
JackBoosY marked this conversation as resolved.
Show resolved Hide resolved
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
JackBoosY marked this conversation as resolved.
Show resolved Hide resolved
{
"name": "vcpkg-cmake-config",
"host": true
}
]
myd7349 marked this conversation as resolved.
Show resolved Hide resolved
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2144,6 +2144,10 @@
"baseline": "2.4.0-2",
"port-version": 0
},
"ftxui": {
"baseline": "2021-06-17",
"port-version": 0
},
"function2": {
"baseline": "4.2.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/f-/ftxui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "d7dd27584c015a37dd3266255530e889b16aebcf",
"version-date": "2021-06-17",
"port-version": 0
}
]
}