diff options
| author | Glyn Matthews <glyn.matthews@gmail.com> | 2020-04-04 01:33:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-03 10:33:56 -0700 |
| commit | 449adbed723d9e670569802ccd4e37fb80da244e (patch) | |
| tree | 22b5aaa9714386a00f72e2986c4a77bbb1d0ff2c | |
| parent | 9409abf42217179c16dd211c348c7fee7b6a1716 (diff) | |
| download | vcpkg-449adbed723d9e670569802ccd4e37fb80da244e.tar.gz vcpkg-449adbed723d9e670569802ccd4e37fb80da244e.zip | |
[skyr-url] Add new port (#10463)
* Added port for Skyr URL library
* Removed vcpkg_test_cmake call in skyr-url port
* Fixed type in version number, added step to copy PDBs
* Added build dependency on tl-expected
* Removed commented out code
* Disabled warnings as errors
* Bumped version number
* Updated version number for Skyr URL
| -rw-r--r-- | ports/skyr-url/CONTROL | 5 | ||||
| -rw-r--r-- | ports/skyr-url/portfile.cmake | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/skyr-url/CONTROL b/ports/skyr-url/CONTROL new file mode 100644 index 000000000..bf05d73ca --- /dev/null +++ b/ports/skyr-url/CONTROL @@ -0,0 +1,5 @@ +Source: skyr-url +Version: 1.4.3 +Build-Depends: tl-expected +Homepage: https://github.com/cpp-netlib/url +Description: A C++ library that implements the WhatWG URL specification diff --git a/ports/skyr-url/portfile.cmake b/ports/skyr-url/portfile.cmake new file mode 100644 index 000000000..c6df3658a --- /dev/null +++ b/ports/skyr-url/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cpp-netlib/url + REF v1.4.5 + SHA512 39501217e331a904daf928a5874f81808a9665a9e8debe39c15a3fb7607ab293a5a1b335062cc7ac8f4fe239d4233a2c5ed0e9b45dbec7edcc267eb3d25509d3 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DSkyr_BUILD_TESTS=OFF + -DSkyr_BUILD_DOCS=OFF + -DSkyr_BUILD_EXAMPLES=OFF + -DSkyr_WARNINGS_AS_ERRORS=OFF +) + +vcpkg_install_cmake() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/skyr-url RENAME copyright) |
