aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2020-05-26 21:03:19 -0700
committerGitHub <noreply@github.com>2020-05-26 21:03:19 -0700
commitcff57958e7025176ee3af5c027b417c4dcc44d80 (patch)
treea94b0992b191a09003ad033a4c3835e2a12b10be
parentb08757ea9a74f2857e7cecdf5a1fe74b9a1b7a06 (diff)
downloadvcpkg-cff57958e7025176ee3af5c027b417c4dcc44d80.tar.gz
vcpkg-cff57958e7025176ee3af5c027b417c4dcc44d80.zip
[replxx] Add missing header <stdexcept> needed to name std::runtime_error for replxx. (#11571)
* [replxx] Add missing header <stdexcept> needed to name std::runtime_error for replxx. Already applied upstream as https://github.com/BillyONeal/replxx/commit/723d9c84869511dfb5e63f5c3d3372ac38114713 * Bump version.
-rw-r--r--ports/replxx/CONTROL3
-rw-r--r--ports/replxx/add-stdexcept.patch17
-rw-r--r--ports/replxx/portfile.cmake2
3 files changed, 20 insertions, 2 deletions
diff --git a/ports/replxx/CONTROL b/ports/replxx/CONTROL
index 019e52ec2..efc7b3391 100644
--- a/ports/replxx/CONTROL
+++ b/ports/replxx/CONTROL
@@ -1,6 +1,5 @@
Source: replxx
-Version: 0.0.2-1
+Version: 0.0.2-2
Homepage: https://github.com/AmokHuginnsson/replxx
Description: A small, portable GNU readline replacement for Linux, Windows and MacOS which is capable of handling UTF-8 characters.
Supports: !uwp
-
diff --git a/ports/replxx/add-stdexcept.patch b/ports/replxx/add-stdexcept.patch
new file mode 100644
index 000000000..51fe01447
--- /dev/null
+++ b/ports/replxx/add-stdexcept.patch
@@ -0,0 +1,17 @@
+diff --git a/src/io.cxx b/src/io.cxx
+index a098867..6159e4b 100644
+--- a/src/io.cxx
++++ b/src/io.cxx
+@@ -2,6 +2,7 @@
+ #include <cerrno>
+ #include <cstdlib>
+ #include <cstring>
++#include <stdexcept>
+ #include <array>
+
+ #ifdef _WIN32
+@@ -671,4 +672,3 @@ int Terminal::read_verbatim( char32_t* buffer_, int size_ ) {
+ #endif
+
+ }
+-
diff --git a/ports/replxx/portfile.cmake b/ports/replxx/portfile.cmake
index 278207b28..cbf2c646a 100644
--- a/ports/replxx/portfile.cmake
+++ b/ports/replxx/portfile.cmake
@@ -6,6 +6,8 @@ vcpkg_from_github(
REF 45696c250ce39ab21dedeea962b94d7827007a8c
SHA512 7beec508fa3049fe5a736a487728506d646d26d7194ef7453fc07bceade1982430808fab0a10ca9b1c43a8b87bf3a973f5cfe4aa22ed06927647c9a7244167fd
HEAD_REF master
+ PATCHES
+ add-stdexcept.patch
)
vcpkg_configure_cmake(