# $Id: Portfile 86613 2011-10-29 19:28:03Z jmr@macports.org $

PortSystem      1.0

name            saxpath
version         1.0
categories      java devel textproc
license         Apache-1.1
platforms       darwin
maintainers     nomaintainer
description     simple Java API for XPath

long_description \
    The SAXPath project is a Simple API for XPath. SAXPath is analogous to SAX \
    in that the API abstracts away the details of parsing and provides a \
    simple event based callback interface.

homepage        http://saxpath.sourceforge.net/
master_sites    sourceforge

checksums       md5 cc95ecc7dfb689a29bd42323490ee702

depends_build   bin:ant:apache-ant
depends_lib     bin:java:kaffe

set worksrcdir  ${worksrcdir}-FCS

post-extract {
    file mkdir ${worksrcpath}/src/conf
    file copy ${filespath}/MANIFEST.MF ${worksrcpath}/src/conf
}

use_configure   no

build.cmd       ant
build.target    package

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/java \
        ${destroot}${prefix}/share/doc
    xinstall -m 644 ${worksrcpath}/build/saxpath.jar \
        ${destroot}${prefix}/share/java/
    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}

livecheck.regex {saxpath (\d+(?:\.\d+)*) FCS}
