# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem              1.0
PortGroup               python 1.0

name                    py-astlib
version                 0.8.0
categories              python science
platforms               darwin
maintainers             {aronnax @lpsinger} openmaintainer
license                 LGPL-2.1
description             python modules for research astronomers
long_description \
    astLib is a set of python modules that provides some tools for research \
    astronomers. It can be used for simple plots, statistics, common \
    calculations, coordinate conversions, and manipulating FITS images with \
    World Coordinate System (WCS) information.

homepage                http://astlib.sourceforge.net
master_sites            sourceforge:astlib
distname                astLib-${version}
checksums               md5     50871e614a04cded84bcfcc555dc9121 \
                        sha1    cbd999f87773002e471bd165927c2ee124a5515f \
                        rmd160  e4a82b9e86c9e5ea7f8f8bf9b3b1a35d4183a86e

python.versions         27 34 35 36

if {${name} ne ${subport}} {

    depends_lib-append  port:py${python.version}-setuptools \
                        path:${python.pkgd}/pyfits:py${python.version}-astropy \
                        port:py${python.version}-numpy \
                        port:py${python.version}-scipy \
                        port:py${python.version}-matplotlib \
                        path:${python.pkgd}/PIL:py${python.version}-Pillow

}

if {${name} eq ${subport}} {
    # Some version numbers were assigned out of order
    livecheck.regex     {/astlib/0.15/|/astlib/0.17/|/astlib/0.17.1/|/astlib/([a-zA-Z0-9.]+\.[a-zA-Z0-9.]+)/}
} else {
    livecheck.type      none
}