[replxx] Update to 0.0.3 (#20606)

* Update replxx to 0.0.3

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
This commit is contained in:
chausner 2021-10-12 05:11:45 +02:00 committed by GitHub
parent f904f7354d
commit 80e863f62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 61 deletions

View File

@ -1,17 +0,0 @@
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
}
-

View File

@ -1,26 +1,22 @@
vcpkg_fail_port_install(ON_TARGET "UWP")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO AmokHuginnsson/replxx
REF 45696c250ce39ab21dedeea962b94d7827007a8c
SHA512 7beec508fa3049fe5a736a487728506d646d26d7194ef7453fc07bceade1982430808fab0a10ca9b1c43a8b87bf3a973f5cfe4aa22ed06927647c9a7244167fd
HEAD_REF master
PATCHES
add-stdexcept.patch
OUT_SOURCE_PATH SOURCE_PATH
REPO AmokHuginnsson/replxx
REF release-0.0.3
SHA512 039812B65D96C44907105D409E608132A115314BEA8616F79DA928BFEECEBFF64381F063D7B1C971B61C449FA24552E001767D61C57F65AF9EBD8F0B3AC62B18
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
)
vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/replxx")
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/replxxConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,20 +0,0 @@
function(set_library_target NAMESPACE LIB_NAME DEBUG_LIB_FILE_NAME RELEASE_LIB_FILE_NAME INCLUDE_DIR)
add_library(${NAMESPACE}::${LIB_NAME} STATIC IMPORTED)
set_target_properties(${NAMESPACE}::${LIB_NAME} PROPERTIES
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
IMPORTED_LOCATION_RELEASE "${RELEASE_LIB_FILE_NAME}"
IMPORTED_LOCATION_DEBUG "${DEBUG_LIB_FILE_NAME}"
INTERFACE_INCLUDE_DIRECTORIES "${INCLUDE_DIR}"
)
set(${NAMESPACE}_${LIB_NAME}_FOUND 1)
endfunction()
get_filename_component(ROOT "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(ROOT "${ROOT}" PATH)
get_filename_component(ROOT "${ROOT}" PATH)
if (CMAKE_HOST_WIN32)
set_library_target("REPLXX" "replxx" "${ROOT}/debug/lib/replxx-d.lib" "${ROOT}/lib/replxx.lib" "${ROOT}/include/")
else ()
set_library_target("REPLXX" "replxx" "${ROOT}/debug/lib/libreplxx-d.a" "${ROOT}/lib/libreplxx.a" "${ROOT}/include/")
endif ()

View File

@ -1,4 +0,0 @@
The package replxx is compatible with built-in CMake targets:
FIND_PACKAGE(replxx REQUIRED)
TARGET_LINK_LIBRARIES(main PRIVATE REPLXX::replxx)

View File

@ -1,8 +1,17 @@
{
"name": "replxx",
"version-string": "0.0.2",
"port-version": 3,
"version": "0.0.3",
"description": "A small, portable GNU readline replacement for Linux, Windows and MacOS which is capable of handling UTF-8 characters.",
"homepage": "https://github.com/AmokHuginnsson/replxx",
"supports": "!uwp"
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -5829,8 +5829,8 @@
"port-version": 1
},
"replxx": {
"baseline": "0.0.2",
"port-version": 3
"baseline": "0.0.3",
"port-version": 0
},
"reproc": {
"baseline": "14.2.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e6d52564217b918d799280703fdfde6e600272d4",
"version": "0.0.3",
"port-version": 0
},
{
"git-tree": "5e56bb5dd211e60671da16308a06e0738b7854c2",
"version-string": "0.0.2",