# -*- 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$ PortSystem 1.0 PortGroup python 1.0 name py-astropy version 1.2 revision 4 maintainers robitaille dist_subdir ${name}/${version} categories-append science description A Community Python Library for Astronomy long_description The Astropy project is a common effort to develop \ a single core package for Astronomy. platforms darwin license BSD homepage http://www.astropy.org master_sites pypi:a/astropy/ distname astropy-${version} checksums md5 3a215762e1688c7d53bd32c78e7fa67a \ sha1 2fd4410b51d1e8b657ad9c101f8612fa505284f6 \ rmd160 ea9dad7b5124e6a577979f6e2c1a5f9fcbf0eeed python.versions 27 33 34 35 build.args-append --use-system-cfitsio \ --use-system-expat \ --use-system-wcslib \ --use-system-erfa if {${name} ne ${subport}} { depends_lib-append port:cfitsio \ port:expat \ port:wcslib \ port:erfa \ port:py${python.version}-numpy depends_build-append \ port:pkgconfig \ port:py${python.version}-setuptools # By default, astropy downloads an astropy-helpers package for setup.py. # The --offline and --no-git flags prevent this and use a bundled version. build.cmd ${python.bin} setup.py --no-user-cfg --offline --no-git destroot.cmd ${python.bin} setup.py --no-user-cfg --offline --no-git # Don't let the python portgroup create symlinks to the binaries, because # the python portgroup's post-destroot block will run before ours, so the # files won't have the right names yet, and the symlinks will be broken. python.link_binaries no post-destroot { # Don't conflict with files installed by py-pyfits. set ap_suffix -ap foreach bin {fitscheck fitsdiff fitsheader volint fits2bitmap samp_hub wcslint} { move ${destroot}${python.prefix}/bin/${bin} ${destroot}${python.prefix}/bin/${bin}${ap_suffix} ln -s ${python.prefix}/bin/${bin}${ap_suffix} ${destroot}${prefix}/bin/${bin}${ap_suffix}${python.link_binaries_suffix} } } }