aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorchausner <15180557+chausner@users.noreply.github.com>2021-10-12 05:11:45 +0200
committerGitHub <noreply@github.com>2021-10-11 20:11:45 -0700
commit80e863f62c3dc70cdbd2f7745e0378342376e34f (patch)
tree3248879a235f22f46b4e2ffb70a2f2604aaad627 /ports
parentf904f7354dce4cb396a4d0792e36319d78ccccfb (diff)
downloadvcpkg-80e863f62c3dc70cdbd2f7745e0378342376e34f.tar.gz
vcpkg-80e863f62c3dc70cdbd2f7745e0378342376e34f.zip
[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>
Diffstat (limited to 'ports')
-rw-r--r--ports/replxx/add-stdexcept.patch17
-rw-r--r--ports/replxx/portfile.cmake26
-rw-r--r--ports/replxx/replxxConfig.cmake20
-rw-r--r--ports/replxx/usage4
-rw-r--r--ports/replxx/vcpkg.json15
5 files changed, 23 insertions, 59 deletions
diff --git a/ports/replxx/add-stdexcept.patch b/ports/replxx/add-stdexcept.patch
deleted file mode 100644
index 51fe01447..000000000
--- a/ports/replxx/add-stdexcept.patch
+++ /dev/null
@@ -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
-
- }
--
diff --git a/ports/replxx/portfile.cmake b/ports/replxx/portfile.cmake
index cbf2c646a..9dfbbe061 100644
--- a/ports/replxx/portfile.cmake
+++ b/ports/replxx/portfile.cmake
@@ -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)
diff --git a/ports/replxx/replxxConfig.cmake b/ports/replxx/replxxConfig.cmake
deleted file mode 100644
index 680ffc3ee..000000000
--- a/ports/replxx/replxxConfig.cmake
+++ /dev/null
@@ -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 ()
diff --git a/ports/replxx/usage b/ports/replxx/usage
deleted file mode 100644
index 5be648855..000000000
--- a/ports/replxx/usage
+++ /dev/null
@@ -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)
diff --git a/ports/replxx/vcpkg.json b/ports/replxx/vcpkg.json
index 7e84aebc6..b82ef13a1 100644
--- a/ports/replxx/vcpkg.json
+++ b/ports/replxx/vcpkg.json
@@ -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
+ }
+ ]
}