pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import libgraphqlparser-0.4.1 as wip/libgraphqlparser.
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sun Mar 13 17:08:54 2016 +0100
Changeset: 20c9d02dc1e8471e28f1864895c8884d219db460
Added Files:
libgraphqlparser/DESCR
libgraphqlparser/Makefile
libgraphqlparser/PLIST
libgraphqlparser/distinfo
libgraphqlparser/patches/patch-CMakeLists.txt
Log Message:
Import libgraphqlparser-0.4.1 as wip/libgraphqlparser.
libgraphqlparser is a parser for GraphQL, a query language created by Facebook
for describing data requirements on complex application data models,
implemented in C++11. It can be used on its own in C++ code (or in C code via
the pure C API defined in the c subdirectory), or you can use it as the basis
for an extension module for your favorite programming language instead of
writing your own parser from scratch.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=20c9d02dc1e8471e28f1864895c8884d219db460
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libgraphqlparser/DESCR | 6 ++++++
libgraphqlparser/Makefile | 16 ++++++++++++++
libgraphqlparser/PLIST | 30 +++++++++++++++++++++++++++
libgraphqlparser/distinfo | 7 +++++++
libgraphqlparser/patches/patch-CMakeLists.txt | 15 ++++++++++++++
5 files changed, 74 insertions(+)
diffs:
diff --git a/libgraphqlparser/DESCR b/libgraphqlparser/DESCR
new file mode 100644
index 0000000..eebe5ee
--- /dev/null
+++ b/libgraphqlparser/DESCR
@@ -0,0 +1,6 @@
+libgraphqlparser is a parser for GraphQL, a query language created by Facebook
+for describing data requirements on complex application data models,
+implemented in C++11. It can be used on its own in C++ code (or in C code via
+the pure C API defined in the c subdirectory), or you can use it as the basis
+for an extension module for your favorite programming language instead of
+writing your own parser from scratch.
diff --git a/libgraphqlparser/Makefile b/libgraphqlparser/Makefile
new file mode 100644
index 0000000..f15dcf2
--- /dev/null
+++ b/libgraphqlparser/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+DISTNAME= libgraphqlparser-0.4.1
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=graphql/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://facebook.github.io/graphql/
+COMMENT= GraphQL query parser in C++ with C and C++ APIs
+LICENSE= modified-bsd
+
+USE_LANGUAGES= c c++
+USE_CMAKE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/libgraphqlparser/PLIST b/libgraphqlparser/PLIST
new file mode 100644
index 0000000..37d7e44
--- /dev/null
+++ b/libgraphqlparser/PLIST
@@ -0,0 +1,30 @@
+@comment $NetBSD$
+include/graphqlparser/AstNode.h
+include/graphqlparser/GraphQLParser.h
+include/graphqlparser/JsonVisitor.h
+include/graphqlparser/c/GraphQLAst.h
+include/graphqlparser/c/GraphQLAstForEachConcreteType.h
+include/graphqlparser/c/GraphQLAstNode.h
+include/graphqlparser/c/GraphQLAstToJSON.h
+include/graphqlparser/c/GraphQLAstVisitor.h
+include/graphqlparser/c/GraphQLParser.h
+include/graphqlparser/lexer.h
+include/graphqlparser/${PKGNAME}/Ast.h
+include/graphqlparser/${PKGNAME}/AstNode.h
+include/graphqlparser/${PKGNAME}/AstVisitor.h
+include/graphqlparser/${PKGNAME}/GraphQLParser.h
+include/graphqlparser/${PKGNAME}/JsonVisitor.h
+include/graphqlparser/${PKGNAME}/c/GraphQLAst.h
+include/graphqlparser/${PKGNAME}/c/GraphQLAstForEachConcreteType.h
+include/graphqlparser/${PKGNAME}/c/GraphQLAstNode.h
+include/graphqlparser/${PKGNAME}/c/GraphQLAstToJSON.h
+include/graphqlparser/${PKGNAME}/c/GraphQLAstVisitor.h
+include/graphqlparser/${PKGNAME}/c/GraphQLParser.h
+include/graphqlparser/${PKGNAME}/lexer.h
+include/graphqlparser/${PKGNAME}/syntaxdefs.h
+include/graphqlparser/location.hh
+include/graphqlparser/parser.tab.hpp
+include/graphqlparser/position.hh
+include/graphqlparser/stack.hh
+include/graphqlparser/syntaxdefs.h
+lib/libgraphqlparser.so
diff --git a/libgraphqlparser/distinfo b/libgraphqlparser/distinfo
new file mode 100644
index 0000000..c4080b8
--- /dev/null
+++ b/libgraphqlparser/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (libgraphqlparser-0.4.1.tar.gz) = c6ae0699d656187e748ffaa8730d85990467fd41
+RMD160 (libgraphqlparser-0.4.1.tar.gz) = 1f880a5379be5e863d8f79097221b463e7af9e22
+SHA512 (libgraphqlparser-0.4.1.tar.gz) = 4004e104cde4ef7385fb2fec6c85ef5b46bb914d358e984a5a0f5739252f697acf2aef404de0d18fdbf507069894b14df380d0268b402dafd3b5f2e853ce9c04
+Size (libgraphqlparser-0.4.1.tar.gz) = 64255 bytes
+SHA1 (patch-CMakeLists.txt) = de2c208c08d2023c9e0cd637b17b28a46b9ad6c6
diff --git a/libgraphqlparser/patches/patch-CMakeLists.txt b/libgraphqlparser/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000..7078d14
--- /dev/null
+++ b/libgraphqlparser/patches/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix path to Python interpreter.
+
+--- CMakeLists.txt.orig 2016-02-22 18:15:09.000000000 +0000
++++ CMakeLists.txt
+@@ -57,7 +57,7 @@ TARGET_LINK_LIBRARIES(dump_json_ast grap
+ FUNCTION(GENERATE_AST_FILE FILE_TYPE FILE_RELATIVE_PATH)
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${FILE_RELATIVE_PATH}
+- COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/ast/ast.py ${FILE_TYPE} ${CMAKE_CURRENT_SOURCE_DIR}/ast/ast.ast > ${CMAKE_CURRENT_BINARY_DIR}/${FILE_RELATIVE_PATH}
++ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/ast/ast.py ${FILE_TYPE} ${CMAKE_CURRENT_SOURCE_DIR}/ast/ast.ast > ${CMAKE_CURRENT_BINARY_DIR}/${FILE_RELATIVE_PATH}
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ast/ast.ast ${CMAKE_CURRENT_SOURCE_DIR}/ast/ast.py)
+ ENDFUNCTION(GENERATE_AST_FILE)
+
Home |
Main Index |
Thread Index |
Old Index