aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/readline-win32
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/readline-win32
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/readline-win32')
-rw-r--r--vcpkg/ports/readline-win32/portfile.cmake28
-rw-r--r--vcpkg/ports/readline-win32/vcpkg.json19
2 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/readline-win32/portfile.cmake b/vcpkg/ports/readline-win32/portfile.cmake
new file mode 100644
index 0000000..b6ce0b7
--- /dev/null
+++ b/vcpkg/ports/readline-win32/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO xiaozhuai/readline-win32
+ REF 0fa4001557c27157a51a9ca7f32a8c50bc97927a
+ SHA512 5e6bb2fb077445d4e1fad49f2260538b0cf7e49857cda81640b8afd034324ad9b927c9ea00c9288d08c887478523db891bfc799e49ae009d32479141766857ec
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-readline-win32)
+vcpkg_fixup_pkgconfig()
+
+if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/readline/rlstdc.h"
+ "defined(USE_READLINE_STATIC)" "1"
+ )
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_copy_pdbs()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/readline-win32/vcpkg.json b/vcpkg/ports/readline-win32/vcpkg.json
new file mode 100644
index 0000000..d44080f
--- /dev/null
+++ b/vcpkg/ports/readline-win32/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "readline-win32",
+ "version": "5.0",
+ "port-version": 9,
+ "description": "Implementation of readline for Windows Desktop",
+ "homepage": "https://github.com/xiaozhuai/readline-win32",
+ "license": "GPL-2.0",
+ "supports": "windows & !uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}