source: trunk/dports/java/commons-dbcp/Portfile @ 61152

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

Add Snow Leopard support to commons-dbcp (#21037)

commons-dbcp 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: 1.4 KB
Line 
1# $Id: Portfile 61152 2009-12-03 08:33:30Z nox@macports.org $
2
3PortSystem 1.0
4
5name                            commons-dbcp
6version                         1.2.2
7
8categories                      java
9maintainers                     jberry openmaintainer
10platforms                       darwin
11
12description                     Jakarta Commons-DBCP
13long_description        Commons-DBCP provides database connection pooling services.
14homepage                        http://commons.apache.org/dbcp/
15                               
16distname                        ${name}-${version}-src
17master_sites            apache:commons/dbcp/source/
18checksums                       md5 57bad7d2abfaa175c743521caccdbd8f
19
20depends_build           bin:ant:apache-ant
21depends_lib                     bin:java:kaffe \
22                                        port:junit \
23                                        port:commons-collections \
24                                        port:commons-pool
25
26use_configure           no
27
28worksrcdir                      ${name}-${version}-src
29
30build.cmd                       ant
31build.target            dist
32build.args                      -Djunit.jar=${prefix}/share/java/junit.jar \
33                                        -Dcommons-collections.jar=${prefix}/share/java/commons-collections.jar \
34                                        -Dcommons-pool.jar=${prefix}/share/java/commons-pool.jar
35
36destroot        {
37        xinstall -m 755 -d ${destroot}${prefix}/share/java \
38                ${destroot}${prefix}/share/doc
39        xinstall -m 644 \
40                ${worksrcpath}/dist/commons-dbcp.jar \
41                ${destroot}${prefix}/share/java/
42        file copy ${worksrcpath}/dist/docs ${destroot}${prefix}/share/doc/${name}
43        file attributes ${destroot}${prefix}/share/doc/${name} -permissions goa+r
44}
45
46platform darwin 10 {
47        build.args-append -Djavac.source=5
48        patchfiles-append patch-JDK-1.6.diff
49}
50
51livecheck.type  regex
52livecheck.url   http://commons.apache.org/downloads/download_dbcp.cgi
53livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"
Note: See TracBrowser for help on using the repository browser.