You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
97 lines
3.8 KiB
Tcl
97 lines
3.8 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup compiler_blacklist_versions 1.0
|
|
PortGroup python 1.0
|
|
|
|
name py-astropy
|
|
version 4.2.1
|
|
revision 0
|
|
checksums rmd160 2af155ce04ea5b69b820b2d1b8cc5c2cac3875d2 \
|
|
sha256 ed483e472241153daec45f4b0c318c2c63d9f47305b78e6e63d32fc388c18427 \
|
|
size 7484524
|
|
|
|
maintainers {mps @Schamschula} openmaintainer
|
|
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
|
|
|
|
python.versions 27 35 36 37 38 39
|
|
|
|
# see https://trac.macports.org/ticket/48941
|
|
compiler.blacklist {*llvm-gcc42}
|
|
|
|
if {${name} ne ${subport}} {
|
|
|
|
if {${python.version} < 35} {
|
|
version 2.0.16
|
|
revision 1
|
|
checksums rmd160 52888f36460ed39d2bd6e3da2bdc63782569f21f \
|
|
sha256 9c067764f4119dd7bce3228b0b508d48ddad5d726c580b70215ee78baa2eb512 \
|
|
size 8357877
|
|
|
|
build.args-append --use-system-cfitsio \
|
|
--use-system-expat \
|
|
--use-system-wcslib \
|
|
--use-system-erfa
|
|
|
|
# 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
|
|
} elseif {${python.version} < 36} {
|
|
version 3.2.3
|
|
revision 1
|
|
checksums rmd160 1aa7495e0939513768b33d447fc2a7ceaa55683c \
|
|
sha256 47f00816c2978fdd10f448c8f0337d6dca7b8cbeaab4bf272b5fd37cb4b890d3 \
|
|
size 7964789
|
|
|
|
build.args-append --use-system-cfitsio \
|
|
--use-system-expat \
|
|
--use-system-wcslib \
|
|
--use-system-erfa
|
|
|
|
# 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
|
|
} else {
|
|
if {${python.version} < 37} {
|
|
epoch 1
|
|
version 4.1
|
|
revision 0
|
|
checksums rmd160 536dc3c4623dd24c4a7a5e19ec16f3ec554f53d3 \
|
|
sha256 a3bad6e1c2619135ad33e4d80452866eb9468f610bf00754da4001c63c1f7049 \
|
|
size 7835617
|
|
}
|
|
|
|
depends_build-append \
|
|
port:py${python.version}-extension-helpers \
|
|
port:py${python.version}-setuptools_scm \
|
|
port:py${python.version}-toml
|
|
|
|
depends_lib-append port:py${python.version}-pyobjc \
|
|
port:py${python.version}-pyerfa
|
|
}
|
|
|
|
depends_build-append \
|
|
port:pkgconfig \
|
|
port:py${python.version}-jinja2 \
|
|
port:py${python.version}-setuptools
|
|
|
|
depends_lib-append port:cfitsio \
|
|
port:expat \
|
|
port:wcslib \
|
|
port:erfa \
|
|
port:py${python.version}-numpy
|
|
}
|
|
|
|
dist_subdir ${name}/${version}
|
|
distname astropy-${version}
|