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

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

Fix mysql-connector-java homepage and livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 62102 2009-12-29 00:49:44Z nox@macports.org $
2
3PortSystem 1.0
4
5name                            mysql-connector-java
6version                         5.1.10
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     f9da616de868ddd1acf1428334f3313d \
26                    sha1    32938f3004c70a657a7481496bc3813b85df20de \
27                    rmd160  ef5b6cf4cceaac0c6d32858920c362bab6004bc1
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 -m 755 -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        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
52}
53
54platform darwin 10 {
55        post-patch {
56                reinplace -E {/name="compile"/s/compile-testsuite, //} \
57                        ${worksrcpath}/build.xml
58        }
59
60        patchfiles-append patch-JDK-1.6.diff
61}
62
63livecheck.type  regex
64livecheck.url   http://dev.mysql.com/downloads/connector/j/${branch}.html
65livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?).tar.gz"
Note: See TracBrowser for help on using the repository browser.