# -*- 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 154021 2016-10-18 14:54:24Z thibaut@macports.org $ PortSystem 1.0 PortGroup python 1.0 PortGroup select 1.0 set realname pyfits name py-${realname} version 3.3 revision 4 categories-append science license BSD platforms darwin maintainers aronnax openmaintainer python.versions 26 27 33 34 35 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/${realname} master_sites pypi:[string index ${realname} 0]/${realname} distname ${realname}-${version} checksums md5 0d4f3515bc714f48093578e96ca7219d \ sha1 7cae2cd16695c094b82e067defd627e2da619b7d \ rmd160 eb213cac6b26661cb563e0da3733d1d6592c8ab8 # As suggested in README.txt, to build against an external cfitsio package, # delete cextern/cfitsio directory and comment out cextern/cfitsio/* lines # in setup.cfg. patch { delete file ${worksrcpath}/cextern/cfitsio reinplace -E -W ${worksrcpath} {s|\s*(cextern/cfitsio).*||} setup.cfg } if {${name} ne ${subport}} { depends_lib-append port:cfitsio \ port:py${python.version}-numpy \ port:py${python.version}-setuptools livecheck.type none } else { livecheck.type regex livecheck.url ${homepage}/Download livecheck.regex ${realname}-(\[0-9.\]+)\\. }