From 765923bcf6319689bfcad1b204741eda44ebfe89 Mon Sep 17 00:00:00 2001 From: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Date: Fri, 20 Dec 2019 12:25:18 -0800 Subject: [PATCH] [libevent] Add thread as default feature (#9101) --- ports/libevent/CONTROL | 3 ++- ports/libevent/portfile.cmake | 10 +++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ports/libevent/CONTROL b/ports/libevent/CONTROL index 59ee136dd..8f1199680 100644 --- a/ports/libevent/CONTROL +++ b/ports/libevent/CONTROL @@ -1,8 +1,9 @@ Source: libevent -Version: 2.1.11-1 +Version: 2.1.11-2 Build-Depends: openssl Homepage: https://github.com/libevent/libevent Description: An event notification library +Default-Features: thread Feature: openssl Description: Support for openssl diff --git a/ports/libevent/portfile.cmake b/ports/libevent/portfile.cmake index e04e5f58d..711f5e93d 100644 --- a/ports/libevent/portfile.cmake +++ b/ports/libevent/portfile.cmake @@ -1,8 +1,4 @@ -include(vcpkg_common_functions) - -if(VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore") - message(FATAL_ERROR "${PORT} does not currently support UWP") -endif() +vcpkg_fail_port_install(MESSAGE "${PORT} does not currently support UWP" ON_TARGET "uwp") vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH @@ -57,5 +53,5 @@ endif() vcpkg_copy_pdbs() -file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libevent) -file(RENAME ${CURRENT_PACKAGES_DIR}/share/libevent/LICENSE ${CURRENT_PACKAGES_DIR}/share/libevent/copyright) +#Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file