# $Id: Portfile,v 1.2 2006/02/01 15:44:35 jberry Exp $

PortSystem 1.0

name				mysql-connector-java
version				3.1.12

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			MySQL Official JDBC connector for MySQL database.
long_description	MySQL Connector/J is a native Java driver that converts JDBC \
					(Java Database Connectivity) calls into the network protocol \
					used by the MySQL database. It lets developers working with \
					the Java programming language easily build programs and applets \
					that interact with MySQL and connect all corporate data, even \
					in a heterogeneous environment. MySQL Connector/J is a Type IV \
					JDBC driver and has a complete JDBC feature set that supports \
					the capabilities of MySQL.

master_sites		http://ftp.plusline.de/mysql/Downloads/Connector-J/
checksums			md5 c8c15443dfa9541545aad02d744a077b

patchfiles			patch-build.xml

depends_build		bin:ant:apache-ant
depends_lib			bin:java:kaffe \
					port:junit \
					port:jakarta-log4j


set javaLibs		${prefix}/share/java

use_configure		no

build.cmd			ant
build.target		dist
build.args			-Djunit.jar=${javaLibs}/junit.jar \
					-Dlog4j.jar=${javaLibs}/jakarta-log4j.jar					

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc
	xinstall -m 644 ${worksrcpath}/build/${distname}/${distname}-bin.jar \
		${destroot}${prefix}/share/java/${name}-3.1.jar
	file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
}
