summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2015-12-15 11:01:03 -0600
committerLudovic Courtès <ludo@gnu.org>2016-01-12 20:53:14 +0100
commit3abe8136fddf5bed75219bcb8a552004f078560a (patch)
tree6101fad659ead61a6f59ab2834ab2c49c7fb46e1
parentbb251307642242bb9174e9c4d89909ca40926d67 (diff)
gnu: boost: Use modify-phases.
* gnu/packages/boost.scm (boost)[arguments]: Use modify-phases.
-rw-r--r--gnu/packages/boost.scm47
1 files changed, 23 insertions, 24 deletions
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index d3b171245db..d3d0c0339a4 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -67,34 +67,33 @@
67 '())))) 67 '()))))
68 `(#:tests? #f 68 `(#:tests? #f
69 #:phases 69 #:phases
70 (alist-replace 70 (modify-phases %standard-phases
71 'configure 71 (replace
72 (lambda* (#:key outputs #:allow-other-keys) 72 'configure
73 (let ((out (assoc-ref outputs "out"))) 73 (lambda* (#:key outputs #:allow-other-keys)
74 (substitute* '("libs/config/configure" 74 (let ((out (assoc-ref outputs "out")))
75 "libs/spirit/classic/phoenix/test/runtest.sh" 75 (substitute* '("libs/config/configure"
76 "tools/build/doc/bjam.qbk" 76 "libs/spirit/classic/phoenix/test/runtest.sh"
77 "tools/build/src/engine/execunix.c" 77 "tools/build/doc/bjam.qbk"
78 "tools/build/src/engine/Jambase" 78 "tools/build/src/engine/execunix.c"
79 "tools/build/src/engine/jambase.c") 79 "tools/build/src/engine/Jambase"
80 (("/bin/sh") (which "sh"))) 80 "tools/build/src/engine/jambase.c")
81 81 (("/bin/sh") (which "sh")))
82 (setenv "SHELL" (which "sh"))
83 (setenv "CONFIG_SHELL" (which "sh"))
84 82
85 (zero? (system* "./bootstrap.sh" 83 (setenv "SHELL" (which "sh"))
86 (string-append "--prefix=" out) 84 (setenv "CONFIG_SHELL" (which "sh"))
87 "--with-toolset=gcc"))))
88 (alist-replace
89 'build
90 (lambda* (#:key outputs #:allow-other-keys)
91 (zero? (system* "./b2" ,@build-flags)))
92 85
93 (alist-replace 86 (zero? (system* "./bootstrap.sh"
87 (string-append "--prefix=" out)
88 "--with-toolset=gcc")))))
89 (replace
90 'build
91 (lambda* (#:key outputs #:allow-other-keys)
92 (zero? (system* "./b2" ,@build-flags))))
93 (replace
94 'install 94 'install
95 (lambda* (#:key outputs #:allow-other-keys) 95 (lambda* (#:key outputs #:allow-other-keys)
96 (zero? (system* "./b2" "install" ,@build-flags))) 96 (zero? (system* "./b2" "install" ,@build-flags))))))))
97 %standard-phases))))))
98 97
99 (home-page "http://boost.org") 98 (home-page "http://boost.org")
100 (synopsis "Peer-reviewed portable C++ source libraries") 99 (synopsis "Peer-reviewed portable C++ source libraries")