Ticket #29185: Portfile-py27-odbc.diff

File Portfile-py27-odbc.diff, 986 bytes (added by stevemcc@…, 14 years ago)

Portfile patch

  • Portfile

    old new  
     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
    12# $Id: Portfile 75842 2011-02-10 17:15:09Z singingwolfboy@macports.org $
    23
    34PortSystem          1.0
     
    2324checksums           md5     7c9cfbb21afd65fb20bab127dc579c93 \
    2425                    sha1    3b2a066a609f920225987ed18dfcbed95704a4bf \
    2526                    rmd160  7bca24bf603f840c2f3253909254bc46a1fd3c92
    26 patchfiles          setup.py.patch
    27 depends_lib-append  port:unixODBC
     27
     28variant unixodbc conflicts iodbc description {Use unixODBC} {
     29    depends_lib-append        port:unixODBC
     30    patchfiles                setup.py.patch
     31}
     32
     33variant iodbc conflicts unixodbc description {Use iODBC} {
     34    depends_lib-append        port:libiodbc
     35}
     36
     37if {![variant_isset iodbc]} {
     38    default_variants +unixodbc
     39}