summary refs log tree commit diff
path: root/gnu/packages/animation.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-09-23 07:40:39 +0200
committerRicardo Wurmus <rekado@elephly.net>2016-09-23 07:45:16 +0200
commit5989d4eaac8b1b98805d1e85df16f89690dc5b4e (patch)
tree3aeaac0848d61954d071b52983141bd52e0c9d0e /gnu/packages/animation.scm
parent56f33f3fd58ab5ad181aefd9cce2c72d06767803 (diff)
downloadguix-5989d4eaac8b1b98805d1e85df16f89690dc5b4e.tar.gz
gnu: synfig: Fix isnan error.
* gnu/packages/animation.scm (synfig)[arguments]: Add build phase to
replace "::isnan" with "std::isnan".
Diffstat (limited to 'gnu/packages/animation.scm')
-rw-r--r--gnu/packages/animation.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm
index 077657937d..8de1fbfaa8 100644
--- a/gnu/packages/animation.scm
+++ b/gnu/packages/animation.scm
@@ -91,6 +91,11 @@ C++ @dfn{Standard Template Library} (STL).")
             (substitute* "src/modules/mod_svg/svg_parser.cpp"
               (("xmlpp::Node::NodeList") "xmlpp::Node::const_NodeList"))
             #t))
+         (add-after 'unpack 'fix-isnan-error
+           (lambda _
+             (substitute* "src/synfig/time.cpp"
+               (("return !::isnan") "return !std::isnan"))
+             #t))
          (add-before 'configure 'set-flags
           (lambda _
             ;; Compile with C++11, required by libsigc++.