aboutsummaryrefslogtreecommitdiff
path: root/databases/py-pglast
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-01-13 20:10:28 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-01-13 20:10:28 +0000
commit65db53357802bac64fc74f62a380d40a8202d65b (patch)
tree476126c191f2f475a4566773e1ffa05d58a09713 /databases/py-pglast
parent9b5361d2a73cc9d0b750d9d0094b8d85bb755a5d (diff)
downloadports-65db53357802bac64fc74f62a380d40a8202d65b.tar.gz
ports-65db53357802bac64fc74f62a380d40a8202d65b.zip
Add py-pglast 1.1
PostgreSQL Languages AST and statements prettifier Exposes the parse tree of a PostgreSQL statement (extracted by the almost standard PG parser repackaged as a standalone static library by libpg_query) as set of interconnected nodes, usually called an abstract syntax tree. WWW: https://github.com/lelit/pglast PR: 234855 Submitted by: Adam Wolk <a.wolk@fudosecurity.com>
Notes
Notes: svn path=/head/; revision=490207
Diffstat (limited to 'databases/py-pglast')
-rw-r--r--databases/py-pglast/Makefile25
-rw-r--r--databases/py-pglast/distinfo3
-rw-r--r--databases/py-pglast/pkg-descr7
3 files changed, 35 insertions, 0 deletions
diff --git a/databases/py-pglast/Makefile b/databases/py-pglast/Makefile
new file mode 100644
index 000000000000..f0f7626a3619
--- /dev/null
+++ b/databases/py-pglast/Makefile
@@ -0,0 +1,25 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= pglast
+PORTVERSION= 1.1
+CATEGORIES= databases python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= a.wolk@fudosecurity.com
+COMMENT= PostgreSQL Languages AST and statements prettifier
+
+LICENSE= GPLv3+
+#LICENSE_FILE= ${WRKSRC}/
+
+USES= gmake python:3.4+
+USE_PYTHON= autoplist distutils
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|make|gmake|' ${WRKSRC}/setup.py
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pglast/parser.so
+
+.include <bsd.port.mk>
diff --git a/databases/py-pglast/distinfo b/databases/py-pglast/distinfo
new file mode 100644
index 000000000000..ef1429b27e6c
--- /dev/null
+++ b/databases/py-pglast/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1547379267
+SHA256 (pglast-1.1.tar.gz) = 3149c8b80c84f54fcdc56685e9e12625a7774e02352469d90ad9a30edcca759c
+SIZE (pglast-1.1.tar.gz) = 1483748
diff --git a/databases/py-pglast/pkg-descr b/databases/py-pglast/pkg-descr
new file mode 100644
index 000000000000..a75d68fa617b
--- /dev/null
+++ b/databases/py-pglast/pkg-descr
@@ -0,0 +1,7 @@
+PostgreSQL Languages AST and statements prettifier
+
+Exposes the parse tree of a PostgreSQL statement (extracted by the almost
+standard PG parser repackaged as a standalone static library by libpg_query)
+as set of interconnected nodes, usually called an abstract syntax tree.
+
+WWW: https://github.com/lelit/pglast