# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 76071 2011-02-17 16:20:41Z snc@macports.org $

PortSystem 1.0
PortGroup           python26 1.0

name                py26-sqlite
version             2.6.3
categories          python databases
maintainers         snc openmaintainer
license             MIT
platforms           darwin
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://pysqlite.googlecode.com/
master_sites        googlecode:pysqlite
distname            pysqlite-${version}

checksums           sha1    d74d7649c5a1e9fb19dfa78c28b163007468a8cf \
                    rmd160  a84c96b7f60daff1815ba3e455cbc6264eb3ea86

depends_lib-append  port:sqlite3

patchfiles          patch-setup.py

test.dir            "${worksrcpath}/build/lib.macosx-${macosx_deployment_target}-${configure.build_arch}-${python.branch}"
test.run            yes
test.cmd            ${python.bin} -c "'from pysqlite2.test import test; test()'"
