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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-healpy |
---|
8 | version 0.10.2 |
---|
9 | categories python science |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | description Python wrapper for healpix |
---|
13 | long_description Python wrapper for healpix |
---|
14 | |
---|
15 | homepage http://code.google.com/p/healpy/ |
---|
16 | master_sites googlecode:healpy |
---|
17 | distname healpy-${version} |
---|
18 | checksums md5 c9561c318af1dedb6859de1436e98719 \ |
---|
19 | sha1 56006d7f38a6ce5d90f84a894d3721c7c574b1c5 \ |
---|
20 | rmd160 aa703d90fb23926469691773366e4628036e2068 |
---|
21 | |
---|
22 | python.versions 25 26 27 |
---|
23 | python.default_version 27 |
---|
24 | |
---|
25 | patchfiles patch-setup.py.diff |
---|
26 | |
---|
27 | if {${subport} != ${name}} { |
---|
28 | |
---|
29 | # Find a compiler that supports OpenMP |
---|
30 | if {${configure.compiler} == "clang"} { |
---|
31 | configure.compiler llvm-gcc-4.2 |
---|
32 | } |
---|
33 | |
---|
34 | if {${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 | # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2 |
---|
40 | configure.cxx ${prefix}/bin/g++-apple-4.2 |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | build.env-append CFITSIO_EXT_PREFIX=${prefix} \ |
---|
45 | CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp} \ |
---|
46 | LDSHARED="${configure.cc} -L${prefix}/lib -bundle -undefined dynamic_lookup" |
---|
47 | |
---|
48 | depends_lib-append port:py${python.version}-numpy \ |
---|
49 | port:py${python.version}-pyfits \ |
---|
50 | port:py${python.version}-matplotlib \ |
---|
51 | port:healpix |
---|
52 | |
---|
53 | } |
---|