You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
57 lines
2.2 KiB
Plaintext
57 lines
2.2 KiB
Plaintext
PortSystem 1.0
|
|
|
|
name xml-commons-resolver
|
|
version 1.1
|
|
|
|
categories java devel
|
|
platforms darwin
|
|
maintainers nomaintainer
|
|
|
|
description Java library for XML entity resolution
|
|
long_description It is very common for web resources to be related to other resources. These \
|
|
relationships are expressed using URIs, most often URLs. Relying on URLs to \
|
|
directly identify resources to be retrieved often causes problems for end \
|
|
users. One way to avoid these problems is to use an entity resolver (a standard \
|
|
part of SAX) or a URI Resolver (a standard part of JAXP). A resolver can examine \
|
|
the URIs of the resources being requested and determine how best to satisfy \
|
|
those requests. The best way to make this function in an interoperable way is to \
|
|
define a standard format for mapping system identifiers and URIs. These "catalog \
|
|
files" can be used to map public and system identifiers and other URIs to local \
|
|
files (or just other URIs). The XML Commons Resolver classes greatly simplify \
|
|
the task of using catalog files to perform entity resolution.
|
|
homepage http://xml.apache.org/commons/components/resolver/index.html
|
|
|
|
master_sites apache
|
|
master_sites.mirror_subdir xml/commons
|
|
|
|
checksums md5 deb95bdf88687430445d34e8c11d475e
|
|
|
|
depends_lib bin:java:kaffe
|
|
depends_build bin:ant:apache-ant
|
|
|
|
use_configure no
|
|
|
|
post-patch {
|
|
# Allow to compile on javac 1.5
|
|
reinplace "s|<javac|<javac source='1.4'|" ${worksrcpath}/resolver.xml
|
|
}
|
|
|
|
build.cmd ant
|
|
build.args -f resolver.xml
|
|
build.target jar
|
|
|
|
destroot {
|
|
xinstall -d -m 755 \
|
|
${destroot}${prefix}/share/java/apache-ant/lib \
|
|
${destroot}${prefix}/share/doc
|
|
|
|
xinstall -m 644 ${worksrcpath}/resolver.jar \
|
|
${destroot}${prefix}/share/java/
|
|
|
|
file copy ${worksrcpath}/docs \
|
|
${destroot}${prefix}/share/doc/${name}
|
|
|
|
system "cd ${destroot}${prefix}/share/java/apache-ant/lib/ && \
|
|
ln -sf ../../resolver.jar"
|
|
}
|