[113896] trunk/dports/math/gnudatalanguage
takeshi at macports.org
takeshi at macports.org
Mon Nov 25 03:27:29 PST 2013
Revision: 113896
https://trac.macports.org/changeset/113896
Author: takeshi at macports.org
Date: 2013-11-25 03:27:29 -0800 (Mon, 25 Nov 2013)
Log Message:
-----------
gnudatalanguage: enable build on Mavericks, closing #40988
Modified Paths:
--------------
trunk/dports/math/gnudatalanguage/Portfile
Added Paths:
-----------
trunk/dports/math/gnudatalanguage/files/
trunk/dports/math/gnudatalanguage/files/patch-src-gsl_fun.cpp.diff
Modified: trunk/dports/math/gnudatalanguage/Portfile
===================================================================
--- trunk/dports/math/gnudatalanguage/Portfile 2013-11-25 07:48:18 UTC (rev 113895)
+++ trunk/dports/math/gnudatalanguage/Portfile 2013-11-25 11:27:29 UTC (rev 113896)
@@ -54,6 +54,8 @@
port:eigen3
conflicts_build antlr
+patchfiles patch-src-gsl_fun.cpp.diff
+
post-patch {
# Avoid using heimdal's broken fnmatch.h
reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/src/file.cpp
@@ -143,24 +145,6 @@
# #configure.env-append LDFLAGS=\"-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib\"
}
-platform darwin {
- if {${os.major} >= 13} {
- # The python variants don't work. With them disabled, we still fail with:
- # Also fails with them disabled:
- # gdl-0.9.3/src/gsl_fun.cpp:3772:9: error:
- # no viable overloaded '*='
- # res[j] *= exp(complex<T_phi>(0., m * phi[j * step_phi]));
- # ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- depends_lib
- depends_run
- pre-fetch {
- ui_error "$name does not build on Mavericks or later."
- error "unsupported platform"
- }
- }
-}
-
if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
configure.args-delete -DPYTHON=OFF
configure.args-append -DPYTHON=ON
Added: trunk/dports/math/gnudatalanguage/files/patch-src-gsl_fun.cpp.diff
===================================================================
--- trunk/dports/math/gnudatalanguage/files/patch-src-gsl_fun.cpp.diff (rev 0)
+++ trunk/dports/math/gnudatalanguage/files/patch-src-gsl_fun.cpp.diff 2013-11-25 11:27:29 UTC (rev 113896)
@@ -0,0 +1,12 @@
+https://sourceforge.net/p/gnudatalanguage/bugs/577/
+--- src/gsl_fun.cpp.orig 2013-09-24 10:52:22.000000000 -0500
++++ src/gsl_fun.cpp 2013-11-24 18:54:48.000000000 -0600
+@@ -3889,7 +3889,7 @@
+ res[j] = sign * sphPlm.val;
+ */
+ res[j] = sign * gsl_sf_legendre_sphPlm(l, abs(m), cos(theta[j * step_theta]));
+- res[j] *= exp(complex<T_phi>(0., m * phi[j * step_phi]));
++ res[j] *= T_res(std::exp(complex<T_phi>(0., m * phi[j * step_phi])));
+ }
+ }
+ template <class T_phi, class T_res>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131125/1d9d2161/attachment.html>
More information about the macports-changes
mailing list