mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:26:21 +01:00
petsc: Move example code to "examples" output.
* gnu/packages/maths.scm (petsc)[arguments]: New 'move-examples' phase.
This commit is contained in:
parent
b26e4f26ff
commit
a3a99e27bb
1 changed files with 11 additions and 0 deletions
|
@ -1589,6 +1589,8 @@ (define-public petsc
|
||||||
"petsc-lite-" version ".tar.gz"))
|
"petsc-lite-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1lajbk3c29hnh83v6cbmm3a8wv6bdykh0p70kwrr4vrnizalk88s"))))
|
(base32 "1lajbk3c29hnh83v6cbmm3a8wv6bdykh0p70kwrr4vrnizalk88s"))))
|
||||||
|
(outputs '("out" ;libraries and headers
|
||||||
|
"examples")) ;~24MiB of examples
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python" ,python-2)))
|
`(("python" ,python-2)))
|
||||||
|
@ -1662,6 +1664,15 @@ (define-public petsc
|
||||||
"PETScBuildInternal.cmake"
|
"PETScBuildInternal.cmake"
|
||||||
;; Once installed, should uninstall with Guix
|
;; Once installed, should uninstall with Guix
|
||||||
"uninstall.py"))
|
"uninstall.py"))
|
||||||
|
#t)))
|
||||||
|
(add-after 'install 'move-examples
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(examples (assoc-ref outputs "examples"))
|
||||||
|
(exdir (string-append out "/share/petsc/examples"))
|
||||||
|
(exdir' (string-append examples "/share/petsc/examples")))
|
||||||
|
(copy-recursively exdir exdir')
|
||||||
|
(delete-file-recursively exdir)
|
||||||
#t))))))
|
#t))))))
|
||||||
(home-page "http://www.mcs.anl.gov/petsc")
|
(home-page "http://www.mcs.anl.gov/petsc")
|
||||||
(synopsis "Library to solve PDEs")
|
(synopsis "Library to solve PDEs")
|
||||||
|
|
Loading…
Reference in a new issue