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

Last change on this file was 150724, checked in by petr@…, 14 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.4 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
7set _name           pymssql
8set _n              [string index ${_name} 0]
9
10name                py-mssql
11version             2.1.0
12categories-append   databases
13license             LGPL-2.1+
14platforms           darwin
15maintainers         nomaintainer
16
17description         A simple database interface to MS-SQL for Python.
18long_description    ${description}
19
20homepage            http://pymssql.org
21master_sites        pypi:${_n}/${_name}/
22distname            ${_name}-${version}
23
24checksums           md5     e955442a8cd43456cdf5c28b75147afb \
25                    rmd160  4a66ad05af080684b5aa9f4096819a0523c13556 \
26                    sha256  7dbfcf8de21be1f34164a7f26f1d573b0e4c0bad5804a62f8997b99fe91ece5d
27
28python.versions     27 34
29
30if {${name} ne ${subport}} {
31    depends_build-append    port:py${python.version}-setuptools \
32                            port:py${python.version}-cython
33
34    depends_lib-append  port:freetds
35
36    patchfiles      patch-setup.py.diff
37
38    post-patch {
39        reinplace "s|@MP_PREFIX@|${prefix}|g" ${worksrcpath}/setup.py
40    }
41    livecheck.type  none
42} else {
43    livecheck.type  regex
44    livecheck.url   [lindex ${master_sites} 0]
45    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
46}
Note: See TracBrowser for help on using the repository browser.