aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Garcia <48836389+david-antiteum@users.noreply.github.com>2019-04-24 00:02:52 +0200
committerGriffin Downs <35574547+grdowns@users.noreply.github.com>2019-04-23 15:02:52 -0700
commitf439ffed30f8bd0ff12a0c32d283e43a084f3901 (patch)
treeb8916232bea26636e1399c6bf799e40947312dfc
parentc8a306b433396eac9fdab15571709965383c6294 (diff)
downloadvcpkg-f439ffed30f8bd0ff12a0c32d283e43a084f3901.tar.gz
vcpkg-f439ffed30f8bd0ff12a0c32d283e43a084f3901.zip
uriparser updated to 0.9.2 (#6178)
-rw-r--r--ports/uriparser/CMakeLists.txt25
-rw-r--r--ports/uriparser/CONTROL4
-rw-r--r--ports/uriparser/portfile.cmake17
3 files changed, 13 insertions, 33 deletions
diff --git a/ports/uriparser/CMakeLists.txt b/ports/uriparser/CMakeLists.txt
deleted file mode 100644
index 47a6fbac1..000000000
--- a/ports/uriparser/CMakeLists.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-cmake_minimum_required(VERSION 3.8)
-project(uriparser C)
-
-if(MSVC)
- add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
-endif()
-
-include_directories(include)
-
-file(GLOB SRC src/*.c)
-
-set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
-
-add_library(uriparser ${SRC})
-
-install(
- TARGETS uriparser
- RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib
-)
-
-if(NOT DISABLE_INSTALL_HEADERS)
- install(DIRECTORY include/ DESTINATION include)
-endif()
diff --git a/ports/uriparser/CONTROL b/ports/uriparser/CONTROL
index d14b93ded..beb544485 100644
--- a/ports/uriparser/CONTROL
+++ b/ports/uriparser/CONTROL
@@ -1,3 +1,3 @@
Source: uriparser
-Version: 0.9.1
-Description: uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C. uriparser is cross-platform, fast, supports Unicode
+Version: 0.9.2
+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 342269c78..b18492ff9 100644
--- a/ports/uriparser/portfile.cmake
+++ b/ports/uriparser/portfile.cmake
@@ -3,20 +3,25 @@ include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO uriparser/uriparser
- REF uriparser-0.9.1
- SHA512 5a553bc503b345bd81ad8bcfa25ab1e0f0ea0a0446a0c4beba9129d128d24de418efd10f04f8814b4f8864f6e219b5b9b938934edea76e78c0235428e5062636
- HEAD_REF master
+ REF uriparser-0.9.2
+ SHA512 58c1c473b33a2a5ffa2b3eb02f527de0efea228d84e2189b764515c3b884b73f36bb8baf143b719cd43006ef23f116cd7b2368bf828fe3e5b839c674daf5ea3f
)
-file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
-
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
- OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
+ OPTIONS
+ -DURIPARSER_BUILD_DOCS=OFF
+ -DURIPARSER_BUILD_TESTS=OFF
+ -DURIPARSER_BUILD_TOOLS=OFF
)
vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/uriparser-0.9.2")
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/uriparser RENAME copyright)
+
+# Remove duplicate info
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)