# -*- 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 133078 2015-02-19 23:07:22Z robitaille@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-astropy version 1.0 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 http://pypi.python.org/packages/source/a/astropy/ distname astropy-${version} checksums md5 1f15b51eb7cbad3345a34770c87ef906 \ sha1 731a36d512c19e014b17e12b2289406ca019bfee \ rmd160 56a822afb14a90fcd4efc700daf6a3d68070a1b4 python.versions 26 27 33 34 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 post-destroot { file rename ${destroot}${prefix}/bin/fitscheck-${python.branch} \ ${destroot}${prefix}/bin/fitscheck-ap-${python.branch} file rename ${destroot}${prefix}/bin/fitsdiff-${python.branch} \ ${destroot}${prefix}/bin/fitsdiff-ap-${python.branch} file rename ${destroot}${prefix}/bin/fitsheader-${python.branch} \ ${destroot}${prefix}/bin/fitsheader-ap-${python.branch} file rename ${destroot}${prefix}/bin/volint-${python.branch} \ ${destroot}${prefix}/bin/volint-ap-${python.branch} file rename ${destroot}${prefix}/bin/fits2bitmap-${python.branch} \ ${destroot}${prefix}/bin/fits2bitmap-ap-${python.branch} file rename ${destroot}${prefix}/bin/samp_hub-${python.branch} \ ${destroot}${prefix}/bin/samp_hub-ap-${python.branch} file rename ${destroot}${prefix}/bin/wcslint-${python.branch} \ ${destroot}${prefix}/bin/wcslint-ap-${python.branch} } }