mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-01 00:52:55 -05:00
gnu: tophat: Hide default GCC.
* gnu/packages/bioinformatics.scm (tophat)[arguments]: Add build phase "hide-default-gcc".
This commit is contained in:
parent
c9a1672841
commit
bcdc61bfa1
1 changed files with 12 additions and 1 deletions
|
@ -1683,6 +1683,17 @@ (define-public tophat
|
||||||
'(#:parallel-build? #f ; not supported
|
'(#:parallel-build? #f ; not supported
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'set-paths 'hide-default-gcc
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((gcc (assoc-ref inputs "gcc")))
|
||||||
|
;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
|
||||||
|
;; conflicts with the GCC 5 input.
|
||||||
|
(setenv "CPLUS_INCLUDE_PATH"
|
||||||
|
(string-join
|
||||||
|
(delete (string-append gcc "/include/c++")
|
||||||
|
(string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
|
||||||
|
":"))
|
||||||
|
#t)))
|
||||||
(add-after 'unpack 'use-system-samtools
|
(add-after 'unpack 'use-system-samtools
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "src/Makefile.in"
|
(substitute* "src/Makefile.in"
|
||||||
|
@ -1705,7 +1716,7 @@ (define-public tophat
|
||||||
(("#include <sam.h>") "#include <samtools/sam.h>"))
|
(("#include <sam.h>") "#include <samtools/sam.h>"))
|
||||||
#t)))))
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("gcc" ,gcc-5))) ;; doesn't build with later versions
|
`(("gcc@5" ,gcc-5))) ;; doesn't build with later versions
|
||||||
(inputs
|
(inputs
|
||||||
`(("boost" ,boost)
|
`(("boost" ,boost)
|
||||||
("bowtie" ,bowtie)
|
("bowtie" ,bowtie)
|
||||||
|
|
Loading…
Reference in a new issue