mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: r-mzr: Remove bundled copy of boost.
* gnu/packages/bioinformatics.scm (r-mzr)[source]: Remove boost source. [arguments]: Add build phase "use-system-boost" to link with our boost package and avoid building the bundled sources.
This commit is contained in:
parent
34b9675449
commit
15ca195979
1 changed files with 18 additions and 1 deletions
|
@ -8899,9 +8899,26 @@ (define-public r-mzr
|
|||
(uri (bioconductor-uri "mzR" version))
|
||||
(sha256
|
||||
(base32
|
||||
"1x3gp30sfxz2v3k3swih9kff9b2rvk7hzhnlkp6ywlnn2wgb0q8c"))))
|
||||
"1x3gp30sfxz2v3k3swih9kff9b2rvk7hzhnlkp6ywlnn2wgb0q8c"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
(delete-file-recursively "src/boost")
|
||||
#t))))
|
||||
(properties `((upstream-name . "mzR")))
|
||||
(build-system r-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'use-system-boost
|
||||
(lambda _
|
||||
(substitute* "src/Makevars"
|
||||
(("\\./boost/libs.*") "")
|
||||
(("ARCH_OBJS=" line)
|
||||
(string-append line
|
||||
"\nARCH_LIBS=-lboost_system -lboost_regex \
|
||||
-lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("boost" ,boost) ; use this instead of the bundled boost sources
|
||||
("netcdf" ,netcdf)))
|
||||
|
|
Loading…
Reference in a new issue