# $Id: Portfile 36451 2008-05-02 18:28:01Z ryandesign@macports.org $

PortSystem		1.0

name			pgintcl
version			3.0.2
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/1761/
platforms		darwin
checksums		md5 45d58bb888499eb80071251e270ac21b \
			sha1 67ab0fb4f730e963f9fcd27bfc75d30d87abd75e \
			rmd160 262c732263a802729513f8dc79641afa3a524b06
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
}
