# $Id: Portfile,v 1.1 2005/01/13 22:08:22 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-sqlite2
version			1.0.1
categories		python databases
maintainers		mww@opendarwin.org
platforms		darwin freebsd
description		python database extension for sqlite2
long_description	PySQLite is a Python extension for SQLite that \
				conforms to the Python Database API Specification 2.0.

homepage		http://www.pysqlite.org/
master_sites	sourceforge:pysqlite
distname		pysqlite-${version}
checksums		md5 4797b5ea7a3d96b87333e6b5af7b9979

depends_lib-append	lib:libsqlite:sqlite

worksrcdir		pysqlite

post-patch	{
	reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/setup.py
}

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} README LICENSE doc/rest/manual.txt \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/examples manual_transactions.py \
		converters.py dbapi_transactions.py \
		${destroot}${prefix}/share/doc/${name}/examples
}
