diff options
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/py-pglast/Makefile | 25 | ||||
-rw-r--r-- | databases/py-pglast/distinfo | 3 | ||||
-rw-r--r-- | databases/py-pglast/pkg-descr | 7 |
4 files changed, 36 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index cd607e9363b7..47d9bdb6697f 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -803,6 +803,7 @@ SUBDIR += py-pg_pqueue SUBDIR += py-pgcli SUBDIR += py-pgdbconn + SUBDIR += py-pglast SUBDIR += py-pglite SUBDIR += py-pgspecial SUBDIR += py-pgxnclient 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 |