Ticket #13016: Portfile

File Portfile, 1.5 KB (added by antoine@…, 16 years ago)

java/xercesj Portfile

Line 
1# $Id: Portfile 30199 2007-10-22 21:00:27Z jmpp@macports.org $
2
3PortSystem 1.0
4
5name                            xercesj
6version                         2.9.1
7
8categories                      java textproc
9maintainers                     jberry@macports.org openmaintainer
10platforms                       darwin
11
12description                     Apache Xerces 2 Java XML Parser
13long_description        The Xerces 2 Java Parser supports XML 1.0 Third Edition\; \
14                                        XML 1.1\; XML 1.1 Namespaces\; DOM Level 2 \
15                                        Core, Events, Traversal and Range\; \
16                                        SAX 2.0.1 Core and Extensions\; JAXP 1.2\; \
17                                        Schema 1.0 Structure and Datatypes.
18homepage                        http://xml.apache.org/xerces-j/
19
20distname                        Xerces-J-src.${version}
21distfiles                       ${distname}${extract.suffix} \
22                                        Xerces-J-tools.${version}${extract.suffix}
23
24master_sites            apache:xml/xerces-j/
25checksums                       ${distname}${extract.suffix} \
26                                                md5 e340cba4a2abf4f0f833488380821153 \
27                                        Xerces-J-tools.${version}${extract.suffix} \
28                                                md5 6b50c65f2c31d66bb258aa5be79b0e21
29
30depends_build           bin:ant:apache-ant
31depends_lib                     bin:java:kaffe
32                                       
33worksrcdir                      xerces-[string map ". _" $version]
34set tools                       tools
35
36use_configure           no
37
38build.cmd                       ant
39build.target            jars docs javadocs
40build.env                       CLASSPATH=${tools}/xml-apis.jar:${tools}/xercesImpl.jar:${tools}/bin/xjavac.jar
41
42post-extract {
43        file rename ${workpath}/tools ${worksrcpath}/
44}
45
46destroot        {
47        xinstall -m 755 -d ${destroot}${prefix}/share/java \
48                ${destroot}${prefix}/share/doc
49        xinstall -m 644 \
50                ${worksrcpath}/build/xml-apis.jar \
51                ${worksrcpath}/build/xercesImpl.jar \
52                ${destroot}${prefix}/share/java/
53        file copy ${worksrcpath}/build/docs ${destroot}${prefix}/share/doc/${name}
54}