# -*- 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
categories-append databases
description A simple database interface to MS-SQL for Python.
long_description ${description}
homepage http://pymssql.org
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
distname ${python.rootname}-${version}
checksums rmd160 864b05e6e5a0b57c5e26f82492a7158932ca17be \
sha256 3201eb1b1263ad55b555d727ed8bed0b12b7b9de3ce5e529206e36d4be1a7afb \
if {${name} ne ${subport}} {
port:py${python.version}-setuptools \
port:py${python.version}-setuptools-git \
port:py${python.version}-cython
patchfiles patch-setup.py.diff
reinplace "s|@MP_PREFIX@|${prefix}|g" ${worksrcpath}/setup.py
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} LICENSE README_building_and_developing.rst \
README.rst ChangeLog_highlights.rst ChangeLog ${destroot}${docdir}