2005-08-24 04:22:43 +00:00
|
|
|
PortSystem 1.0
|
|
|
|
|
|
|
|
|
|
name mysql-connector-java
|
2010-03-15 13:14:38 +00:00
|
|
|
version 5.1.12
|
|
|
|
|
license GPL-2
|
2009-12-29 00:49:44 +00:00
|
|
|
set branch [join [lrange [split ${version} .] 0 1] .]
|
2005-08-24 04:22:43 +00:00
|
|
|
|
|
|
|
|
categories java
|
2010-10-08 23:20:28 +00:00
|
|
|
maintainers nomaintainer
|
2005-08-24 04:22:43 +00:00
|
|
|
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.
|
2018-02-01 07:51:35 -05:00
|
|
|
homepage https://dev.mysql.com/doc/refman/${branch}/en/connector-j.html
|
2005-08-24 04:22:43 +00:00
|
|
|
|
2020-08-04 04:09:30 -05:00
|
|
|
master_sites mysql:Connector-J/
|
2010-03-15 13:14:38 +00:00
|
|
|
|
|
|
|
|
checksums md5 d2f836c761614a3fdf39f7a6c7c1acb5 \
|
|
|
|
|
sha1 e63fed86be594a6166eaf4abf69375747042dcc6 \
|
|
|
|
|
rmd160 43aa29a886c488c985608278b66f746546a4cfd7
|
2005-08-24 04:22:43 +00:00
|
|
|
|
|
|
|
|
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 {
|
2010-01-23 16:34:19 +00:00
|
|
|
xinstall -d ${destroot}${prefix}/share/java \
|
2005-08-24 04:22:43 +00:00
|
|
|
${destroot}${prefix}/share/doc
|
|
|
|
|
xinstall -m 644 ${worksrcpath}/build/${distname}/${distname}-bin.jar \
|
2006-10-06 18:38:30 +00:00
|
|
|
${destroot}${prefix}/share/java/${name}-5.0.jar
|
2010-01-23 16:34:19 +00:00
|
|
|
copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
|
|
|
|
|
|
|
|
|
|
set docdir ${prefix}/share/doc/${name}
|
|
|
|
|
xinstall -m 644 -W ${worksrcpath} CHANGES COPYING EXCEPTIONS-CONNECTOR-J \
|
|
|
|
|
${destroot}${docdir}
|
2005-08-24 04:22:43 +00:00
|
|
|
}
|
2007-09-20 21:36:44 +00:00
|
|
|
|
2011-08-22 14:11:48 +00:00
|
|
|
platform darwin {
|
|
|
|
|
if {${os.major} >= 10} {
|
|
|
|
|
patchfiles-append patch-JDK-1.6.diff
|
|
|
|
|
post-patch {
|
|
|
|
|
reinplace -E {/name="compile"/s/compile-testsuite, //} \
|
|
|
|
|
${worksrcpath}/build.xml
|
|
|
|
|
}
|
|
|
|
|
}
|
2009-12-02 21:51:18 +00:00
|
|
|
}
|
|
|
|
|
|
2010-03-15 13:14:38 +00:00
|
|
|
universal_variant no
|
|
|
|
|
|
2009-09-10 08:16:41 +00:00
|
|
|
livecheck.type regex
|
2019-06-22 00:19:06 -05:00
|
|
|
livecheck.url https://dev.mysql.com/downloads/connector/j/${branch}.html
|
2007-09-20 21:36:44 +00:00
|
|
|
livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?).tar.gz"
|