From e3488c9cf8d3aa560fb54f2835b83ee21a693d11 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Fri, 22 Nov 2019 20:54:36 +0100 Subject: =?UTF-8?q?[curlpp]=20restore=20installing=20vcpkg-cmake-wrapper?= =?UTF-8?q?=20script=C3=B9=20(#9065)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ports/curlpp/CONTROL | 2 +- ports/curlpp/portfile.cmake | 17 +++++------------ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/ports/curlpp/CONTROL b/ports/curlpp/CONTROL index 538d18ed5..3978c383c 100644 --- a/ports/curlpp/CONTROL +++ b/ports/curlpp/CONTROL @@ -1,4 +1,4 @@ Source: curlpp -Version: 2018-06-15-1 +Version: 2018-06-15-2 Description: C++ wrapper around libcURL Build-Depends: curl diff --git a/ports/curlpp/portfile.cmake b/ports/curlpp/portfile.cmake index e08a2868e..fdc6d7f45 100644 --- a/ports/curlpp/portfile.cmake +++ b/ports/curlpp/portfile.cmake @@ -1,5 +1,3 @@ -include(vcpkg_common_functions) - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO jpbarrette/curlpp @@ -17,10 +15,7 @@ vcpkg_configure_cmake( vcpkg_install_cmake() -vcpkg_fixup_cmake_targets( - CONFIG_PATH lib/cmake/${PORT} - TARGET_PATH share/unofficial-${PORT} -) +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT} TARGET_PATH share/unofficial-${PORT}) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) @@ -31,11 +26,9 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static) ) endif() -# Handle copyright -configure_file(${SOURCE_PATH}/doc/LICENSE - ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) - vcpkg_copy_pdbs() +vcpkg_test_cmake(PACKAGE_NAME unofficial-${PORT}) + +file(INSTALL ${SOURCE_PATH}/doc/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}) -# CMake integration test -#vcpkg_test_cmake(PACKAGE_NAME ${PORT}) -- cgit v1.2.3