# -*- 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 120322 2014-05-23 04:44:47Z aronnax@macports.org $

PortSystem         1.0

name               swarp
version            2.38.0
categories         science
platforms          darwin
maintainers        saao.ac.za:tim
license            GPL-3+

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       http://www.astromatic.net/download/swarp/
checksums          md5     2efd230f5951ca95252f934a114356bf \
                   sha1    fe21463a64f225224267e7408468a33aeec5b7e9 \
                   rmd160  6bfc75f5aa49a7ea8e96419ccf4f9f4be2a6df2c

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
