gnu: libfive: Fix build.
* gnu/packages/engineering.scm (libfive)[source]: Remove snippet. [arguments]: Remove custom phase to find catch's header. [native-inputs]: Remove catch-framework2.
This commit is contained in:
parent
56c39a07c8
commit
d2ec1f8ed6
1 changed files with 1 additions and 14 deletions
|
@ -766,12 +766,7 @@ fonts to gEDA.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0ryv2hcbrwqc087w7rrs4a2irkcpmqync00g4dh8n7jn10w2jkim"))
|
"0ryv2hcbrwqc087w7rrs4a2irkcpmqync00g4dh8n7jn10w2jkim"))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))))
|
||||||
(snippet
|
|
||||||
;; Remove bundled catch since we provide our own.
|
|
||||||
'(begin
|
|
||||||
(delete-file "libfive/test/catch.hpp")
|
|
||||||
#t))))
|
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "libfive-test"
|
`(#:test-target "libfive-test"
|
||||||
|
@ -780,19 +775,11 @@ fonts to gEDA.")
|
||||||
(add-after 'unpack 'remove-native-compilation
|
(add-after 'unpack 'remove-native-compilation
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "CMakeLists.txt" (("-march=native") ""))
|
(substitute* "CMakeLists.txt" (("-march=native") ""))
|
||||||
#t))
|
|
||||||
(add-after 'unpack 'find-catch
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(setenv "CPLUS_INCLUDE_PATH"
|
|
||||||
(string-append (assoc-ref inputs "catch")
|
|
||||||
"/include/catch2:"
|
|
||||||
(or (getenv "CPLUS_INCLUDE_PATH") "")))
|
|
||||||
#t)))))
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("boost" ,boost)
|
`(("boost" ,boost)
|
||||||
("catch" ,catch-framework2)
|
|
||||||
("libpng" ,libpng)
|
("libpng" ,libpng)
|
||||||
("qtbase" ,qtbase)
|
("qtbase" ,qtbase)
|
||||||
("eigen" ,eigen)
|
("eigen" ,eigen)
|
||||||
|
|
Reference in a new issue