# -*- 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 61819 2009-12-21 18:54:14Z ryandesign@macports.org $

PortSystem         1.0

name               stiff
version            1.12
categories         science
platforms          darwin
maintainers        saao.ac.za:tim
license            CeCILL

description        STIFF is a program to convert FITS images to TIFF format.

long_description   STIFF is a tool for converting FITS images to TIFF \
    format in a visually appealing, but perceptually accurate, way. \
    It is specifically designed to show faint detail in high-dynamic-range \
    data while still retaining colour information for bright objects. \
    It can create both 8-bit grayscale and 24-bit colour TIFF images.

homepage           http://www.astromatic.net/software/stiff/
master_sites       ftp://ftp.iap.fr/pub/from_users/bertin/stiff/
checksums          md5 fe93c7a172b122842ac7652e5cc6e70e \
                   sha1 b78a2b3b0f0e1aefab1f47ac41b47fdf0bf9f073 \
                   rmd160 e580abcbabb07bf7b39b41ed6fd7b1d50cb4239b

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

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