diff options
author | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-09-02 13:21:36 +0000 |
---|---|---|
committer | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-09-02 13:21:36 +0000 |
commit | 7bb30f60b02c0ab5ac152bf44325b4116d7b8a30 (patch) | |
tree | 23c6d18264598e88f01a20d76a75de3964782bbf /databases/sqlite | |
parent | Update to 20020902. (diff) |
Fixup from previous commit
Bump PORTREVISION
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=65494
Diffstat (limited to 'databases/sqlite')
-rw-r--r-- | databases/sqlite/Makefile | 5 | ||||
-rw-r--r-- | databases/sqlite/files/example.tcl | 14 | ||||
-rw-r--r-- | databases/sqlite/files/patch-makefile | 34 | ||||
-rw-r--r-- | databases/sqlite/pkg-plist | 14 |
4 files changed, 58 insertions, 9 deletions
diff --git a/databases/sqlite/Makefile b/databases/sqlite/Makefile index 132e4d543f16..28d5beb5b5b0 100644 --- a/databases/sqlite/Makefile +++ b/databases/sqlite/Makefile @@ -8,6 +8,7 @@ PORTNAME= sqlite PORTVERSION= 2.7.1 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://www.hwaci.com/sw/sqlite/ DISTNAME= ${PORTNAME}-${PORTVERSION} @@ -45,10 +46,10 @@ post-build: cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} doc post-install: - ${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/ + ${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/sqlite/ .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -# @${INSTALL_DATA} ${FILESDIR}/example.tcl ${DOCSDIR} + @${INSTALL_DATA} ${FILESDIR}/example.tcl ${DOCSDIR} .for file in ${DOCFILES} @${INSTALL_DATA} ${WRKSRC}/doc//${file} ${DOCSDIR} .endfor diff --git a/databases/sqlite/files/example.tcl b/databases/sqlite/files/example.tcl new file mode 100644 index 000000000000..765c3f9ba715 --- /dev/null +++ b/databases/sqlite/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/sqlite/files/patch-makefile b/databases/sqlite/files/patch-makefile new file mode 100644 index 000000000000..e6eb78ae096c --- /dev/null +++ b/databases/sqlite/files/patch-makefile @@ -0,0 +1,34 @@ +diff -r -C 3 ../sqlite.orig/Makefile.in ./Makefile.in +*** ../sqlite.orig/Makefile.in Sat Aug 31 18:29:58 2002 +--- ./Makefile.in Mon Sep 2 00:51:27 2002 +*************** +*** 310,322 **** + mkdir -p doc + mv $(DOC) doc + +! install: sqlite libsqlite.la sqlite.h + $(INSTALL) -d $(exec_prefix)/lib + $(LIBTOOL) $(INSTALL) libsqlite.la $(exec_prefix)/lib + $(INSTALL) -d $(exec_prefix)/bin + $(LIBTOOL) $(INSTALL) sqlite $(exec_prefix)/bin + $(INSTALL) -d $(prefix)/include + $(INSTALL) -m 0644 sqlite.h $(prefix)/include + + clean: + rm -f *.lo *.la *.o sqlite libsqlite.la sqlite.h +--- 310,324 ---- + mkdir -p doc + mv $(DOC) doc + +! install: sqlite libsqlite.la sqlite.h libtclsqlite.la + $(INSTALL) -d $(exec_prefix)/lib + $(LIBTOOL) $(INSTALL) libsqlite.la $(exec_prefix)/lib + $(INSTALL) -d $(exec_prefix)/bin + $(LIBTOOL) $(INSTALL) sqlite $(exec_prefix)/bin + $(INSTALL) -d $(prefix)/include + $(INSTALL) -m 0644 sqlite.h $(prefix)/include ++ mkdir -p $(prefix)/lib/sqlite ++ $(LIBTOOL) $(INSTALL) libtclsqlite.la $(prefix)/lib/sqlite + + clean: + rm -f *.lo *.la *.o sqlite libsqlite.la sqlite.h diff --git a/databases/sqlite/pkg-plist b/databases/sqlite/pkg-plist index 9109d356510d..0a9fa1b414d9 100644 --- a/databases/sqlite/pkg-plist +++ b/databases/sqlite/pkg-plist @@ -4,12 +4,12 @@ lib/libsqlite.a lib/libsqlite.la lib/libsqlite.so lib/libsqlite.so.0 -@comment lib/sqlite/libtclsqlite.so.0 -@comment lib/sqlite/libtclsqlite.so -@comment lib/sqlite/libtclsqlite.la -@comment lib/sqlite/libtclsqlite.a -@comment lib/sqlite/pkgIndex.tcl -@comment @dirrm lib/sqlite +lib/sqlite/libtclsqlite.so.0 +lib/sqlite/libtclsqlite.so +lib/sqlite/libtclsqlite.la +lib/sqlite/libtclsqlite.a +lib/sqlite/pkgIndex.tcl +@dirrm lib/sqlite %%PORTDOCS%%share/doc/sqlite/arch.html %%PORTDOCS%%share/doc/sqlite/arch.png %%PORTDOCS%%share/doc/sqlite/c_interface.html @@ -27,5 +27,5 @@ lib/libsqlite.so.0 %%PORTDOCS%%share/doc/sqlite/sqlite.html %%PORTDOCS%%share/doc/sqlite/tclsqlite.html %%PORTDOCS%%share/doc/sqlite/vdbe.html -@comment %%PORTDOCS%%share/doc/sqlite/example.tcl +%%PORTDOCS%%share/doc/sqlite/example.tcl %%PORTDOCS%%@dirrm share/doc/sqlite |