# $Id: Portfile 78075 2011-04-22 19:01:43Z giorgio_v@macports.org $

PortSystem		1.0

name			pgintcl
version			3.3.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.sourceforge.net/
master_sites    sourceforge:pgintcl
extract.suffix  .tgz
livecheck.regex {([a-zA-Z0-9.]+\.[a-zA-Z0-9.]+)/pgintcl-([a-zA-Z0-9.]+\.[a-zA-Z0-9.]+)/}

platforms		darwin
checksums		md5  b3f0f8a08bec32db603d5dc71604edeb \
			    sha1 1ad1c5c708b0acaa328bd448f158e6b3b2474ad3 \
			    rmd160 0dc427e4e2a94fabbafe40ec1e014501b1dc82a6
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
}
