# -*- 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 90838 2012-03-15 16:01:27Z robitaille@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-aplpy
version             0.9.8
maintainers         robitaille stsci.edu:mperrin

categories-append   science
description         The Astronomical Plotting Library in Python
long_description    APLpy (the Astronomical Plotting Library in Python) is a \
                    Python module aimed at producing publication-quality plots \
                    of astronomical imaging data in FITS format. The module \
                    uses Matplotlib, a powerful and interactive plotting \
                    package. It is capable of creating output files in several \
                    graphical formats, including EPS, PDF, PS, PNG, and SVG.

platforms           darwin
license             MIT

homepage            http://aplpy.github.com/
master_sites        http://cloud.github.com/downloads/aplpy/aplpy/
distname            APLpy-${version}
checksums           md5     a93848f72951e3114c5b7a618750ca82 \
                    sha1    358823f0381bfc9ce86e9bd606e3f2a6b6692557 \
                    rmd160  2c823655aeb251206ce37594bb104d634e3ee977

python.versions     25 26 27
python.default_version 27

if {$subport != $name} {

    depends_run-append  port:py${python.version}-numpy \
                        port:py${python.version}-pyfits \
                        port:py${python.version}-pywcs \
                        port:py${python.version}-matplotlib \

    variant rgb description {Include support for RGB images} {
        depends_run-append  port:py${python.version}-pil
    }

    variant avm description {Include support for AVM meta-data} {
        depends_run-append  port:py${python.version}-pyavm
    }

    variant ds9 description {Include support for DS9 region files} {
        depends_run-append  port:py${python.version}-pyregion
    }

    variant montage description {Include support for Montage reprojection} {
        depends_run-append  port:py${python.version}-montage
    }

    default_variants    +rgb +avm +ds9

}
