# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
PortGroup active_variants 1.1
categories-append science
maintainers {aronnax @lpsinger}
description Python language interface for HEALPix
Software for pixelization, hierarchical indexing, synthesis, analysis, and \
visualization of data on the sphere. This is the ${description}.
distname ${python.rootname}-${version}
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}/
homepage https://pypi.python.org/pypi/${python.rootname}/
checksums rmd160 44244d1d185db221f6968b18e3769d74c0b74ec6 \
sha256 ab82350016b72e794836c3955727493abec5fd0bf41fcbd8a014c4e4bdc3d324 \
python.versions 27 34 35 36 37
if {${name} ne ${subport}} {
variant openmp description "enable OpenMP parallel acceleration" {
# Pick a compiler that supports openmp
compiler.whitelist macports-clang-6.0 macports-clang-5.0 macports-clang-4.0 macports-clang-3.9 macports-clang-3.7 macports-gcc-7 macports-gcc-6 macports-gcc-5 macports-gcc-4.8 macports-gcc-4.7 macports-gcc-4.6 macports-gcc-4.5 macports-gcc-4.4 macports-gcc-4.3
compiler.fallback macports-clang-6.0
if {[variant_isset openmp]} {
require_active_variants healpix-cxx openmp
require_active_variants healpix-cxx "" openmp
depends_build port:pkgconfig \
port:py${python.version}-cython \
port:py${python.version}-pytest-runner \
port:py${python.version}-setuptools
depends_lib-append port:cfitsio \
port:py${python.version}-numpy \
port:py${python.version}-astropy \
port:py${python.version}-matplotlib \
port:py${python.version}-six \
# Regenerate Cython files
file delete ${worksrcpath}/healpy/src/_pixelfunc.cpp \
${worksrcpath}/healpy/src/_query_disc.cpp \
${worksrcpath}/healpy/src/_sphtools.cpp