[147962] trunk/dports/science/hdf5-18

takeshi at macports.org takeshi at macports.org
Thu Apr 21 07:05:57 PDT 2016


Revision: 147962
          https://trac.macports.org/changeset/147962
Author:   takeshi at macports.org
Date:     2016-04-21 07:05:57 -0700 (Thu, 21 Apr 2016)
Log Message:
-----------
hdf5-18: fix h5cc/h5pcc to respect env vars and quoted args

Modified Paths:
--------------
    trunk/dports/science/hdf5-18/Portfile

Added Paths:
-----------
    trunk/dports/science/hdf5-18/files/patch-tools-misc-h5cc.in.diff

Modified: trunk/dports/science/hdf5-18/Portfile
===================================================================
--- trunk/dports/science/hdf5-18/Portfile	2016-04-21 12:50:14 UTC (rev 147961)
+++ trunk/dports/science/hdf5-18/Portfile	2016-04-21 14:05:57 UTC (rev 147962)
@@ -9,7 +9,7 @@
 set realname        hdf5
 name                hdf5-18
 version             1.8.16
-revision            3
+revision            4
 categories          science
 maintainers         takeshi mmoll openmaintainer
 
@@ -45,7 +45,8 @@
 
 # Don't create dylibs with "-flat_namespace -undefined suppress" on
 # Yosemite and later (#44596).
-patchfiles          yosemite-libtool.patch
+patchfiles          yosemite-libtool.patch \
+                    patch-tools-misc-h5cc.in.diff
 
 # llvm-gcc-4.2 produced code fails type conversion tests
 # Upstream suggestion is use -O0. Clang-produced code passes all tests.

Added: trunk/dports/science/hdf5-18/files/patch-tools-misc-h5cc.in.diff
===================================================================
--- trunk/dports/science/hdf5-18/files/patch-tools-misc-h5cc.in.diff	                        (rev 0)
+++ trunk/dports/science/hdf5-18/files/patch-tools-misc-h5cc.in.diff	2016-04-21 14:05:57 UTC (rev 147962)
@@ -0,0 +1,25 @@
+--- tools/misc/h5cc.in.orig	2015-10-24 14:13:51.000000000 +0900
++++ tools/misc/h5cc.in	2016-04-21 22:28:31.000000000 +0900
+@@ -98,9 +98,6 @@
+ 
+ CC="${HDF5_CC:-$CCBASE}"
+ CLINKER="${HDF5_CLINKER:-$CLINKERBASE}"
+-CFLAGS="${HDF5_CFLAGS:-$CFLAGSBASE}"
+-CPPFLAGS="${HDF5_CPPFLAGS:-$CPPFLAGSBASE}"
+-LDFLAGS="${HDF5_LDFLAGS:-$LDFLAGSBASE}"
+ LIBS="${HDF5_LIBS:-$LIBSBASE}"
+ 
+ # If a static library is available, the default will be to use it.  If the only
+@@ -268,10 +265,12 @@
+       ;;
+     *\"*)
+       qarg="'"$arg"'"
++      compile_args="$compile_args $qarg"
+       allargs="$allargs $qarg"
+       ;;
+     *\'*)
+       qarg='\"'"$arg"'\"'
++      compile_args="$compile_args $qarg"
+       allargs="$allargs $qarg"
+       ;;
+     *)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160421/ee554059/attachment.html>


More information about the macports-changes mailing list