source: trunk/dports/java/xml-commons-resolver/Portfile

Last change on this file was 50984, checked in by and.damore@…, 8 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                xml-commons-resolver
6version                 1.1
7
8categories              java devel
9platforms               darwin
10maintainers             gmail.com:arankine
11
12description         Java library for XML entity resolution
13long_description    It is very common for web resources to be related to other resources. These \
14                    relationships are expressed using URIs, most often URLs. Relying on URLs to \
15                    directly identify resources to be retrieved often causes problems for end \
16                    users. One way to avoid these problems is to use an entity resolver (a standard \
17                    part of SAX) or a URI Resolver (a standard part of JAXP). A resolver can examine \
18                    the URIs of the resources being requested and determine how best to satisfy \
19                    those requests. The best way to make this function in an interoperable way is to \
20                    define a standard format for mapping system identifiers and URIs. These "catalog \
21                    files" can be used to map public and system identifiers and other URIs to local \
22                    files (or just other URIs). The XML Commons Resolver classes greatly simplify \
23                    the task of using catalog files to perform entity resolution.
24homepage            http://xml.apache.org/commons/components/resolver/index.html
25
26master_sites        apache
27master_sites.mirror_subdir xml/commons
28
29checksums           md5 deb95bdf88687430445d34e8c11d475e
30
31depends_lib         bin:java:kaffe
32depends_build       bin:ant:apache-ant
33
34use_configure       no
35
36post-patch {
37        # Allow to compile on javac 1.5
38        reinplace "s|<javac|<javac source='1.4'|" ${worksrcpath}/resolver.xml
39}
40
41build.cmd           ant
42build.args          -f resolver.xml
43build.target        jar
44
45destroot {
46        xinstall -d -m 755 \
47                ${destroot}${prefix}/share/java/apache-ant/lib \
48                ${destroot}${prefix}/share/doc
49               
50        xinstall -m 644 ${worksrcpath}/resolver.jar \
51                ${destroot}${prefix}/share/java/
52               
53        file copy ${worksrcpath}/docs \
54                ${destroot}${prefix}/share/doc/${name}
55               
56        system "cd ${destroot}${prefix}/share/java/apache-ant/lib/ && \
57                ln -sf ../../resolver.jar"
58}
Note: See TracBrowser for help on using the repository browser.