# -*- 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 150724 2016-07-27 20:07:24Z petr@macports.org $ PortSystem 1.0 PortGroup python 1.0 set _name pymssql set _n [string index ${_name} 0] name py-mssql version 2.1.0 categories-append databases license LGPL-2.1+ platforms darwin maintainers nomaintainer description A simple database interface to MS-SQL for Python. long_description ${description} homepage http://pymssql.org master_sites pypi:${_n}/${_name}/ distname ${_name}-${version} checksums md5 e955442a8cd43456cdf5c28b75147afb \ rmd160 4a66ad05af080684b5aa9f4096819a0523c13556 \ sha256 7dbfcf8de21be1f34164a7f26f1d573b0e4c0bad5804a62f8997b99fe91ece5d python.versions 27 34 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools \ port:py${python.version}-cython depends_lib-append port:freetds patchfiles patch-setup.py.diff post-patch { reinplace "s|@MP_PREFIX@|${prefix}|g" ${worksrcpath}/setup.py } livecheck.type none } else { livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" }