[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/14] gnu: scotch, pt-scotch: Use modify-phases.
From: |
ericbavier |
Subject: |
[PATCH 05/14] gnu: scotch, pt-scotch: Use modify-phases. |
Date: |
Sat, 27 Jun 2015 22:45:42 -0500 |
From: Eric Bavier <address@hidden>
* gnu/packages/maths.scm (scotch, pt-scotch)[arguments]: Use modify-phases.
---
gnu/packages/maths.scm | 70 ++++++++++++++++++++++----------------------------
1 file changed, 31 insertions(+), 39 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index e4fe03b..a3611cf 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -802,15 +802,16 @@ implemented in ANSI C, and MPI for communications.")
("bison" ,bison)))
(arguments
`(#:phases
- (alist-cons-after
- 'unpack 'chdir-to-src
- (lambda _ (chdir "src"))
- (alist-replace
- 'configure
- (lambda _
- (call-with-output-file "Makefile.inc"
- (lambda (port)
- (format port "
+ (modify-phases %standard-phases
+ (add-after
+ 'unpack 'chdir-to-src
+ (lambda _ (chdir "src")))
+ (replace
+ 'configure
+ (lambda _
+ (call-with-output-file "Makefile.inc"
+ (lambda (port)
+ (format port "
EXE =
LIB = .a
OBJ = .o
@@ -831,22 +832,21 @@ MV = mv
RANLIB = ranlib
YACC = bison -pscotchyy -y -b y
"
- '("COMMON_FILE_COMPRESS_GZ"
- "COMMON_PTHREAD"
- "COMMON_RANDOM_FIXED_SEED"
- ;; XXX: Causes invalid frees in superlu-dist tests
- ;; "SCOTCH_PTHREAD"
- ;; "SCOTCH_PTHREAD_NUMBER=2"
- "restrict=__restrict")))))
- (alist-replace
+ '("COMMON_FILE_COMPRESS_GZ"
+ "COMMON_PTHREAD"
+ "COMMON_RANDOM_FIXED_SEED"
+ ;; XXX: Causes invalid frees in superlu-dist tests
+ ;; "SCOTCH_PTHREAD"
+ ;; "SCOTCH_PTHREAD_NUMBER=2"
+ "restrict=__restrict"))))))
+ (replace
'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(mkdir out)
(zero? (system* "make"
(string-append "prefix=" out)
- "install"))))
- %standard-phases)))))
+ "install"))))))))
(home-page "http://www.labri.fr/perso/pelegrin/scotch/")
(synopsis "Programs and libraries for graph algorithms")
(description "SCOTCH is a set of programs and libraries which implement
@@ -867,26 +867,18 @@ bio-chemistry.")
(arguments
(substitute-keyword-arguments (package-arguments scotch)
((#:phases scotch-phases)
- `(alist-replace
- 'build
- ;; TODO: Would like to add parallelism here
- (lambda _
- (and
- (zero? (system* "make" "ptscotch"))
- ;; Install the serial metis compatibility library
- (zero? (system* "make" "-C" "libscotchmetis" "install"))))
- (alist-replace
- 'check
- (lambda _ (zero? (system* "make" "ptcheck")))
- (alist-replace
- 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (mkdir out)
- (zero? (system* "make"
- (string-append "prefix=" out)
- "install"))))
- ,scotch-phases))))))
+ `(modify-phases ,scotch-phases
+ (replace
+ 'build
+ ;; TODO: Would like to add parallelism here
+ (lambda _
+ (and
+ (zero? (system* "make" "ptscotch"))
+ ;; Install the serial metis compatibility library
+ (zero? (system* "make" "-C" "libscotchmetis" "install")))))
+ (replace
+ 'check
+ (lambda _ (zero? (system* "make" "ptcheck"))))))))
(synopsis "Programs and libraries for graph algorithms (with MPI)")))
(define-public gsegrafix
--
2.2.1
- [PATCH 01/14] gnu: hwloc: Upgrade to 1.10.1., (continued)
- [PATCH 01/14] gnu: hwloc: Upgrade to 1.10.1., ericbavier, 2015/06/27
- [PATCH 02/14] gnu: hwloc: Move numactl to inputs., ericbavier, 2015/06/27
- [PATCH 03/14] gnu: openmpi: Upgrade to 1.8.5., ericbavier, 2015/06/27
- [PATCH 04/14] gnu: Update scotch to 6.0.4., ericbavier, 2015/06/27
- [PATCH 07/14] gnu: Add ScaLAPACK., ericbavier, 2015/06/27
- [PATCH 05/14] gnu: scotch, pt-scotch: Use modify-phases.,
ericbavier <=
- [PATCH 06/14] gnu: scotch, pt-scotch: Build esmumps libraries., ericbavier, 2015/06/27
- [PATCH 08/14] gnu: Add p4est., ericbavier, 2015/06/27
- [PATCH 13/14] gnu: Add SLEPc., ericbavier, 2015/06/27
- [PATCH 12/14] gnu: Add arpack-ng-openmpi., ericbavier, 2015/06/27
- [PATCH 11/14] gnu: petsc: Upgrade to 3.6.0., ericbavier, 2015/06/27