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