source: trunk/dports/java/dom4j/Portfile

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

Rewrite master_sites to avoid redirects

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 86978 2011-11-07 20:27:54Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                            dom4j
6version                         1.6.1
7revision                        1
8
9categories                      java
10maintainers                     nomaintainer
11platforms                       darwin
12
13description                     XML, XPATH, and XSLT support for Java.
14long_description        dom4j is an easy to use, open source library for working \
15                                        with XML, XPath and  XSLT on the Java platform using the \
16                                        Java Collections Framework and with full support for DOM, \
17                                        SAX and JAXP.
18homepage                        http://www.dom4j.org
19master_sites            sourceforge:project/dom4j/dom4j/${version}
20
21checksums                       md5 1e7ef6d20939315714de4a8502f27b2d
22
23depends_build           bin:ant:apache-ant
24depends_lib                     bin:java:kaffe \
25                                        port:junit
26                                       
27patchfiles                      patch-build.xml.diff
28
29use_configure           no
30
31build.cmd                       ant
32build.target            all
33build.args                      -Djunit.jar=${prefix}/share/java/junit.jar
34
35pre-patch {
36        # Convert build.xml to unix line feeds before we try to patch it
37        reinplace "s/\r$//g" ${worksrcpath}/build.xml
38}
39
40destroot {
41        xinstall -m 755 -d ${destroot}${prefix}/share/java \
42                ${destroot}${prefix}/share/doc
43        xinstall -m 644 ${worksrcpath}/build/${name}.jar \
44                ${destroot}${prefix}/share/java/
45        file copy ${worksrcpath}/build/doc ${destroot}${prefix}/share/doc/${name}
46}
47
48platform darwin 10 {
49        patchfiles-append patch-JDK-1.6.diff
50}
Note: See TracBrowser for help on using the repository browser.