[100523] trunk/dports/science/healpix
aronnax at macports.org
aronnax at macports.org
Fri Dec 14 12:13:14 PST 2012
Revision: 100523
https://trac.macports.org/changeset/100523
Author: aronnax at macports.org
Date: 2012-12-14 12:13:14 -0800 (Fri, 14 Dec 2012)
Log Message:
-----------
healpix: update to version 3.00
Modified Paths:
--------------
trunk/dports/science/healpix/Portfile
Removed Paths:
-------------
trunk/dports/science/healpix/files/
Modified: trunk/dports/science/healpix/Portfile
===================================================================
--- trunk/dports/science/healpix/Portfile 2012-12-14 19:54:17 UTC (rev 100522)
+++ trunk/dports/science/healpix/Portfile 2012-12-14 20:13:14 UTC (rev 100523)
@@ -4,70 +4,88 @@
PortSystem 1.0
name healpix
-version 2.20a
+set base_version 3.00
+version 3.00_2012Nov30
categories science
+license GPL-2
maintainers aronnax
description Hierarchical Equal Area isoLatitude Pixelization of a sphere
long_description Software for pixelization, hierarchical indexation, synthesis, \
analysis, and visualization of data on the sphere.
homepage http://healpix.jpl.nasa.gov/
platforms darwin
-master_sites sourceforge:project/${name}/Healpix_${version}
-worksrcdir Healpix_${version}
-distname Healpix_${version}_2011Feb09
+master_sites sourceforge:project/${name}/Healpix_${base_version}/
+distname Healpix_${version}
+worksrcdir Healpix_${base_version}
-checksums md5 e4d534505cd91cfea60719f620584b2f \
- sha1 f7a0fdab8e9fcfdf81e3e5e9a7d18912203d3803 \
- rmd160 e15b14262591a679764665d4d1774c38786a7a00
+checksums md5 92d400d3b9427dfa25cacbdfe218810a \
+ sha1 a8a507a47c0a129f5efaadd144b3b561dc79f663 \
+ rmd160 41febc7f9707b2285433f2a9949bafa92b529f6f
-universal_variant yes
+use_configure no
-depends_lib port:cfitsio
+subport ${name}-c {
+ build.dir ${worksrcpath}/src/C/subs
+ build.target static dynamic
+}
-patchfiles patch-src-cxx-cxxsupport-arr.h.diff
-use_configure no
+subport ${name}-cxx {
+ # Blacklist the following compilers that do not support OpenMP.
+ compiler.blacklist clang
-# Find a compiler that supports OpenMP. Courtesy of Adam Mercer.
-if {${configure.compiler} == "clang"} {
- configure.compiler llvm-gcc-4.2
+ build.dir ${worksrcpath}/src/cxx
+ build.target compile_all
+ destroot {}
}
-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
- }
-}
+if {${name} == ${subport}} {
+ supported_archs noarch
-build.post_args-append \
+ depends_run port:${name}-c \
+ port:${name}-cxx
+
+ distfiles
+
+ build {}
+
+ destroot {
+ xinstall -d ${destroot}${prefix}/share/doc/${subport}
+ system "echo ${subport} is a stub port > ${destroot}${prefix}/share/doc/${subport}/README.txt"
+ }
+
+ livecheck.regex {healpix/files/Healpix_([0-9]+\.[0-9]+[a-z]?)}
+} else {
+ depends_lib port:cfitsio
+
+ build.post_args-append \
HEALPIX_TARGET=osx \
- BINDIR=${worksrcpath}/bin \
- LIBDIR=${worksrcpath}/lib \
- INCDIR=${worksrcpath}/include \
+ BINDIR=${destroot}${prefix}/bin \
+ LIBDIR=${destroot}${prefix}/lib \
+ INCDIR=${destroot}${prefix}/include \
EXTERNAL_CFITSIO=yes \
CFITSIO_INCDIR=${prefix}/include \
CFITSIO_LIBDIR=${prefix}/lib \
CFITSIO_EXT_LIB=${prefix}/lib/libcfitsio.a \
CFITSIO_EXT_INC=${prefix}/include \
+ OPT="${configure.optflags}" \
CC="${configure.cc} [get_canonical_archflags cc]" \
CL="${configure.cc} [get_canonical_archflags ld]" \
CXX="${configure.cxx} [get_canonical_archflags cxx]" \
CXXL="${configure.cxx} [get_canonical_archflags ld]"
-build {
- system -W ${worksrcpath}/src/cxx "${build.cmd} [join ${build.post_args}]"
- system -W ${worksrcpath}/src/C/subs "${build.cmd} static install AR=\"ar -rsv\" [join ${build.post_args}]"
-}
+ destroot.post_args-append \
+ HEALPIX_TARGET=osx \
+ BINDIR=${destroot}${prefix}/bin \
+ LIBDIR=${destroot}${prefix}/lib \
+ INCDIR=${destroot}${prefix}/include
-post-build {
- # This file is just a copy of ${worksrcpath}/lib/libhpxgif.a
- # and conflicts with port:giflib.
- file delete ${worksrcpath}/lib/libgif.a
-}
+ pre-activate {
+ if {[file exists ${prefix}/lib/libchealpix.a]
+ && ![catch {set vers [lindex [registry_active healpix] 0]}]
+ && [vercmp [lindex $vers 1] 3.00] < 0} {
+ registry_deactivate_composite healpix "" [list ports_nodepcheck 1]
+ }
+ }
-destroot {
- eval xinstall [glob ${worksrcpath}/include/*] ${destroot}${prefix}/include
- eval xinstall [glob ${worksrcpath}/lib/*] ${destroot}${prefix}/lib
- eval xinstall [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin
+ livecheck.type none
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121214/ff464132/attachment.html>
More information about the macports-changes
mailing list