aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias C. M. Troffaes <matthias.troffaes@gmail.com>2020-11-05 20:42:29 +0000
committerGitHub <noreply@github.com>2020-11-05 12:42:29 -0800
commit34283f5d8a78a814e668c44e10f02bef1c7ab674 (patch)
tree188811081948a27eb116e11efb87f5e15e04678b
parent6a020192af829a58d8e63627e69140bac4b512ba (diff)
downloadvcpkg-34283f5d8a78a814e668c44e10f02bef1c7ab674.tar.gz
vcpkg-34283f5d8a78a814e668c44e10f02bef1c7ab674.zip
[xeus] remove openssl static build patch as it is no longer needed (#14387)
-rw-r--r--ports/xeus/CONTROL1
-rw-r--r--ports/xeus/Fix-static-build.patch16
-rw-r--r--ports/xeus/portfile.cmake19
3 files changed, 7 insertions, 29 deletions
diff --git a/ports/xeus/CONTROL b/ports/xeus/CONTROL
index 20ad500f3..67c9c95db 100644
--- a/ports/xeus/CONTROL
+++ b/ports/xeus/CONTROL
@@ -1,5 +1,6 @@
Source: xeus
Version: 0.24.1
+Port-Version: 1
Homepage: https://github.com/jupyter-xeus/xeus
Description: C++ implementation of the Jupyter kernel protocol
Build-Depends: cppzmq, libuuid (linux), nlohmann-json, openssl, xtl, zeromq
diff --git a/ports/xeus/Fix-static-build.patch b/ports/xeus/Fix-static-build.patch
deleted file mode 100644
index 4caf0138f..000000000
--- a/ports/xeus/Fix-static-build.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index d02b5d6..6484131 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -244,7 +244,10 @@ macro(xeus_create_target target_name linkage output_name)
- PUBLIC xtl
- )
-
-- target_link_libraries(${target_name} PUBLIC OpenSSL::Crypto)
-+ if (MSVC)
-+ target_link_libraries(OpenSSL::Crypto INTERFACE crypt32)
-+ endif ()
-+ target_link_libraries(${target_name} PUBLIC OpenSSL::Crypto)
-
- if (NOT MSVC)
- if (APPLE)
diff --git a/ports/xeus/portfile.cmake b/ports/xeus/portfile.cmake
index e68b872d5..4e744a2a4 100644
--- a/ports/xeus/portfile.cmake
+++ b/ports/xeus/portfile.cmake
@@ -1,12 +1,11 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO QuantStack/xeus
- REF 424b7cd177886906a59eee535b7de59088461910 # 0.24.1
+ REF 424b7cd177886906a59eee535b7de59088461910 # 0.24.1
SHA512 877ca45bf649b567a9921d3e8f0adb0299dbe956978bd6e217d0c06617cf3466d08d90d607fd33e129089472e1a96ecec78b1fc21346bc13ba268168a5a6b068
HEAD_REF master
- PATCHES
+ PATCHES
Fix-Compile-nlohmann-json.patch
- Fix-static-build.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
@@ -28,15 +27,9 @@ vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
-file(COPY
- ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake
- DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
-)
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
-file(REMOVE_RECURSE
- ${CURRENT_PACKAGES_DIR}/debug/include
- ${CURRENT_PACKAGES_DIR}/debug/share
-)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/xeus/xeus.hpp
@@ -47,7 +40,7 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
endif()
# Handle copyright
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
# Install usage
-file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")