aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-11-21 17:16:30 -0800
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2019-11-21 17:16:30 -0800
commitfb26fc519240e34960e97eebfc95ef180215064f (patch)
treede3e626c4f48eee4e30dfa1d59c481933ae4423c
parent8d26ea0991844f27b26e710c75bb03a35723783c (diff)
downloadvcpkg-fb26fc519240e34960e97eebfc95ef180215064f.tar.gz
vcpkg-fb26fc519240e34960e97eebfc95ef180215064f.zip
[redis-plus-plus] Add new port (#8846)
-rw-r--r--ports/redis-plus-plus/CONTROL5
-rw-r--r--ports/redis-plus-plus/disable-build-test.patch13
-rw-r--r--ports/redis-plus-plus/portfile.cmake24
3 files changed, 42 insertions, 0 deletions
diff --git a/ports/redis-plus-plus/CONTROL b/ports/redis-plus-plus/CONTROL
new file mode 100644
index 000000000..7e5d3e196
--- /dev/null
+++ b/ports/redis-plus-plus/CONTROL
@@ -0,0 +1,5 @@
+Source: redis-plus-plus
+Version: 1.1.1
+Homepage: https://github.com/sewenew/redis-plus-plus
+Description: This is a C++ client for Redis. It's based on hiredis, and written in C++ 11.
+Build-Depends: hiredis \ No newline at end of file
diff --git a/ports/redis-plus-plus/disable-build-test.patch b/ports/redis-plus-plus/disable-build-test.patch
new file mode 100644
index 000000000..a180250e1
--- /dev/null
+++ b/ports/redis-plus-plus/disable-build-test.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fb160b5..6235d89 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -34,7 +34,7 @@ set_target_properties(${SHARED_LIB} PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
+ set_target_properties(${STATIC_LIB} PROPERTIES CLEAN_DIRECT_OUTPUT 1)
+ set_target_properties(${SHARED_LIB} PROPERTIES CLEAN_DIRECT_OUTPUT 1)
+
+-add_subdirectory(test)
++#add_subdirectory(test)
+
+ # Install static lib.
+ install(TARGETS ${STATIC_LIB}
diff --git a/ports/redis-plus-plus/portfile.cmake b/ports/redis-plus-plus/portfile.cmake
new file mode 100644
index 000000000..8eba51a38
--- /dev/null
+++ b/ports/redis-plus-plus/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_fail_port_install(ON_TARGET "Windows")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO sewenew/redis-plus-plus
+ REF d35267580568517f09bdf70cb582e5284c25401a
+ SHA512 f065b97d438772300e30485a7550bc0fff00005f1056cf9c23216ea388fa088303869ccf2eaa70ee8b06cc0fc2406c9c6faddd5ad08759ee2d0665ac91761914
+ HEAD_REF master
+ PATCHES disable-build-test.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJIA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright ) \ No newline at end of file