aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2021-07-07 05:01:56 +0800
committerGitHub <noreply@github.com>2021-07-06 14:01:56 -0700
commitce50feee7946cd61630846dcda7fade3c58634cf (patch)
treea24a10e4e541908c3d93571656ea6017ddd92d25
parent604c974fdb8f187c0c3f0ee56ed1dcb3db50e5c9 (diff)
downloadvcpkg-ce50feee7946cd61630846dcda7fade3c58634cf.tar.gz
vcpkg-ce50feee7946cd61630846dcda7fade3c58634cf.zip
[ftxui] Add new port (fix #16327) (#18360)
* [ftxui] Add new port (fix #16327) * [ftxui] x-add-version ftxui * [ftxui] Drop UWP support * [ftxui] Update to 2021-06-16 * [ftxui] Overwrite version * [ftxui] Try to fix linux and macOS build * [ftxui] Overwrite version * [ftxui] Fail fast on UWP * [ftxui] Clean version file * [ftxui] Overwrite version * [ftxui] Update to 2021-06-17 * [ftxui] Overwrite version * [ftxui] Remove debug/share * [ftxui] Overwrite version * [ftxui] Quote paths * [ftxui] Overwrite version
-rw-r--r--ports/ftxui/portfile.cmake28
-rw-r--r--ports/ftxui/vcpkg.json18
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/f-/ftxui.json9
4 files changed, 59 insertions, 0 deletions
diff --git a/ports/ftxui/portfile.cmake b/ports/ftxui/portfile.cmake
new file mode 100644
index 000000000..bdb21781f
--- /dev/null
+++ b/ports/ftxui/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_fail_port_install(ON_TARGET "uwp")
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+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)
diff --git a/ports/ftxui/vcpkg.json b/ports/ftxui/vcpkg.json
new file mode 100644
index 000000000..34557d19a
--- /dev/null
+++ b/ports/ftxui/vcpkg.json
@@ -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",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index f53b8c3b2..3363ec0c0 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -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
diff --git a/versions/f-/ftxui.json b/versions/f-/ftxui.json
new file mode 100644
index 000000000..329be4207
--- /dev/null
+++ b/versions/f-/ftxui.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "d7dd27584c015a37dd3266255530e889b16aebcf",
+ "version-date": "2021-06-17",
+ "port-version": 0
+ }
+ ]
+}