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>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-01-13 20:10:28 +00:00
parent 9b5361d2a7
commit 65db533578
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490207
4 changed files with 36 additions and 0 deletions

View file

@ -803,6 +803,7 @@
SUBDIR += py-pg_pqueue SUBDIR += py-pg_pqueue
SUBDIR += py-pgcli SUBDIR += py-pgcli
SUBDIR += py-pgdbconn SUBDIR += py-pgdbconn
SUBDIR += py-pglast
SUBDIR += py-pglite SUBDIR += py-pglite
SUBDIR += py-pgspecial SUBDIR += py-pgspecial
SUBDIR += py-pgxnclient SUBDIR += py-pgxnclient

View file

@ -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>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1547379267
SHA256 (pglast-1.1.tar.gz) = 3149c8b80c84f54fcdc56685e9e12625a7774e02352469d90ad9a30edcca759c
SIZE (pglast-1.1.tar.gz) = 1483748

View file

@ -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