Ticket #13410: Portfile-py25-mysql.diff
File Portfile-py25-mysql.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 17 years ago) |
---|
-
Portfile
15 15 master_sites sourceforge:mysql-python 16 16 distname MySQL-python-${version} 17 17 checksums md5 532268f02870bea18c1d465e88afff30 18 patchfiles patch-setup_posix.py patch-_mysql.c18 patchfiles patch-_mysql.c.diff 19 19 20 depends_lib-append port:mysql5port:py25-setuptools20 depends_lib-append port:py25-setuptools 21 21 22 variant mysql3 { 23 patchfiles-delete patch-setup_posix.py 24 depends_lib-delete port:mysql5 25 depends_lib-append port:mysql 22 variant mysql3 conflicts mysql4 mysql5 description {Build with MySQL 3} { 23 depends_lib-append port:mysql3 26 24 } 27 25 28 variant mysql4 { 29 patchfiles-delete patch-setup_posix.py 30 depends_lib-delete port:mysql5 26 variant mysql4 conflicts mysql3 mysql5 description {Build with MySQL 4} { 31 27 depends_lib-append port:mysql4 32 28 } 33 29 34 variant mysql5-devel { 35 patchfiles-delete patch-setup_posix.py 36 depends_lib-delete port:mysql5 37 depends_lib-append port:mysql5-devel 30 variant 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 38 33 } 39 34 35 if {![variant_isset mysql3] && ![variant_isset mysql4]} { 36 default_variants +mysql5 37 } 38 39 pre-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 }