aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/readline-unix/portfile.cmake
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-unix/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/readline-unix/portfile.cmake')
-rw-r--r--vcpkg/ports/readline-unix/portfile.cmake29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/readline-unix/portfile.cmake b/vcpkg/ports/readline-unix/portfile.cmake
new file mode 100644
index 0000000..d3de025
--- /dev/null
+++ b/vcpkg/ports/readline-unix/portfile.cmake
@@ -0,0 +1,29 @@
+set(filename readline-${VERSION}.tar.gz)
+vcpkg_download_distfile(
+ ARCHIVE
+ URLS
+ "https://ftpmirror.gnu.org/gnu/readline/${filename}"
+ "https://ftp.gnu.org/gnu/readline/${filename}"
+ FILENAME "${filename}"
+ SHA512 513002753dcf5db9213dbbb61d51217245f6a40d33b1dd45238e8062dfa8eef0c890b87a5548e11db959e842724fb572c4d3d7fb433773762a63c30efe808344
+)
+
+vcpkg_extract_source_archive(SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+)
+
+vcpkg_make_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ --with-curses=yes
+ --disable-install-examples
+)
+vcpkg_make_install()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/share"
+ "${CURRENT_PACKAGES_DIR}/tools"
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")