# -*- 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 120320 2014-05-23 04:43:57Z aronnax@macports.org $

PortSystem         1.0

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

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       http://www.astromatic.net/download/stiff/
checksums          md5     2e742ed203c456242f8c5abbe7d2d1bc \
                   sha1    4554772a432d1f6c3779933c1971469b81526b14 \
                   rmd160  329cf7dc1fd89abcc594007aa91ad449ca62db3b

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
