# -*- 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 89517 2012-02-01 16:35:18Z robitaille@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

set realname        pyfits

name                py-${realname}
version             3.0.5
categories-append   science
platforms           darwin
maintainers         nomaintainer

python.versions     25 26 27 31 32
python.default_version 27

description         Python interface to FITS formatted files

long_description    PyFITS provides an interface to FITS formatted files \
                    under Python. It is useful both for interactive data \
                    analysis and for writing analysis scripts in Python \
                    using FITS files as either input or output. PyFITS is \
                    a development project of the Science Software Branch \
                    at the Space Telescope Science Institute.

homepage            http://www.stsci.edu/resources/software_hardware/pyfits
master_sites        http://pypi.python.org/packages/source/p/pyfits
distname            ${realname}-${version}

checksums           md5     522dcec3bfc605c536c1aa042e36c8ef \
                    sha1    aa39feabc33df9b9d738865fc1f4bd37be103ff2 \
                    rmd160  981b3b1ecbb85b0318fb46f0158245527dd5dd04

if {$subport != $name} {
    depends_lib-append  port:py${python.version}-numpy

    livecheck.type  none
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}/Download
    livecheck.regex     ${realname}-(\[0-9.\]+)\\.
}
