1 | # $Id: Portfile 30199 2007-10-22 21:00:27Z jmpp@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name xercesj |
---|
6 | version 2.9.1 |
---|
7 | |
---|
8 | categories java textproc |
---|
9 | maintainers jberry@macports.org openmaintainer |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Apache Xerces 2 Java XML Parser |
---|
13 | long_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. |
---|
18 | homepage http://xml.apache.org/xerces-j/ |
---|
19 | |
---|
20 | distname Xerces-J-src.${version} |
---|
21 | distfiles ${distname}${extract.suffix} \ |
---|
22 | Xerces-J-tools.${version}${extract.suffix} |
---|
23 | |
---|
24 | master_sites apache:xml/xerces-j/ |
---|
25 | checksums ${distname}${extract.suffix} \ |
---|
26 | md5 e340cba4a2abf4f0f833488380821153 \ |
---|
27 | Xerces-J-tools.${version}${extract.suffix} \ |
---|
28 | md5 6b50c65f2c31d66bb258aa5be79b0e21 |
---|
29 | |
---|
30 | depends_build bin:ant:apache-ant |
---|
31 | depends_lib bin:java:kaffe |
---|
32 | |
---|
33 | worksrcdir xerces-[string map ". _" $version] |
---|
34 | set tools tools |
---|
35 | |
---|
36 | use_configure no |
---|
37 | |
---|
38 | build.cmd ant |
---|
39 | build.target jars docs javadocs |
---|
40 | build.env CLASSPATH=${tools}/xml-apis.jar:${tools}/xercesImpl.jar:${tools}/bin/xjavac.jar |
---|
41 | |
---|
42 | post-extract { |
---|
43 | file rename ${workpath}/tools ${worksrcpath}/ |
---|
44 | } |
---|
45 | |
---|
46 | destroot { |
---|
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 | } |
---|