diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-11-01 17:10:50 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-11-01 17:10:50 -0700 |
| commit | 08e74979df124d9360343751cefcae615c2ec5ed (patch) | |
| tree | cb7736c2f760ef85e18b9ca4d818c1df4158f5c9 | |
| parent | b6f6619408c14980baa0495b45dd287cc26d460f (diff) | |
| download | vcpkg-08e74979df124d9360343751cefcae615c2ec5ed.tar.gz vcpkg-08e74979df124d9360343751cefcae615c2ec5ed.zip | |
[hiredis] Add new port (#8843)
| -rw-r--r-- | ports/hiredis/CONTROL | 11 | ||||
| -rw-r--r-- | ports/hiredis/portfile.cmake | 29 |
2 files changed, 40 insertions, 0 deletions
diff --git a/ports/hiredis/CONTROL b/ports/hiredis/CONTROL new file mode 100644 index 000000000..053a9015a --- /dev/null +++ b/ports/hiredis/CONTROL @@ -0,0 +1,11 @@ +Source: hiredis +Version: 2019-11-1 +Homepage: https://github.com/redis/hiredis +Description: Hiredis is a minimalistic C client library for the Redis database. + +Feature: ssl +Description: Build hiredis_ssl for SSL support +Build-Depends: openssl + +Feature: example +Description: Build example
\ No newline at end of file diff --git a/ports/hiredis/portfile.cmake b/ports/hiredis/portfile.cmake new file mode 100644 index 000000000..09b3100a9 --- /dev/null +++ b/ports/hiredis/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_fail_port_install(ON_TARGET "Windows") + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO redis/hiredis + REF e777b0295eeeda89ee2ecef6ec5cb54889033d94 + SHA512 9486ce3e40580ca6a1da8a31c3e139eb8b5e17ac1b94bd0987f2435aeb2465ad271784d5e8e83dc6cbaf362f95c9e175efa5fbe80a63c56070ceb212d3d68470 + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + ssl ENABLE_SSL + example ENABLE_EXAMPLES +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJIA + OPTIONS ${FEATURE_OPTIONS} +) + +vcpkg_install_cmake() + +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
\ No newline at end of file |
