gnu: tbb: Use modify-phases syntax.

* gnu/packages/tbb.scm (tbb)[arguments]: Use "modify-phases" syntax.
This commit is contained in:
Ricardo Wurmus 2016-09-26 12:08:13 +02:00
parent af8de20386
commit 7f5ca399bf
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC

View File

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
;;;
;;; This file is part of GNU Guix.
@ -49,15 +49,15 @@
`(#:test-target "test"
#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out") "/lib"))
#:phases (alist-replace
'configure
#:phases
(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "build/linux.gcc.inc"
(("LIB_LINK_FLAGS =")
(string-append "LIB_LINK_FLAGS = -Wl,-rpath="
(assoc-ref outputs "out") "/lib"))))
(alist-replace
'install
(assoc-ref outputs "out") "/lib")))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((doc (string-append
(assoc-ref outputs "doc") "/doc"))
@ -76,8 +76,7 @@
(copy-recursively "doc" doc)
(copy-recursively "examples" examples)
(copy-recursively "include" include)
#t))
%standard-phases))))
#t))))))
(home-page "https://www.threadingbuildingblocks.org")
(synopsis "C++ library for parallel programming")
(description