source: trunk/dports/python/py-aplpy/Portfile

Last change on this file was 149538, checked in by robitaille@…, 13 months ago

py-aplpy: update to 1.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- 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
2# $Id: Portfile 149538 2016-06-25 08:33:16Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           APLpy
8set _n              [string index ${_name} 0]
9
10name                py-aplpy
11version             1.0
12categories-append   science
13platforms           darwin
14supported_archs     noarch
15license             MIT
16maintainers         robitaille stsci.edu:mperrin openmaintainer
17
18description         The Astronomical Plotting Library in Python
19long_description    \
20    APLpy (the Astronomical Plotting Library in Python) is a Python module \
21    aimed at producing publication-quality plots of astronomical imaging data \
22    in FITS format. The module uses Matplotlib, a powerful and interactive \
23    plotting package. It is capable of creating output files in several \
24    graphical formats, including EPS, PDF, PS, PNG, and SVG.
25
26homepage            http://aplpy.github.com/
27master_sites        pypi:${_n}/${_name}/
28distname            ${_name}-${version}
29
30checksums           md5     a660dc5a5e62536e32bf61e44a5eb6c8 \
31                    rmd160  7d98decf230c0ba9303aca8cc2b40c72a7a3cdef \
32                    sha256  09a8a24b46b93a1eacdbc0e6fd480fa38e4dd890a24963136d76185924602ff0
33
34python.versions     27 34
35
36if {${name} ne ${subport}} {
37
38    # By default, astropy downloads an astropy-helpers package for setup.py.
39    # The --offline and --no-git flags prevent this and use a bundled version.
40    build.cmd  ${python.bin} setup.py --no-user-cfg --offline --no-git
41    destroot.cmd  ${python.bin} setup.py --no-user-cfg --offline --no-git
42
43    depends_run-append  port:py${python.version}-numpy \
44                        port:py${python.version}-matplotlib \
45                        port:py${python.version}-astropy
46
47    variant rgb description {Include support for RGB images} {
48            depends_run-append  path:${python.pkgd}/PIL:py${python.version}-Pillow
49    }
50
51    variant avm description {Include support for AVM meta-data} {
52        depends_run-append  port:py${python.version}-pyavm
53    }
54
55    variant ds9 description {Include support for DS9 region files} {
56        depends_run-append  port:py${python.version}-pyregion
57    }
58
59    default_variants    +rgb +avm +ds9
60
61    livecheck.type  none
62} else {
63    livecheck.type  regex
64    livecheck.url   [lindex ${master_sites} 0]
65    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
66}
Note: See TracBrowser for help on using the repository browser.