Ticket #13410: Portfile-py25-mysql.diff

File Portfile-py25-mysql.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 17 years ago)
  • Portfile

     
    1515master_sites            sourceforge:mysql-python
    1616distname                        MySQL-python-${version}
    1717checksums                       md5 532268f02870bea18c1d465e88afff30
    18 patchfiles              patch-setup_posix.py patch-_mysql.c
     18patchfiles                      patch-_mysql.c.diff
    1919
    20 depends_lib-append      port:mysql5 port:py25-setuptools
     20depends_lib-append              port:py25-setuptools
    2121
    22 variant mysql3  {
    23         patchfiles-delete       patch-setup_posix.py
    24         depends_lib-delete      port:mysql5
    25         depends_lib-append      port:mysql
     22variant mysql3 conflicts mysql4 mysql5 description {Build with MySQL 3} {
     23        depends_lib-append      port:mysql3
    2624}
    2725
    28 variant mysql4  {
    29         patchfiles-delete       patch-setup_posix.py
    30         depends_lib-delete      port:mysql5
     26variant mysql4 conflicts mysql3 mysql5 description {Build with MySQL 4} {
    3127        depends_lib-append      port:mysql4
    3228}
    3329
    34 variant mysql5-devel {
    35         patchfiles-delete       patch-setup_posix.py
    36         depends_lib-delete      port:mysql5
    37         depends_lib-append      port:mysql5-devel
     30variant mysql5 conflicts mysql3 mysql4 description {Build with MySQL 5 (default)} {
     31        patchfiles-append       patch-setup_posix.py.diff
     32        depends_lib-append      path:${prefix}/bin/mysql_config5:mysql5
    3833}
    3934
     35if {![variant_isset mysql3] && ![variant_isset mysql4]} {
     36        default_variants +mysql5
     37}
     38
     39pre-fetch {
     40        if {![variant_isset mysql3] && ![variant_isset mysql4] && ![variant_isset mysql5]} {
     41                return -code error "you must select either mysql3, mysql4 or mysql5"
     42        }
     43}