# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 83385 2011-08-31 01:52:26Z dports@macports.org $

PortSystem         1.0

name               xpa
version            2.1.11
revision           1
categories         science
platforms          darwin
maintainers        saao.ac.za:tim
license            LGPL-2.1

description        The XPA messaging system provides seamless communication \
    between many kinds of Unix programs, including X programs and Tcl/Tk \
    programs.

long_description   XPA provides an easy way for users to communicate with \
    XPA-enabled programs by executing XPA client commands in the shell or \
    by utilizing such commands in scripts.  Because XPA works both at the \
    programming level and the shell level, it is a powerful tool for unifying \
    any analysis environment: users and programmers have great flexibility in \
    choosing the best level or levels at which to access XPA services, and \
    client access can be extended or modified easily at any time.

homepage           http://hea-www.harvard.edu/saord/xpa/
master_sites       http://hea-www.harvard.edu/saord/download/xpa/

checksums          md5 5af281bd1455739b3a15d949fdcc7adb \
                   sha1 39f7932e00a72d8da2e21ebbc7b19ca4f5adc2d1 \
                   rmd160 7515e4f2eb0b6a2715915ef8a8695453b8e0e9f8

patchfiles         patch-Makefile.in.diff

destroot.destdir   INSTALL_ROOT=${destroot}

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        COPYING \
        README \
        ${docdir}
    xinstall -m 644 -W ${worksrcpath}/doc \
        xpa.pdf \
        xpa.ps \
        ${docdir}
}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
