# -*- 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

PortSystem         1.0

name               weightwatcher
version            1.12
categories         science
platforms          darwin
maintainers        {aronnax @lpsinger} openmaintainer
license            GPL-3+

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       http://www.astromatic.net/download/weightwatcher/
checksums          md5     53929f8ec059482b5b1f7e60beb6fbf2 \
                   sha1    b5e57c608f709aab766117fe315b9103877eeb29 \
                   rmd160  72d9fe89614e8a716dd12d7f3233b73744e50b82

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
