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

PortSystem         1.0

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

description        Program that resample and co-adds FITS images
long_description   SWarp is a program that resamples and co-adds together \
    FITS images using any arbitrary astrometric projection defined in the \
    WCS standard.

homepage           http://www.astromatic.net/software/swarp/
master_sites       ftp://ftp.iap.fr/pub/from_users/bertin/swarp/
checksums          md5 ad8e99461fac011bef963eb1461886c6 \
                   sha1 4656f6010926936b248080da2bbcf38e5cd1c22c \
                   rmd160 2358756922918b49cc52367eac9e316f3598615c

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