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

Last change on this file was 154021, checked in by thibaut@…, 11 months ago

py-pyfits: add py35-pyfits subport

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 154021 2016-10-18 14:54:24Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           select 1.0
7
8set realname        pyfits
9
10name                py-${realname}
11version             3.3
12revision            4
13categories-append   science
14license             BSD
15platforms           darwin
16maintainers         aronnax openmaintainer
17
18python.versions     26 27 33 34 35
19
20description         Python interface to FITS formatted files
21
22long_description    PyFITS provides an interface to FITS formatted files \
23                    under Python. It is useful both for interactive data \
24                    analysis and for writing analysis scripts in Python \
25                    using FITS files as either input or output. PyFITS is \
26                    a development project of the Science Software Branch \
27                    at the Space Telescope Science Institute.
28
29homepage            http://www.stsci.edu/resources/software_hardware/${realname}
30master_sites        pypi:[string index ${realname} 0]/${realname}
31distname            ${realname}-${version}
32
33checksums           md5     0d4f3515bc714f48093578e96ca7219d \
34                    sha1    7cae2cd16695c094b82e067defd627e2da619b7d \
35                    rmd160  eb213cac6b26661cb563e0da3733d1d6592c8ab8
36
37# As suggested in README.txt, to build against an external cfitsio package,
38# delete cextern/cfitsio directory and comment out cextern/cfitsio/* lines
39# in setup.cfg.
40patch {
41    delete file ${worksrcpath}/cextern/cfitsio
42    reinplace -E -W ${worksrcpath} {s|\s*(cextern/cfitsio).*||} setup.cfg
43}
44
45if {${name} ne ${subport}} {
46    depends_lib-append  port:cfitsio \
47                        port:py${python.version}-numpy \
48                        port:py${python.version}-setuptools
49
50    livecheck.type  none
51} else {
52    livecheck.type      regex
53    livecheck.url       ${homepage}/Download
54    livecheck.regex     ${realname}-(\[0-9.\]+)\\.
55}
Note: See TracBrowser for help on using the repository browser.