Files
2019-04-12 22:12:37 -04:00

40 lines
1.4 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup python 1.0
name py-sqlite
version 2.8.3
categories-append databases
license zlib
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 https://pypi.python.org/pypi/pysqlite
master_sites pypi:p/pysqlite
distname pysqlite-${version}
checksums rmd160 ec33a3083d8af35935c879796fce67ac0a9cf93d \
sha256 17d3335863e8cf8392eea71add33dab3f96d060666fe68ab7382469d307f4490
python.versions 27
if {${name} ne ${subport}} {
depends_lib-append port:sqlite3
patchfiles patch-setup.py
post-patch {
reinplace -locale en_US.ISO8859-1 "s|__SUBPORT__|${subport}|" ${worksrcpath}/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()'"
livecheck.type none
} else {
livecheck.name pysqlite
}