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

Last change on this file since 91372 was 91372, checked in by ryandesign@…, 5 years ago

Set svn:eol-style to native

  • Property svn:eol-style set to native
File size: 1.7 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$
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    py-healpy
8version                 0.10.2
9categories              python science
10platforms               darwin
11maintainers             aronnax
12description             Python wrapper for healpix
13long_description        Python wrapper for healpix
14
15homepage                http://code.google.com/p/healpy/
16master_sites            googlecode:healpy
17distname                healpy-${version}
18checksums               md5     c9561c318af1dedb6859de1436e98719 \
19                        sha1    56006d7f38a6ce5d90f84a894d3721c7c574b1c5 \
20                        rmd160  aa703d90fb23926469691773366e4628036e2068
21
22python.versions         25 26 27
23python.default_version  27
24
25if {${subport} != ${name}} {
26
27patchfiles              patch-setup.py.diff
28
29# Find a compiler that supports OpenMP
30if {${configure.compiler} == "clang"} {
31   configure.compiler llvm-gcc-4.2
32}
33
34if {${configure.compiler} == "gcc-4.0"} {
35   configure.compiler gcc-4.2
36   if {![file executable ${configure.cc}]} {
37       depends_build-append port:apple-gcc42
38       configure.compiler apple-gcc-4.2
39   }
40}
41
42build.env-append        CFITSIO_EXT_PREFIX=${prefix} \
43                        CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp} \
44                        LDSHARED="${configure.cc} -L${prefix}/lib -bundle -undefined dynamic_lookup"
45
46depends_lib-append      port:py${python.version}-numpy \
47                        port:py${python.version}-pyfits \
48                        port:py${python.version}-matplotlib \
49                        port:healpix
50
51}
Note: See TracBrowser for help on using the repository browser.