aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/readline-unix
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/readline-unix')
-rw-r--r--vcpkg/ports/readline-unix/portfile.cmake29
-rw-r--r--vcpkg/ports/readline-unix/vcpkg.json15
2 files changed, 44 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")
diff --git a/vcpkg/ports/readline-unix/vcpkg.json b/vcpkg/ports/readline-unix/vcpkg.json
new file mode 100644
index 0000000..1d31cec
--- /dev/null
+++ b/vcpkg/ports/readline-unix/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "readline-unix",
+ "version": "8.3",
+ "description": "The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in.",
+ "homepage": "https://tiswww.case.edu/php/chet/readline/rltop.html",
+ "license": "GPL-3.0-or-later",
+ "supports": "!windows",
+ "dependencies": [
+ "ncurses",
+ {
+ "name": "vcpkg-make",
+ "host": true
+ }
+ ]
+}