[90986] trunk/dports/python
aronnax at macports.org
aronnax at macports.org
Tue Mar 20 12:10:28 PDT 2012
Revision: 90986
https://trac.macports.org/changeset/90986
Author: aronnax at macports.org
Date: 2012-03-20 12:10:28 -0700 (Tue, 20 Mar 2012)
Log Message:
-----------
New port: py-healpy
Added Paths:
-----------
trunk/dports/python/py-healpy/
trunk/dports/python/py-healpy/Portfile
trunk/dports/python/py-healpy/files/
trunk/dports/python/py-healpy/files/patch-setup.py.diff
Added: trunk/dports/python/py-healpy/Portfile
===================================================================
--- trunk/dports/python/py-healpy/Portfile (rev 0)
+++ trunk/dports/python/py-healpy/Portfile 2012-03-20 19:10:28 UTC (rev 90986)
@@ -0,0 +1,53 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+
+name py-healpy
+version 0.10.2
+categories python science
+platforms darwin
+maintainers aronnax
+description Python wrapper for healpix
+long_description Python wrapper for healpix
+
+homepage http://code.google.com/p/healpy/
+master_sites googlecode:healpy
+distname healpy-${version}
+checksums md5 c9561c318af1dedb6859de1436e98719 \
+ sha1 56006d7f38a6ce5d90f84a894d3721c7c574b1c5 \
+ rmd160 aa703d90fb23926469691773366e4628036e2068
+
+python.versions 25 26 27
+python.default_version 27
+
+patchfiles patch-setup.py.diff
+
+if {${subport} != ${name}} {
+
+# Find a compiler that supports OpenMP
+if {${configure.compiler} == "clang"} {
+ configure.compiler llvm-gcc-4.2
+}
+
+if {${configure.compiler} == "gcc-4.0"} {
+ configure.compiler gcc-4.2
+ if {![file executable ${configure.cc}]} {
+ depends_build-append port:apple-gcc42
+ configure.compiler apple-gcc-4.2
+ # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
+ configure.cxx ${prefix}/bin/g++-apple-4.2
+ }
+}
+
+build.env-append CFITSIO_EXT_PREFIX=${prefix} \
+ CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp} \
+ LDSHARED="${configure.cc} -L${prefix}/lib -bundle -undefined dynamic_lookup"
+
+depends_lib-append port:py${python.version}-numpy \
+ port:py${python.version}-pyfits \
+ port:py${python.version}-matplotlib \
+ port:healpix
+
+}
Added: trunk/dports/python/py-healpy/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-healpy/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py-healpy/files/patch-setup.py.diff 2012-03-20 19:10:28 UTC (rev 90986)
@@ -0,0 +1,30 @@
+--- setup.py.orig 2011-07-05 07:21:47.000000000 -0700
++++ setup.py 2012-02-06 10:33:46.000000000 -0800
+@@ -134,16 +134,10 @@
+ healpix_cxx_inc = healpix_cxx_dir+'/include'
+ healpix_cxx_lib = healpix_cxx_dir+'/lib'
+
+-if sys.argv[1] != 'sdist':
+- compile_healpix_cxx(HEALPIX_TARGET)
+- if not ( isdir(healpix_cxx_dir+'/include') and
+- isdir(healpix_cxx_dir+'/lib') ):
+- raise IOError("No include and lib directory : needed for healpy !")
+-
+ ###############################################
+
+-library_dirs = [healpix_cxx_lib]
+-include_dirs = [numpy_inc, healpix_cxx_inc]
++library_dirs = []
++include_dirs = [numpy_inc]
+ extra_link = []
+
+ if 'CFITSIO_EXT_PREFIX' in os.environ:
+@@ -216,7 +210,7 @@
+ cmdclass = {'build_ext': build_ext},
+ ext_modules=[pixel_lib,spht_lib,hfits_lib,
+ Extension("healpy.pshyt", ["pshyt/pshyt."+ext],
+- include_dirs = [numpy_inc,healpix_cxx_inc],
++ include_dirs = [numpy_inc],
+ libraries = ['psht','gomp','fftpack','c_utils'],
+ library_dirs = library_dirs)
+ ],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120320/b945f8a1/attachment.html>
More information about the macports-changes
mailing list