source: trunk/dports/python/py-healpy/Portfile

Last change on this file was 153428, checked in by aronnax@…, 10 months ago

py-healpy: build with clang, now that it supports OpenMP

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- 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
2# $Id: Portfile 153428 2016-09-30 02:27:47Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6PortGroup               active_variants 1.1
7
8name                    py-healpy
9version                 1.9.1
10revision                4
11categories-append       science
12license                 GPL-2
13platforms               darwin
14maintainers             aronnax
15description             Python language interface for HEALPix
16long_description \
17  Software for pixelization, hierarchical indexing, synthesis, analysis, and \
18  visualization of data on the sphere. This is the ${description}.
19
20set basename            healpy
21distname                ${basename}-${version}
22master_sites            pypi:[string index ${basename} 0]/${basename}/
23homepage                http://pypi.python.org/pypi/${basename}/
24
25checksums               md5     5d1b082dce77e56023329496cecab48d \
26                        rmd160  0a3477447e212882875fcdd1d4d3c46264779df4 \
27                        sha256  b88fcd667e0bf474335811018cb97932b5f9d5575f22d2237b6707844a121c23
28
29python.versions         27 34 35
30
31if {${name} ne ${subport}} {
32
33    default_variants    +openmp
34
35    variant openmp description "enable OpenMP parallel acceleration" {
36        # Pick a compiler that supports openmp
37        compiler.whitelist macports-clang-3.9 macports-clang-3.8 macports-clang-3.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
38        compiler.fallback macports-clang-3.9
39    }
40
41    if {[variant_isset openmp]} {
42        require_active_variants healpix-cxx openmp
43    } else {
44        require_active_variants healpix-cxx "" openmp
45    }
46
47    depends_build       port:pkgconfig \
48                        port:py${python.version}-cython \
49                        port:py${python.version}-setuptools
50
51    depends_lib-append  port:cfitsio \
52                        port:py${python.version}-numpy \
53                        port:py${python.version}-astropy \
54                        port:py${python.version}-matplotlib \
55                        port:py${python.version}-six \
56                        port:healpix-cxx
57
58    livecheck.type      none
59
60} else {
61
62    livecheck.type      regex
63    livecheck.url       ${homepage}
64    livecheck.regex     {healpy-([0-9]+(\.[0-9]+)*)}
65
66}
Note: See TracBrowser for help on using the repository browser.