aboutsummaryrefslogtreecommitdiff
path: root/ports/graphqlparser
diff options
context:
space:
mode:
Diffstat (limited to 'ports/graphqlparser')
-rw-r--r--ports/graphqlparser/CONTROL3
-rw-r--r--ports/graphqlparser/portfile.cmake1
-rw-r--r--ports/graphqlparser/remove-invalid-bison-directive.patch13
-rw-r--r--ports/graphqlparser/vcpkg.json6
4 files changed, 20 insertions, 3 deletions
diff --git a/ports/graphqlparser/CONTROL b/ports/graphqlparser/CONTROL
deleted file mode 100644
index 128c49498..000000000
--- a/ports/graphqlparser/CONTROL
+++ /dev/null
@@ -1,3 +0,0 @@
-Source: graphqlparser
-Version: 0.7.0-1
-Description: A GraphQL query parser in C++ with C and C++ APIs
diff --git a/ports/graphqlparser/portfile.cmake b/ports/graphqlparser/portfile.cmake
index 67b8a2231..92e369110 100644
--- a/ports/graphqlparser/portfile.cmake
+++ b/ports/graphqlparser/portfile.cmake
@@ -7,6 +7,7 @@ vcpkg_from_github(
PATCHES
win-cmake.patch
static-compile-fix.patch
+ remove-invalid-bison-directive.patch
)
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
diff --git a/ports/graphqlparser/remove-invalid-bison-directive.patch b/ports/graphqlparser/remove-invalid-bison-directive.patch
new file mode 100644
index 000000000..0e0b896dc
--- /dev/null
+++ b/ports/graphqlparser/remove-invalid-bison-directive.patch
@@ -0,0 +1,13 @@
+diff --git a/parser.ypp b/parser.ypp
+index 2afbcac..baa9cab 100644
+--- a/parser.ypp
++++ b/parser.ypp
+@@ -7,8 +7,6 @@
+ * of patent rights can be found in the PATENTS file in the same directory.
+ */
+
+-%require "3"
+-
+ %skeleton "lalr1.cc"
+
+ %defines
diff --git a/ports/graphqlparser/vcpkg.json b/ports/graphqlparser/vcpkg.json
new file mode 100644
index 000000000..d859a1f19
--- /dev/null
+++ b/ports/graphqlparser/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "graphqlparser",
+ "version-string": "0.7.0",
+ "port-version": 2,
+ "description": "A GraphQL query parser in C++ with C and C++ APIs"
+}