Ticket #23191: Portfile

File Portfile, 1.3 KB (added by francois.work@…, 15 years ago)

Portfile modified

Line 
1# -*- 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
2# $Id$
3
4PortSystem 1.0
5PortGroup           python26 1.0
6
7name                py26-sqlite
8version             2.5.6
9categories          python databases
10maintainers         snc openmaintainer
11platforms           darwin freebsd
12description         python database extension for sqlite
13long_description    PySQLite is a Python extension for SQLite that \
14                    conforms to the Python Database API Specification 2.0.
15
16homepage            http://pysqlite.googlecode.com/
17master_sites        googlecode:pysqlite
18distname            pysqlite-${version}
19checksums           md5     1b2f338c8d6db971e34edb799a92e2ee \
20                    sha1    79b5c4067c0ca237240eb32e6fde7ed84636d13d \
21                    rmd160  8174ecfbee2f9526f7a1100b1afa78f3786916dd
22
23depends_lib-append  port:sqlite3
24
25patchfiles          patch-setup.py
26
27if { ${os.major} == 10} {
28    set os.my_version 10.6
29}
30if { ${os.major} == 9} {
31    set os.my_version 10.5
32}
33if { ${os.major} == 8} {
34    set os.my_version 10.4
35}
36test.dir            "${worksrcpath}/build/lib.macosx-${os.my_version}-${os.arch}-${python.branch}"
37test.run            yes
38test.cmd            ${python.bin} -c "'from pysqlite2.test import test; test()'"