# -*- 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
# $Id: Portfile 61654 2009-12-17 20:10:21Z jmr@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name            py26-mssql
version         1.0.2
categories      python databases
platforms       darwin
maintainers     gmail.com:ruseel
description     A simple database interface to MS-SQL for Python.
long_description    ${description}

homepage        http://pymssql.sourceforge.net/
master_sites    sourceforge:pymssql
distname        pymssql-${version}
checksums       md5     04dc4aa591acacbc8f183daeea21b690 \
                sha1    e35b1a68285728cfe06b193c57c13059e65f5691 \
                rmd160  9130ac3e8a7e489470e8411750c07e91a2a30da7

patchfiles      patch-setup.py

depends_lib-append  port:freetds

post-patch {
    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
}
