mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: fenics-dolfin: Update to 2019.1.0.post0.
* gnu/packages/simulation.scm (fenics-dolfin): Update to 2019.1.0.post0. [source](snippet): Remove three substitutions that are no longer needed. [native-inputs]: Use compatible version of CATCH. [arguments]: Use CMAKE version 3.15.5 to avoid EXCLUDE_FROM_ALL regression. See <https://issues.guix.gnu.org/issue/38060>.
This commit is contained in:
parent
ec8dff8980
commit
09ecd9a794
1 changed files with 7 additions and 26 deletions
|
@ -431,7 +431,7 @@ (define-public python-fenics-ffc
|
|||
(define-public fenics-dolfin
|
||||
(package
|
||||
(name "fenics-dolfin")
|
||||
(version "2018.1.0.post1")
|
||||
(version "2019.1.0.post0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
|
@ -441,7 +441,7 @@ (define-public fenics-dolfin
|
|||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"12zkk8j3xsg6l8p0ggwsl03084vlcivw4h99b7z9kndg7k89b3ya"))
|
||||
"1m91hwcq5gfj4qqswp8l8kj58nia48f0n4kq13w0xqj4biq7rla0"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
|
@ -452,30 +452,10 @@ (define-public fenics-dolfin
|
|||
(("#include.*")
|
||||
"#include <catch.hpp>\n"))
|
||||
(substitute* "test/unit/cpp/CMakeLists.txt"
|
||||
;; Add extra include directories required by the unit tests.
|
||||
(("(^target_link_libraries.*)" line)
|
||||
(string-append line "\n"
|
||||
"target_include_directories("
|
||||
"unittests PRIVATE "
|
||||
"${DOLFIN_SOURCE_DIR} "
|
||||
"${DOLFIN_SOURCE_DIR}/dolfin "
|
||||
"${DOLFIN_BINARY_DIR})\n"))
|
||||
;; Specify directory to find the header file.
|
||||
(("(^set\\(CATCH_INCLUDE_DIR ).*(/catch\\))" _ front back)
|
||||
(string-append front
|
||||
"$ENV{CATCH_DIR}"
|
||||
"/include" back "\n")))
|
||||
(substitute* "demo/CMakeLists.txt"
|
||||
;; Add extra include directories required by the demo tests.
|
||||
(("(^#find_package.*)" line)
|
||||
(string-append line "\n"
|
||||
"include_directories("
|
||||
"${DOLFIN_SOURCE_DIR} "
|
||||
"${DOLFIN_SOURCE_DIR}/dolfin "
|
||||
"${DOLFIN_BINARY_DIR})\n")))
|
||||
(substitute* "dolfin/nls/PETScSNESSolver.cpp"
|
||||
;; Remove SNESTEST mapping. The SNESTEST symbol was removed
|
||||
;; from PETSc at version 3.10.3.
|
||||
((".*SNESTEST.*") "" ))
|
||||
"$ENV{CATCH_DIR}/include" back "\n")))
|
||||
#t))))
|
||||
(build-system cmake-build-system)
|
||||
(inputs
|
||||
|
@ -492,14 +472,15 @@ (define-public fenics-dolfin
|
|||
("sundials" ,sundials-openmpi)
|
||||
("zlib" ,zlib)))
|
||||
(native-inputs
|
||||
`(("catch" ,catch-framework2)
|
||||
`(("catch" ,catch-framework2-1)
|
||||
("pkg-config" ,pkg-config)))
|
||||
(propagated-inputs
|
||||
`(("ffc" ,python-fenics-ffc)
|
||||
("petsc" ,petsc-openmpi)
|
||||
("slepc" ,slepc-openmpi)))
|
||||
(arguments
|
||||
`(#:configure-flags
|
||||
`(#:cmake ,cmake-3.15.5
|
||||
#:configure-flags
|
||||
`("-DDOLFIN_ENABLE_DOCS:BOOL=OFF"
|
||||
"-DDOLFIN_ENABLE_HDF5:BOOL=ON"
|
||||
"-DDOLFIN_ENABLE_MPI:BOOL=ON"
|
||||
|
|
Loading…
Reference in a new issue