# $Id: Portfile 62467 2010-01-08 21:28:52Z snc@macports.org $

PortSystem 1.0
PortGroup           python24 1.0

name                py-sqlite
version             2.4.1
categories          python databases
maintainers         nomaintainer
platforms           darwin freebsd
description         python database extension for sqlite
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        http://www.mirrorservice.org/sites/master.us.finkmirrors.net/distfiles/sha1/03d2c52c65e017e657d852c0583aa39bb6563a73/
distname            pysqlite-${version}
checksums           md5     7d9a4875a7107b94eb4aa2dc861a2537 \
                    sha1    03d2c52c65e017e657d852c0583aa39bb6563a73 \
                    rmd160  693f4d789388ef0456449d01b0d342aaf1990832

depends_lib-append  port:sqlite3

patchfiles          patch-setup.py

test.dir            "${worksrcpath}/build/lib.macosx-10.3-${os.arch}-2.4"
test.run            yes
test.cmd            ${python.bin} -c "'from pysqlite2.test import test; test()'"
