PortSystem 1.0

name		shsql
version		1.28
categories	databases textproc
license		GPL-2+
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/
dist_subdir	quisp
distname	quisp[strsed ${version} {g/\.//}]
checksums	md5     e587266af100b46f68550affb900fdc4 \
		sha1    2869b95fd264b848073423667d6efe9a19cf2bcf \
		rmd160  4dae3a94250e5973f8ea4628f8d62044ac14fd4e

use_configure	no

build.dir	${worksrcpath}/sqlsrc
build.target
build.args	CC=${configure.cc}

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
}
