aboutsummaryrefslogtreecommitdiff
path: root/ports/uriparser
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2020-05-02 06:28:55 +0800
committerGitHub <noreply@github.com>2020-05-01 15:28:55 -0700
commit0ab1a9e1c64a3968631b59647e771beda7d1f256 (patch)
tree5b4ff6d1fe12b2a6fcd0e560438e23289fe9ce13 /ports/uriparser
parentbc7d178e62c68adffc84ef8459eecde4a5ed5315 (diff)
downloadvcpkg-0ab1a9e1c64a3968631b59647e771beda7d1f256.tar.gz
vcpkg-0ab1a9e1c64a3968631b59647e771beda7d1f256.zip
[vcpkg] Add new function vcpkg_copy_tools (#8749)
* [vcpkg] Add new function vcpkg_copy_tools * [cpuinfo][czmq][nanomsg][uriparser] Use vcpkg_copy_tools * [czmq] Clean even tools are not copied [libsvm][zyre] Use vcpkg_copy_tools * [vcpkg-copy-tools] Clean debug/bin This should fix czmq build error * [czmq] czmq does not have BUILD_TOOLS option * [vcpkg] Split clean logic into another function * [cpuinfo][czmq][nanomsg][uriparser] Fix calling of vcpkg_copy_tools * [zyre] Fix regression error * [vcpkg] Update try_remove_empty_directory * [libsvm] Fix vcpkg_copy_tools call
Diffstat (limited to 'ports/uriparser')
-rw-r--r--ports/uriparser/CONTROL2
-rw-r--r--ports/uriparser/portfile.cmake19
2 files changed, 5 insertions, 16 deletions
diff --git a/ports/uriparser/CONTROL b/ports/uriparser/CONTROL
index af57f871a..c86313339 100644
--- a/ports/uriparser/CONTROL
+++ b/ports/uriparser/CONTROL
@@ -1,5 +1,5 @@
Source: uriparser
-Version: 0.9.3-4
+Version: 0.9.3-5
Homepage: https://github.com/uriparser/uriparser
Description: uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C89 ("ANSI C"). uriparser is cross-platform, fast, supports Unicode, and is licensed under the New BSD license.
diff --git a/ports/uriparser/portfile.cmake b/ports/uriparser/portfile.cmake
index aafd0ae6a..5082d7e9b 100644
--- a/ports/uriparser/portfile.cmake
+++ b/ports/uriparser/portfile.cmake
@@ -31,21 +31,10 @@ vcpkg_install_cmake()
vcpkg_copy_pdbs()
if(URIPARSER_BUILD_TOOLS)
- if(CMAKE_HOST_WIN32)
- set(EXECUTABLE_SUFFIX ".exe")
- else()
- set(EXECUTABLE_SUFFIX "")
- endif()
-
- file(COPY ${CURRENT_PACKAGES_DIR}/bin/uriparse${EXECUTABLE_SUFFIX}
- DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT})
- vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
-
- if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
- file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
- else()
- file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/uriparse${EXECUTABLE_SUFFIX})
- endif()
+ vcpkg_copy_tools(
+ TOOL_NAMES uriparse
+ AUTO_CLEAN
+ )
endif()
set(_package_version_re "#define[ ]+PACKAGE_VERSION[ ]+\"([0-9]+.[0-9]+.[0-9]+)\"")