# $Id: Portfile,v 1.6 2006/06/23 01:54:58 landonf Exp $

PortSystem 1.0
PortGroup python24 1.0

name				py-mysql
version				1.2.1
categories			python devel databases
maintainers			ryanwilcox@mac.com
description			Python interface to mysql
long_description 	A package containing a Python module that allows you to \
					connect to MySQL databases
platforms			darwin
homepage 			http://sourceforge.net/projects/mysql-python/
master_sites		sourceforge:mysql-python
distname			MySQL-python-${version}
checksums			md5 305328bfaea8a03738a88112df50461c

depends_lib-append	port:mysql4

variant mysql3	{
	depends_lib-delete	port:mysql4
	depends_lib-append	port:mysql
}

variant mysql5	{
	depends_lib-delete	port:mysql4
	depends_lib-append	port:mysql5
	post-patch {
		reinplace "s|mysql_config --%s|mysql_config5 --%s|g" \
			${worksrcpath}/setup.py
	}
}
