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

Last change on this file was 82946, checked in by ryandesign@…, 6 years ago

mysql-connector-java: also apply JDK 1.6 patch on Lion; see #30929

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