# -*- 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 61823 2009-12-21 19:21:24Z ryandesign@macports.org $

PortSystem         1.0

name               weightwatcher
version            1.8.10
revision           1
categories         science
platforms          darwin
maintainers        saao.ac.za:tim
license            CeCILL

description        Astronomical software that produces control maps. 
long_description   WeightWatcher is a program that combines weight-maps, \
    flag-maps and polygon data in order to produce control maps which can \
    directly be used in astronomical image-processing packages like Swarp or \
    SExtractor.

homepage           http://www.astromatic.net/software/weightwatcher/
master_sites       ftp://ftp.iap.fr/pub/from_users/bertin/weightwatcher/
checksums          md5  ed49878bee90aaa2a46588b4312046d5 \
                   sha1  00c824fdc068299db04e48263558e1da223baeff \
                   rmd160  530b81d4b40354f85eb21bcd62b473457033ce4d

post-destroot {
    set docdir ${destroot}${prefix}/share/doc
    xinstall -d ${docdir}
    copy ${worksrcpath}/doc ${docdir}/${name}
    xinstall -m 644 -W ${worksrcpath} \
        README \
        AUTHORS \
        COPYRIGHT \
        ChangeLog \
        BUGS \
        HISTORY \
        THANKS \
        TODO \
        ${docdir}/${name}
}

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