# $Id: Portfile 30223 2007-10-22 22:46:02Z jmpp@macports.org $

PortSystem 1.0

name		shsql
version		1.24
categories	databases textproc
platforms	darwin
maintainers	nomaintainer
description	standalone SQL database that stores data in ascii text files
long_description	SHSQL is a standalone SQL database that stores data in \
			ascii text files. It has a small memory footprint and \
			code size and can be embedded directly into \
			applications - there is no server process. SHSQL is a \
			pared-down SQL implementation but retains useful \
			features such as timeout record locking and search \
			engine comparison operators. A shsql database can be \
			updated via SQL, or by editing data files with a text \
			editor. Applications link to the supplied "C" language \
			API. There is also a command-line SQL utility.

homepage	http://quisp.sourceforge.net/sqlman/html/shsql_home.html
master_sites	http://quisp.sourceforge.net/download/
distname	quisp124
checksums	md5 5c33bcf801b26b74b9d17275e931c79a

use_configure	no

build.dir	${worksrcpath}/sqlsrc
build.target

destroot	{
	xinstall -m 755 ${worksrcpath}/bin/newproject.sh \
		${destroot}${prefix}/bin/create_shsqldb
	xinstall -m 755 -W ${worksrcpath}/bin buildix catofs dataedit dbcat \
		shsql shsql_alter shsql_create shsql_fldsel \
		shsql_join tabdef tabmaint tabo ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/lib/libshsql.a \
		${destroot}${prefix}/lib
	xinstall -m 644 -W ${worksrcpath}/sqlman/manshsql dataedit.1 dbcat.1 \
		shsql.1 tabdef.1 tabmaint.1 ${destroot}${prefix}/share/man/man1
}
