# -*- 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                missfits
version             2.8.0
categories          science
platforms           darwin
maintainers         {aronnax @lpsinger} openmaintainer
license             GPL-3+

description         MissFITS is a program that performs basic \
                    maintenance and packaging tasks on FITS files.

long_description    MissFITS uses its own optimized library to \
  perform basic maintenance and packaging tasks on FITS files. The \
  operations include adding/editing header keywords, \
  splitting/joining multi-extension-FITS (MEF) files, \
  packing/unpacking data cubes, and calculating/manipulating FITS \
  checksums. Its syntax is similar to that of other astromatic.net \
  tools like sextractor and swarp.

homepage            http://www.astromatic.net/software/missfits/
master_sites        http://www.astromatic.net/download/missfits/
checksums           md5     d84959e0e6d7bd8da6a6aa464eb773eb \
                    sha1    10a4b17302c011b76db9db526d59a6737401a96d \
                    rmd160  ac07fe9c70afa935ffe7a1b82bfe0847af41cf0f

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 \
        THANKS \
        ${docdir}/${name}
}

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