Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2019 20:10:28 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r490207 - in head/databases: . py-pglast
Message-ID:  <201901132010.x0DKASRM004684@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Jan 13 20:10:28 2019
New Revision: 490207
URL: https://svnweb.freebsd.org/changeset/ports/490207

Log:
  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>

Added:
  head/databases/py-pglast/
  head/databases/py-pglast/Makefile   (contents, props changed)
  head/databases/py-pglast/distinfo   (contents, props changed)
  head/databases/py-pglast/pkg-descr   (contents, props changed)
Modified:
  head/databases/Makefile

Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile	Sun Jan 13 20:10:23 2019	(r490206)
+++ head/databases/Makefile	Sun Jan 13 20:10:28 2019	(r490207)
@@ -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

Added: head/databases/py-pglast/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-pglast/Makefile	Sun Jan 13 20:10:28 2019	(r490207)
@@ -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>

Added: head/databases/py-pglast/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-pglast/distinfo	Sun Jan 13 20:10:28 2019	(r490207)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1547379267
+SHA256 (pglast-1.1.tar.gz) = 3149c8b80c84f54fcdc56685e9e12625a7774e02352469d90ad9a30edcca759c
+SIZE (pglast-1.1.tar.gz) = 1483748

Added: head/databases/py-pglast/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-pglast/pkg-descr	Sun Jan 13 20:10:28 2019	(r490207)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901132010.x0DKASRM004684>