gnu: kicad: Fix build with Boost >= 1.68.

* gnu/packages/engineering.scm (kicad)[arguments]: Add phase 'adjust-boost-include'.
master
Marius Bakke 2018-12-02 18:33:57 +01:00
parent aefcdea199
commit 8aaec042d4
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 7 additions and 0 deletions

View File

@ -717,6 +717,13 @@ language.")
"-DBUILD_GITHUB_PLUGIN=OFF")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'adjust-boost-include
(lambda _
;; The location of this header changed in Boost 1.66.
(substitute* "3d-viewer/3d_cache/3d_cache.cpp"
(("boost/uuid/sha1\\.hpp")
"boost/uuid/detail/sha1.hpp"))
#t))
(add-after 'install 'wrap-program
;; Ensure correct Python at runtime.
(lambda* (#:key inputs outputs #:allow-other-keys)