aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2021-03-11 04:01:27 +0800
committerGitHub <noreply@github.com>2021-03-10 14:01:27 -0600
commitd3c432d955df8768f9c3b88f2fb96dd10644a305 (patch)
treec65552f6e688a72f594372732e84dab97e7ce729
parentc3c77073f8716121521a38a60be700824f5a9939 (diff)
downloadvcpkg-d3c432d955df8768f9c3b88f2fb96dd10644a305.tar.gz
vcpkg-d3c432d955df8768f9c3b88f2fb96dd10644a305.zip
[hiredis] Fix include path (#16512)
* [hiredis] Fix include path * Update versions * Update ports/hiredis/vcpkg.json * Update versions/h-/hiredis.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
-rw-r--r--ports/hiredis/CONTROL13
-rw-r--r--ports/hiredis/fix-include-path.patch13
-rw-r--r--ports/hiredis/portfile.cmake1
-rw-r--r--ports/hiredis/vcpkg.json23
-rw-r--r--versions/baseline.json2
-rw-r--r--versions/h-/hiredis.json5
6 files changed, 43 insertions, 14 deletions
diff --git a/ports/hiredis/CONTROL b/ports/hiredis/CONTROL
deleted file mode 100644
index a331b1735..000000000
--- a/ports/hiredis/CONTROL
+++ /dev/null
@@ -1,13 +0,0 @@
-Source: hiredis
-Version: 1.0.0
-Port-Version: 0
-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
-Build-Depends: libevent, pthread, libuv \ No newline at end of file
diff --git a/ports/hiredis/fix-include-path.patch b/ports/hiredis/fix-include-path.patch
new file mode 100644
index 000000000..8bfeae09d
--- /dev/null
+++ b/ports/hiredis/fix-include-path.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7eafeb8..623c586 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -49,7 +49,7 @@ IF(WIN32 OR MINGW)
+ TARGET_LINK_LIBRARIES(hiredis PRIVATE ws2_32)
+ ENDIF()
+
+-TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:.> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
++TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
+
+ CONFIGURE_FILE(hiredis.pc.in hiredis.pc @ONLY)
+
diff --git a/ports/hiredis/portfile.cmake b/ports/hiredis/portfile.cmake
index 0c72c8330..d0b273c77 100644
--- a/ports/hiredis/portfile.cmake
+++ b/ports/hiredis/portfile.cmake
@@ -12,6 +12,7 @@ vcpkg_from_github(
fix-feature-example.patch
support-static-in-win.patch
fix-timeval.patch
+ fix-include-path.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
diff --git a/ports/hiredis/vcpkg.json b/ports/hiredis/vcpkg.json
new file mode 100644
index 000000000..862214eb8
--- /dev/null
+++ b/ports/hiredis/vcpkg.json
@@ -0,0 +1,23 @@
+{
+ "name": "hiredis",
+ "version": "1.0.0",
+ "port-version": 1,
+ "description": "Hiredis is a minimalistic C client library for the Redis database.",
+ "homepage": "https://github.com/redis/hiredis",
+ "features": {
+ "example": {
+ "description": "Build example",
+ "dependencies": [
+ "libevent",
+ "libuv",
+ "pthread"
+ ]
+ },
+ "ssl": {
+ "description": "Build hiredis_ssl for SSL support",
+ "dependencies": [
+ "openssl"
+ ]
+ }
+ }
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index c57ce41b8..f6bf334d0 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -2418,7 +2418,7 @@
},
"hiredis": {
"baseline": "1.0.0",
- "port-version": 0
+ "port-version": 1
},
"hpx": {
"baseline": "1.6.0",
diff --git a/versions/h-/hiredis.json b/versions/h-/hiredis.json
index 5522d98ff..50d4361ee 100644
--- a/versions/h-/hiredis.json
+++ b/versions/h-/hiredis.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "3ce136eecabedaebd15eb4a454c2ecf89f90e9c3",
+ "version": "1.0.0",
+ "port-version": 1
+ },
+ {
"git-tree": "e9c2ffbff25b0e22f0b09ec594b3f4288f685762",
"version-string": "1.0.0",
"port-version": 0