# $Id: Portfile 70012 2010-07-26 11:20:36Z simon@macports.org $

PortSystem          1.0

name                rxp
version             1.4.8
categories          textproc
platforms           darwin
maintainers         nomaintainer
description         Validating XML parser written in C.
long_description    RXP is a validating XML parser written in C. \
                    The current version of RXP supports XML 1.1, Namespaces \
                    1.1, xml:id, and XML Catalogs.

homepage            http://www.cogsci.ed.ac.uk/~richard/rxp.html
master_sites        ftp://ftp.cogsci.ed.ac.uk/pub/richard/
checksums           md5 9131f22e11182819b2e1ee2722260a5b \
                    sha1 5bdb64be2f8b3ddec00fc197da6827d5f8351a6c \
                    rmd160 96648d9e41911ed0b9520f1b3498449de6f73e72
distname            ${name}-1.4.4

patchfiles          patch-1.4.8.diff

use_configure       no

destroot {
    # install the rxp binary:
    copy ${worksrcpath}/rxp ${destroot}${prefix}/bin/rxp
    # install the rxp man page:
    copy ${worksrcpath}/rxp.1 ${destroot}${prefix}/share/man/man1/rxp.1
}

livecheck.type      regex
livecheck.url       http://www.inf.ed.ac.uk/research/isdd/admin/package?view=1&id=80
livecheck.regex     "RXP version (\\d+(?:\\.\\d+)*)"
