source: trunk/dports/java/mysql-connector-java/Portfile @ 61130

Last change on this file since 61130 was 61130, checked in by nox@…, 10 years ago

Add Snow Leopard support to mysql-connector-java

mysql-connector-java requires JDK 1.5 and cannot compile with
JDK 1.6, complaining that some abstract methods are not defined
in concrete classes. patch-JDK-1.6.diff fixes that.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 61130 2009-12-02 21:51:18Z nox@macports.org $
2
3PortSystem 1.0
4
5name                            mysql-connector-java
6version                         5.1.10
7
8categories                      java
9maintainers                     jberry openmaintainer
10platforms                       darwin
11
12description                     MySQL Official JDBC connector for MySQL database.
13long_description        MySQL Connector/J is a native Java driver that converts JDBC \
14                                        (Java Database Connectivity) calls into the network protocol \
15                                        used by the MySQL database. It lets developers working with \
16                                        the Java programming language easily build programs and applets \
17                                        that interact with MySQL and connect all corporate data, even \
18                                        in a heterogeneous environment. MySQL Connector/J is a Type IV \
19                                        JDBC driver and has a complete JDBC feature set that supports \
20                                        the capabilities of MySQL.
21homepage                        http://dev.mysql.com/doc/refman/5.0/en/connector-j.html
22
23master_sites            http://ftp.plusline.de/mysql/Downloads/Connector-J/
24checksums           md5     f9da616de868ddd1acf1428334f3313d \
25                    sha1    32938f3004c70a657a7481496bc3813b85df20de \
26                    rmd160  ef5b6cf4cceaac0c6d32858920c362bab6004bc1
27
28patchfiles                      patch-build.xml
29
30depends_build           bin:ant:apache-ant
31depends_lib                     bin:java:kaffe \
32                                        port:junit \
33                                        port:jakarta-log4j
34
35
36set javaLibs            ${prefix}/share/java
37
38use_configure           no
39
40build.cmd                       ant
41build.target            dist
42build.args                      -Djunit.jar=${javaLibs}/junit.jar \
43                                        -Dlog4j.jar=${javaLibs}/jakarta-log4j.jar                                       
44
45destroot {
46        xinstall -m 755 -d ${destroot}${prefix}/share/java \
47                ${destroot}${prefix}/share/doc
48        xinstall -m 644 ${worksrcpath}/build/${distname}/${distname}-bin.jar \
49                ${destroot}${prefix}/share/java/${name}-5.0.jar
50        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
51}
52
53platform darwin 10 {
54        post-patch {
55                reinplace -E {/name="compile"/s/compile-testsuite, //} \
56                        ${worksrcpath}/build.xml
57        }
58
59        patchfiles-append patch-JDK-1.6.diff
60}
61
62livecheck.type  regex
63livecheck.url   http://dev.mysql.com/downloads/connector/j/5.0.html
64livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?).tar.gz"
Note: See TracBrowser for help on using the repository browser.