source: trunk/dports/python/py-sqlite/Portfile

Last change on this file was 150724, checked in by petr@…, 12 months ago

various py-* ports, nomaintainer: retire py26 subport for ports without dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 150724 2016-07-27 20:07:24Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup           python 1.0
6
7name                py-sqlite
8version             2.6.3
9categories-append   databases
10license             zlib
11maintainers         nomaintainer
12platforms           darwin freebsd
13description         python database extension for sqlite
14long_description    PySQLite is a Python extension for SQLite that \
15                    conforms to the Python Database API Specification 2.0.
16
17homepage            http://pysqlite.googlecode.com/
18master_sites        googlecode:pysqlite
19distname            pysqlite-${version}
20checksums           rmd160 a84c96b7f60daff1815ba3e455cbc6264eb3ea86 \
21                    sha256 0d538880717f6347bb83f9ce11e9b171caf9d76e1980a0e9c22f8b03aec3585b
22
23python.versions     27
24
25if {${name} ne ${subport}} {
26    depends_lib-append  port:sqlite3
27
28    patchfiles          patch-setup.py
29    post-patch {
30        reinplace -locale en_US.ISO8859-1 "s|__SUBPORT__|${subport}|" ${worksrcpath}/setup.py
31    }
32
33    test.dir            "${worksrcpath}/build/lib.macosx-${macosx_deployment_target}-${configure.build_arch}-${python.branch}"
34    test.run            yes
35    test.cmd            ${python.bin} -c "'from pysqlite2.test import test; test()'"
36}
Note: See TracBrowser for help on using the repository browser.