Ticket #2400: Portfile

File Portfile, 2.0 KB (added by arsptr@…, 20 years ago)

Portfile

Line 
1PortSystem          1.0
2
3name                xml-commons-resolver
4version                 1.1
5categories              java devel
6platforms               darwin
7maintainers             arankine@gmail.com
8description         Java library for XML entity resolution
9long_description    It is very common for web resources to be related to other resources. These \
10                    relationships are expressed using URIs, most often URLs. Relying on URLs to \
11                    directly identify resources to be retrieved often causes problems for end \
12                    users. One way to avoid these problems is to use an entity resolver (a standard \
13                    part of SAX) or a URI Resolver (a standard part of JAXP). A resolver can examine \
14                    the URIs of the resources being requested and determine how best to satisfy \
15                    those requests. The best way to make this function in an interoperable way is to \
16                    define a standard format for mapping system identifiers and URIs. These "catalog \
17                    files" can be used to map public and system identifiers and other URIs to local \
18                    files (or just other URIs). The XML Commons Resolver classes greatly simplify \
19                    the task of using catalog files to perform entity resolution.
20
21homepage            http://xml.apache.org/commons/components/resolver/index.html
22master_sites        apache
23master_sites.mirror_subdir xml/commons
24
25checksums           md5 deb95bdf88687430445d34e8c11d475e
26
27depends_lib         bin:java:kaffe
28depends_build       bin:ant:apache-ant
29
30use_configure       no
31
32build.cmd           ant
33build.args          -f resolver.xml
34build.target        jar
35
36destroot        {
37        xinstall -d -m 755 ${destroot}${prefix}/share/java/apache-ant/lib \
38                ${destroot}${prefix}/share/doc
39        xinstall -m 644 ${worksrcpath}/resolver.jar \
40                ${destroot}${prefix}/share/java/
41        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
42        system "cd ${destroot}${prefix}/share/java/apache-ant/lib/ && \
43                ln -sf ../../resolver.jar"
44}