summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2007-06-18 20:45:59 +0000
committerMikhail Teterin <mi@FreeBSD.org>2007-06-18 20:45:59 +0000
commit40bd9f01010adc3824ae6eb9d220589b3e43d363 (patch)
treec0a569b610f01203b207b6aed9b5b47d9ce9696f
parentForced commit since previous message ended up incomplete: (diff)
Add TCL binding for PostgreSQL client. This used to be part of PostgreSQL
client up to version 7.x, but is not found in 8.x.
Notes
Notes: svn path=/head/; revision=193833
-rw-r--r--databases/Makefile1
-rw-r--r--databases/pgtcl/Makefile44
-rw-r--r--databases/pgtcl/distinfo6
-rw-r--r--databases/pgtcl/files/patch-size_t13
-rw-r--r--databases/pgtcl/pkg-descr5
-rw-r--r--databases/pgtcl/pkg-plist70
6 files changed, 139 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 82ed1290fac2..359b4f691d43 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -338,6 +338,7 @@
SUBDIR += pgpool
SUBDIR += pgpool-II
SUBDIR += pgpoolAdmin
+ SUBDIR += pgtcl
SUBDIR += pgtop
SUBDIR += pgworksheet
SUBDIR += php-sqlite3
diff --git a/databases/pgtcl/Makefile b/databases/pgtcl/Makefile
new file mode 100644
index 000000000000..07d8100aaffd
--- /dev/null
+++ b/databases/pgtcl/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: pgtcl
+# Date created: February 13, 2007
+# Whom: Mikhail Teterin
+#
+# $FreeBSD$
+#
+
+PORTNAME= pgtcl
+PORTVERSION= 1.6.0
+CATEGORIES= databases tcl84
+DISTNAME= ${PORTNAME}${PORTVERSION}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src
+MASTER_SITES= http://pgfoundry.org/frs/download.php/1229/:src
+
+MAINTAINER= mi@aldan.algebra.com
+COMMENT= TCL extension for accessing a PostgreSQL server
+
+USE_TCL= yes
+USE_PGSQL= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} --with-tclinclude=${TCL_INCLUDEDIR}
+LIBDIR= ${PREFIX}/lib/${PORTNAME}
+PLIST_SUB+= PORTVERSION=${PORTVERSION}
+.if !defined(NOPORTDOCS)
+EXTRACT_ONLY= ${_DISTFILES:M*tar.gz}
+DISTFILES+= pgtcldocs-20070115.zip:doc
+MASTER_SITES+= http://pgfoundry.org/frs/download.php/1228/:doc
+BUILD_DEPENDS= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
+.endif
+
+post-configure:
+ ${REINPLACE_CMD} -e 's,tclstub,tcl,g' \
+ -e 's,-DUSE_TCL_STUBS=1,-UUSE_TCL_STUBS,g' \
+ ${WRKSRC}/Makefile
+
+do-install:
+ ${MKDIR} ${LIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl \
+ ${WRKSRC}/libpgtcl${PORTVERSION}.so ${LIBDIR}
+.if !defined(NOPORTDOCS)
+ ${UNZIP_CMD} -j ${DISTDIR}/${_DISTFILES:M*.zip} -d ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/databases/pgtcl/distinfo b/databases/pgtcl/distinfo
new file mode 100644
index 000000000000..381af27f63dd
--- /dev/null
+++ b/databases/pgtcl/distinfo
@@ -0,0 +1,6 @@
+MD5 (pgtcl1.6.0.tar.gz) = 25eda4bb40fb3d4ec9b205a1fdc1bbbc
+SHA256 (pgtcl1.6.0.tar.gz) = 3e508e14cb5ca59fd2cb82158145a393ce330090d860e85718dedee542467b43
+SIZE (pgtcl1.6.0.tar.gz) = 178146
+MD5 (pgtcldocs-20070115.zip) = 8ce98e93b238c3329d0fe43810442c44
+SHA256 (pgtcldocs-20070115.zip) = c5bcab2f0169041bcf8a10ff80bb39500ef3d068d960cf8d10c1e48b2c1c49de
+SIZE (pgtcldocs-20070115.zip) = 128754
diff --git a/databases/pgtcl/files/patch-size_t b/databases/pgtcl/files/patch-size_t
new file mode 100644
index 000000000000..1ec71cb305fb
--- /dev/null
+++ b/databases/pgtcl/files/patch-size_t
@@ -0,0 +1,13 @@
+size_t is the right type to use, but Tcl's core is not prepared for it.
+
+ -mi
+
+--- pgtclCmds.c Mon Jan 15 21:41:07 2007
++++ pgtclCmds.c Mon Jun 18 16:28:31 2007
+@@ -3644,5 +3644,5 @@
+ {
+ unsigned char *from_binary;
+- size_t from_len;
++ int from_len;
+ unsigned char *to_string;
+ size_t to_len;
diff --git a/databases/pgtcl/pkg-descr b/databases/pgtcl/pkg-descr
new file mode 100644
index 000000000000..b2e71866823b
--- /dev/null
+++ b/databases/pgtcl/pkg-descr
@@ -0,0 +1,5 @@
+A TCL extension for accessing PostgreSQL databases. This used
+to come bunlded with PostgreSQL itself, but was split into a
+separate project in more recent version (8+).
+
+WWW: http://pgtcl.projects.postgresql.org/
diff --git a/databases/pgtcl/pkg-plist b/databases/pgtcl/pkg-plist
new file mode 100644
index 000000000000..2f9085e03e14
--- /dev/null
+++ b/databases/pgtcl/pkg-plist
@@ -0,0 +1,70 @@
+lib/pgtcl/libpgtcl%%PORTVERSION%%.so
+lib/pgtcl/pkgIndex.tcl
+@dirrm lib/pgtcl
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/ln-legalnotice.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-blocking.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-cancelrequest.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-conndefaults.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-connect.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-disconnect.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-escape-bytea.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-escape-string.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-exec-params.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-exec-prepared.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-exec.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-execute.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-getresult.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-isbusy.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-listen.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-close.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-creat.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-export.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-import.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-lseek.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-open.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-read.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-tell.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-unlink.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-lo-write.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-notice-handler.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-on-connection-loss.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-parameter-status.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-quote.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-result-callback.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-result.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-select.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-sendquery-params.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-sendquery.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-sendquery-prepared.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-transaction-status.html
+%%PORTDOCS%%%%DOCSDIR%%/pg-unescape-bytea.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-async.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-asyncevent.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-cnq-execute.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-copy.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-dblist.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-picstore-esc.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-picstore-lo.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-picstore-pq.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-picview-esc.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-picview-lo.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-make.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-picview-pq.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-example-results.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-examples.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-load-static.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-loading-load.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-loading.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-make-macos.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-make-win.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-overview.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-preface.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-ref-async.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-ref-connstatus.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-ref-largeobj.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-ref-notif.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-ref-query.html
+%%PORTDOCS%%%%DOCSDIR%%/pgtcl-ref.html
+%%PORTDOCS%%%%DOCSDIR%%/stylesheet.css
+%%PORTDOCS%%@dirrm %%DOCSDIR%%