From 637b1717bcdc0c61d759b204585e5bc2fa39f548 Mon Sep 17 00:00:00 2001 From: Yasuhiro Kimura Date: Tue, 18 May 2021 02:37:30 +0900 Subject: [PATCH] New port: databases/pg.el PostgreSQL Elisp interface This is an Emacs Lisp interface for PostgreSQL This module lets you access the PostgreSQL object-relational DBMS from Emacs, using its socket-level frontend/backend protocol. The module is capable of automatic type coercions from a range of SQL types to the equivalent Emacs Lisp type. This is a low level API, and won't be useful to end users. --- databases/Makefile | 1 + databases/pg.el/Makefile | 31 +++++++++++++++++++++++++++++++ databases/pg.el/distinfo | 3 +++ databases/pg.el/pkg-descr | 9 +++++++++ 4 files changed, 44 insertions(+) create mode 100644 databases/pg.el/Makefile create mode 100644 databases/pg.el/distinfo create mode 100644 databases/pg.el/pkg-descr diff --git a/databases/Makefile b/databases/Makefile index 8aa53036b3c6..630eb0789b43 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -558,6 +558,7 @@ SUBDIR += percona57-client SUBDIR += percona57-pam-for-mysql SUBDIR += percona57-server + SUBDIR += pg.el SUBDIR += pgFormatter SUBDIR += pg_activity SUBDIR += pg_citus diff --git a/databases/pg.el/Makefile b/databases/pg.el/Makefile new file mode 100644 index 000000000000..4ac3aa5bb04d --- /dev/null +++ b/databases/pg.el/Makefile @@ -0,0 +1,31 @@ +PORTNAME= pg.el +DISTVERSION= 0.13 +CATEGORIES= databases elisp +PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} + +MAINTAINER= yasu@utahime.org +COMMENT= PostgreSQL Elisp interface + +LICENSE= GPLv2+ + +USES= emacs + +USE_GITHUB= yes +GH_ACCOUNT= cbbrowne +GH_TAGNAME= 4f6516e + +NO_ARCH= yes + +PLIST_FILES= ${EMACS_VERSION_SITE_LISPDIR}/pg.el \ + ${EMACS_VERSION_SITE_LISPDIR}/pg.elc + +do-build: + (cd ${WRKSRC} \ + && ${EMACS_CMD} -Q -batch -L . -f batch-byte-compile *.el) + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} *.el* \ + ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}) + +.include diff --git a/databases/pg.el/distinfo b/databases/pg.el/distinfo new file mode 100644 index 000000000000..95f6ff3bd11f --- /dev/null +++ b/databases/pg.el/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1621273465 +SHA256 (cbbrowne-pg.el-0.13-4f6516e_GH0.tar.gz) = d040b0783c4700bd07b8cea803fb1da6e202979acbeeeea127cbe17784eafa6e +SIZE (cbbrowne-pg.el-0.13-4f6516e_GH0.tar.gz) = 15299 diff --git a/databases/pg.el/pkg-descr b/databases/pg.el/pkg-descr new file mode 100644 index 000000000000..5ae521f2bd82 --- /dev/null +++ b/databases/pg.el/pkg-descr @@ -0,0 +1,9 @@ +This is an Emacs Lisp interface for PostgreSQL + +This module lets you access the PostgreSQL object-relational DBMS from +Emacs, using its socket-level frontend/backend protocol. The module is +capable of automatic type coercions from a range of SQL types to the +equivalent Emacs Lisp type. This is a low level API, and won't be +useful to end users. + +WWW: https://github.com/cbbrowne/pg.el -- 2.31.1