diff options
author | bapt <bapt@FreeBSD.org> | 2012-05-22 22:11:39 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-05-22 22:11:39 +0800 |
commit | a97726eff19a77bbcf41126a4dbe78bf500911f1 (patch) | |
tree | 1e3388f0f326ab3355354b093e2ef5059acbccd0 /databases | |
parent | 90ae1062dc050f787003e1b6181bed9768c2367b (diff) | |
download | freebsd-ports-gnome-a97726eff19a77bbcf41126a4dbe78bf500911f1.tar.gz freebsd-ports-gnome-a97726eff19a77bbcf41126a4dbe78bf500911f1.tar.zst freebsd-ports-gnome-a97726eff19a77bbcf41126a4dbe78bf500911f1.zip |
This is the SQLite extension for Tcl using the Tcl Extension
Architecture (TEA).
WWW: http://www.sqlite.org
PR: ports/168232
Submitted by: Pavel I Volkov <pavelivolkov@googlemail.com>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/tcl-sqlite3/Makefile | 54 | ||||
-rw-r--r-- | databases/tcl-sqlite3/distinfo | 2 | ||||
-rw-r--r-- | databases/tcl-sqlite3/files/example.tcl | 14 | ||||
-rw-r--r-- | databases/tcl-sqlite3/files/example.tcl.in | 16 | ||||
-rw-r--r-- | databases/tcl-sqlite3/pkg-descr | 4 |
6 files changed, 91 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 9ff4b18a344b..06db87690190 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -833,6 +833,7 @@ SUBDIR += tablelog SUBDIR += tarantool SUBDIR += tcl-Mysql + SUBDIR += tcl-sqlite3 SUBDIR += tdb SUBDIR += tdbc SUBDIR += tinycdb diff --git a/databases/tcl-sqlite3/Makefile b/databases/tcl-sqlite3/Makefile new file mode 100644 index 000000000000..127ff5583996 --- /dev/null +++ b/databases/tcl-sqlite3/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: sqlite3-tea +# Date created: 2011-03-23 +# Whom: Baptiste Daroussin <bapt@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= sqlite3 +PORTVERSION= 3.7.12 +CATEGORIES= databases tcl +MASTER_SITES= http://www.sqlite.org/ http://www2.sqlite.org/ +PKGNAMEPREFIX= tcl- +DISTNAME= sqlite-autoconf-3071200 + +MAINTAINER= pavelivolkov@googlemail.com +COMMENT= SQLite extension for Tcl using the Tcl Extension Architecture (TEA) + +LICENSE= public +LICENSE_NAME= Public Domain +LICENSE_TEXT= Description of the license can be obtained from the following URL: http://www.sqlite.org/copyright.html +LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT} + +LIB_DEPENDS= sqlite3:${PORTSDIR}/databases/sqlite3 + +WRKSRC= ${WRKDIR}/${DISTNAME}/tea + +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +USE_TCL= yes + +CFLAGS+= `pkg-config --cflags --libs sqlite3` +CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} --with-system-sqlite + +PLIST_DIRS+= lib/sqlite3 +PLIST_FILES+= lib/sqlite3/libsqlite.so.1 lib/sqlite3/pkgIndex.tcl +PORTEXAMPLES= * + +SUB_FILES= example.tcl +SUB_LIST= "TCLSH=${TCLSH}" + +MANN= sqlite3.n + +.include <bsd.port.pre.mk> + +post-patch: + @${REINPLACE_CMD} 's,\(^PKG_DIR.*\)$$(PACKAGE_VERSION),\13,g' ${WRKSRC}/Makefile.in + +post-install: +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${EXAMPLESDIR} +.endif + +.include <bsd.port.post.mk> diff --git a/databases/tcl-sqlite3/distinfo b/databases/tcl-sqlite3/distinfo new file mode 100644 index 000000000000..908aff43614d --- /dev/null +++ b/databases/tcl-sqlite3/distinfo @@ -0,0 +1,2 @@ +SHA256 (sqlite-autoconf-3071200.tar.gz) = ca1735d13975be84cba87ea1b62ae0ab01fdc01ef21d7547982a2b118c9fc649 +SIZE (sqlite-autoconf-3071200.tar.gz) = 1827241 diff --git a/databases/tcl-sqlite3/files/example.tcl b/databases/tcl-sqlite3/files/example.tcl new file mode 100644 index 000000000000..765c3f9ba715 --- /dev/null +++ b/databases/tcl-sqlite3/files/example.tcl @@ -0,0 +1,14 @@ +package require sqlite + +if {$argc!=2} { + puts stderr "Usage: %s DATABASE SQL-STATEMENT" + exit 1 +} +sqlite db [lindex $argv 0] +db eval [lindex $argv 1] x { + foreach v $x(*) { + puts "$v = $x($v)" + } + puts "" +} +db close diff --git a/databases/tcl-sqlite3/files/example.tcl.in b/databases/tcl-sqlite3/files/example.tcl.in new file mode 100644 index 000000000000..9ce86144ea8b --- /dev/null +++ b/databases/tcl-sqlite3/files/example.tcl.in @@ -0,0 +1,16 @@ +#!%%TCLSH%% + +package require sqlite3 + +if {$argc!=2} { + puts stderr "Usage: $argv0 DATABASE SQL-STATEMENT" + exit 1 +} +sqlite db [lindex $argv 0] +db eval [lindex $argv 1] x { + foreach v $x(*) { + puts "$v = $x($v)" + } + puts "" +} +db close diff --git a/databases/tcl-sqlite3/pkg-descr b/databases/tcl-sqlite3/pkg-descr new file mode 100644 index 000000000000..5d56b6ad8b4f --- /dev/null +++ b/databases/tcl-sqlite3/pkg-descr @@ -0,0 +1,4 @@ +This is the SQLite extension for Tcl using the Tcl Extension +Architecture (TEA). + +WWW: http://www.sqlite.org |