Files

64 lines
2.1 KiB
Plaintext

PortSystem 1.0
PortGroup java 1.0
name xercesj
version 2.11.0
categories java textproc
license Apache-2 W3C
maintainers nomaintainer
platforms any
supported_archs noarch
description Apache Xerces 2 Java XML Parser
long_description The Xerces 2 Java Parser supports XML 1.0 Third Edition\; \
XML 1.1\; XML 1.1 Namespaces\; DOM Level 2 \
Core, Events, Traversal and Range\; \
SAX 2.0.1 Core and Extensions\; JAXP 1.2\; \
Schema 1.0 Structure and Datatypes.
homepage https://xerces.apache.org/xerces2-j/
distname Xerces-J-src.${version}
distfiles ${distname}${extract.suffix} \
Xerces-J-tools.${version}${extract.suffix}
master_sites apache:xerces/j/
checksums ${distname}${extract.suffix} \
rmd160 5ae4b52c2907e560aed36cdb146140fd4db05875 \
sha256 f59a5ef7b51bd883f2e9bda37a9360692e6c5e439b98d9b6ac1953e1f98b0680 \
Xerces-J-tools.${version}${extract.suffix} \
rmd160 a9469fb48b7ca23cced0bb68d0f424ad8209aed5 \
sha256 ff9a5e3a12b4bdad5a9238db03ed5a4709831d3e2c13fe53601163c374ad2051
depends_build bin:ant:apache-ant
depends_lib bin:java:kaffe
worksrcdir xerces-[string map ". _" $version]
set tools tools
patchfiles build.xml.patch \
patch-src_org_apache_html_dom_HTMLElementImpl.java-add-getContentDocument-DOM2-method.diff
# See #37217 and https://issues.apache.org/jira/browse/XERCESJ-983?page=all
# This patch might not be the best way to fix this issue, though.
use_configure no
build.cmd ant
build.target jars docs javadocs
build.env-append CLASSPATH=${tools}/xml-apis.jar:${tools}/xercesImpl.jar:${tools}/bin/xjavac.jar
post-extract {
file rename ${workpath}/tools ${worksrcpath}/
}
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/java \
${destroot}${prefix}/share/doc
xinstall -m 644 \
${worksrcpath}/build/xml-apis.jar \
${worksrcpath}/build/xercesImpl.jar \
${destroot}${prefix}/share/java/
file copy ${worksrcpath}/build/docs ${destroot}${prefix}/share/doc/${name}
}
livecheck.name Xerces2