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

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

Update mysql-connector-java to 5.1.11

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