# $Id: Portfile 57709 2009-09-15 14:06:22Z giorgio_v@macports.org $

PortSystem		1.0

name			pgintcl
version			3.1.0
categories		databases
maintainers		mac.com:giorgio_v
description 		Pure Tcl PostgreSQL interface
long_description	This is a Tcl interface to PostgreSQL, which is \
			itself written entirely in Tcl, and does not rely \
			on libpq. \
			It is highly but not entirely compatible with \
			other Tcl interfaces, although it is slower.
homepage		http://pgintcl.projects.postgresql.org/
master_sites		http://pgfoundry.org/frs/download.php/2383/
platforms		darwin
checksums		md5 398215db6e78b62ba8ff0bae68888eac \
			sha1 14447a3f9b95e8d99c6b10a57b9f36fd749c8eaf \
			rmd160 5ff6f022799e8a847fe86c2d4d82a89c5b6e6809
depends_run		port:tcl
use_configure		no
universal_variant 	no
build			{}
destroot		{
			set sw_dest_dir ${destroot}${prefix}/lib/$name-$version/
			set share_dest_dir ${destroot}${prefix}/share/$name-$version/
			set doc_dest_dir ${destroot}${prefix}/share/doc/$name-$version/
			file mkdir -p $sw_dest_dir
			file mkdir -p $share_dest_dir
			file mkdir -p $doc_dest_dir
			xinstall ${worksrcpath}/pgin.tcl ${worksrcpath}/pkgIndex.tcl $sw_dest_dir
			xinstall ${worksrcpath}/tkpsql.tcl $share_dest_dir
			xinstall ${worksrcpath}/README ${worksrcpath}/REFERENCE \
			${worksrcpath}/INTERNALS  ${worksrcpath}/NEWS $doc_dest_dir
}
