aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2020-11-21 03:54:45 +0800
committerGitHub <noreply@github.com>2020-11-20 11:54:45 -0800
commit3c9afa7a207bfbb3634a416434cc92435fae6435 (patch)
treee3b0cfffa15af001b0c0d1e93635b91ea0b5efc7
parent4c17d2a2c2a79ea78e6a8eecc2e9c2583fd1e1d4 (diff)
downloadvcpkg-3c9afa7a207bfbb3634a416434cc92435fae6435.tar.gz
vcpkg-3c9afa7a207bfbb3634a416434cc92435fae6435.zip
[zeromq] Add feature draft (#14642)
* [zeromq] Add feature draft * Modify protfile copyrigt
-rw-r--r--ports/zeromq/CONTROL5
-rw-r--r--ports/zeromq/portfile.cmake3
2 files changed, 6 insertions, 2 deletions
diff --git a/ports/zeromq/CONTROL b/ports/zeromq/CONTROL
index a3df52420..e2f7b0b99 100644
--- a/ports/zeromq/CONTROL
+++ b/ports/zeromq/CONTROL
@@ -1,6 +1,6 @@
Source: zeromq
Version: 2019-09-20
-Port-Version: 1
+Port-Version: 2
Homepage: https://github.com/zeromq/libzmq
Description: The ZeroMQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialised messaging middleware products
@@ -10,3 +10,6 @@ Build-Depends: libsodium
Feature: websockets-sha1
Description: Enable WebSocket transport through builtin sha1 (libzmq#3676)
+
+Feature: draft
+Description: Build and install draft APIs
diff --git a/ports/zeromq/portfile.cmake b/ports/zeromq/portfile.cmake
index de448216e..7ec044646 100644
--- a/ports/zeromq/portfile.cmake
+++ b/ports/zeromq/portfile.cmake
@@ -13,6 +13,7 @@ vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
sodium WITH_LIBSODIUM
+ draft ENABLE_DRAFTS
INVERTED_FEATURES
websockets-sha1 DISABLE_WS
)
@@ -67,6 +68,6 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
endif()
# Handle copyright
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/zmq/COPYING.LESSER.txt ${CURRENT_PACKAGES_DIR}/share/zeromq/copyright)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/zmq/COPYING.LESSER.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share ${CURRENT_PACKAGES_DIR}/share/zmq)