Changeset 58274


Ignore:
Timestamp:
Sep 25, 2009, 3:39:39 AM (10 years ago)
Author:
ryandesign@…
Message:

py-mysql: bring over changes from py25-mysql:

  • rename patchfiles with .diff extension
  • depend on py-setuptools
  • remove mysql3 variant (see #20700)
  • add mysql5 variant and make it the default
  • give the variants descriptions
  • ensure mysql4 or mysql5 variant is selected

Closes #14339 (maintainer timeout)

Location:
trunk/dports/python/py-mysql
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-mysql/Portfile

    r58230 r58274  
    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      path:bin/mysql_config5:mysql5
     20depends_lib-append      port:py-setuptools
    2121
    22 variant mysql3 conflicts mysql4 {
    23         patchfiles-delete       patch-setup_posix.py
    24         depends_lib-delete      path:bin/mysql_config5:mysql5
    25         depends_lib-append      port:mysql
     22variant mysql4 conflicts mysql5 description {Build with MySQL 4} {
     23        depends_lib-append      port:mysql4
    2624}
    2725
    28 variant mysql4 conflicts mysql3 {
    29         patchfiles-delete       patch-setup_posix.py
    30         depends_lib-delete      path:bin/mysql_config5:mysql5
    31         depends_lib-append      port:mysql4
     26variant mysql5 conflicts mysql4 description {Build with MySQL 5} {
     27        patchfiles-append       patch-setup_posix.py.diff
     28        depends_lib-append      path:bin/mysql_config5:mysql5
    3229}
     30
     31if {![variant_isset mysql4]} {
     32        default_variants +mysql5
     33}
     34
     35pre-fetch {
     36        if {![variant_isset mysql4] && ![variant_isset mysql5]} {
     37                return -code error "you must select either mysql4 or mysql5"
     38        }
     39}
Note: See TracChangeset for help on using the changeset viewer.