aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2019-05-22 22:02:57 -0700
committerGitHub <noreply@github.com>2019-05-22 22:02:57 -0700
commitc1dfb6e68117880655247c5d4694f78ef8aabea0 (patch)
treecbab623cc7606f1b72d319b1e09c456fb098fe36
parent1f866cf8e27775da5b032ba92f414ff16d6971f2 (diff)
parent14953c279f7351a7b64e254a40100b39434c81d5 (diff)
downloadvcpkg-c1dfb6e68117880655247c5d4694f78ef8aabea0.tar.gz
vcpkg-c1dfb6e68117880655247c5d4694f78ef8aabea0.zip
Merge pull request #6531 from JackBoosY/dev/jack/6495
[cccapstone]Fix include file <capstone.h> path.
-rw-r--r--ports/cccapstone/CONTROL2
-rw-r--r--ports/cccapstone/fix-include-path.patch24
-rw-r--r--ports/cccapstone/portfile.cmake1
3 files changed, 26 insertions, 1 deletions
diff --git a/ports/cccapstone/CONTROL b/ports/cccapstone/CONTROL
index d81c1acda..05403f434 100644
--- a/ports/cccapstone/CONTROL
+++ b/ports/cccapstone/CONTROL
@@ -1,4 +1,4 @@
Source: cccapstone
-Version: 9b4128ee1153e78288a1b5433e2c06a0d47a4c4e
+Version: 9b4128ee1153e78288a1b5433e2c06a0d47a4c4e-1
Description: c++ bindings for capstone disasembly framework
Build-Depends: capstone
diff --git a/ports/cccapstone/fix-include-path.patch b/ports/cccapstone/fix-include-path.patch
new file mode 100644
index 000000000..266308149
--- /dev/null
+++ b/ports/cccapstone/fix-include-path.patch
@@ -0,0 +1,24 @@
+diff --git a/cppbindings/CsCapstoneHelper.hh b/cppbindings/CsCapstoneHelper.hh
+index daf7a73..8ed5194 100644
+--- a/cppbindings/CsCapstoneHelper.hh
++++ b/cppbindings/CsCapstoneHelper.hh
+@@ -1,6 +1,6 @@
+ #pragma once
+
+-#include <capstone.h>
++#include <capstone/capstone.h>
+ #include <memory>
+
+ struct CS_HANDLE :
+diff --git a/cppbindings/CsIns.hpp b/cppbindings/CsIns.hpp
+index 6e8ba71..c723be9 100644
+--- a/cppbindings/CsIns.hpp
++++ b/cppbindings/CsIns.hpp
+@@ -1,6 +1,6 @@
+ #pragma once
+
+-#include <capstone.h>
++#include <capstone/capstone.h>
+ #include "CsCapstoneHelper.hh"
+
+ //x86_insn_group, x86_reg, x86_op_type, x86_insn
diff --git a/ports/cccapstone/portfile.cmake b/ports/cccapstone/portfile.cmake
index 69b8bcef7..d653783c3 100644
--- a/ports/cccapstone/portfile.cmake
+++ b/ports/cccapstone/portfile.cmake
@@ -5,6 +5,7 @@ vcpkg_from_github(
REPO zer0mem/cccapstone
SHA512 d0023586281f921314dbba501fa2c06d822b1adba0a0c32f30b78628ee935e5822caebe3881a5d1cc4cc696b82a7e348044d887a7f652303359d2853d2ee45fb
HEAD_REF master
+ PATCHES fix-include-path.patch
)
file(INSTALL ${SOURCE_PATH}/cppbindings/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/cccapstone/cppbindings)