[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#28220] [PATCH 1/2] gnu: add scotch32
From: |
Paul Garlick |
Subject: |
[bug#28220] [PATCH 1/2] gnu: add scotch32 |
Date: |
Thu, 24 Aug 2017 15:56:44 +0100 |
*gnu/packages/maths.scm: Add scotch32
---
gnu/packages/maths.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Hello Guix,
Here are the patches to add 'scotch32' and 'pt-scotch32' packages, as
discussed in bug#28045.
There is one 'guix lint' warning to be aware of:
"file names of patches should start with the package name"
This is caused by the new packages inheriting the patch names from the
original packages. I guess this is best ignored ('pt-scotch' already
shares the same patches as 'scotch').
Paul.
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 1bb9f10ec..bc0ffb09a 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1937,6 +1937,53 @@ bio-chemistry.")
;; See LICENSE_en.txt
(license license:cecill-c)))
+(define-public scotch32
+ (package (inherit scotch)
+ (name "scotch32")
+ (arguments
+ (substitute-keyword-arguments (package-arguments scotch)
+ ((#:phases scotch-phases)
+ `(modify-phases ,scotch-phases
+ (replace
+ 'configure
+ (lambda _
+ (call-with-output-file "Makefile.inc"
+ (lambda (port)
+ (format port "
+EXE =
+LIB = .a
+OBJ = .o
+MAKE = make
+AR = ar
+ARFLAGS = -ruv
+CAT = cat
+CCS = gcc
+CCP = mpicc
+CCD = gcc
+CPPFLAGS =~{ -D~a~}
+CFLAGS = -O2 -g -fPIC $(CPPFLAGS)
+LDFLAGS = -lz -lm -lrt -lpthread
+CP = cp
+LEX = flex -Pscotchyy -olex.yy.c
+LN = ln
+MKDIR = mkdir
+MV = mv
+RANLIB = ranlib
+YACC = bison -pscotchyy -y -b y
+"
+ '("COMMON_FILE_COMPRESS_GZ"
+ "COMMON_PTHREAD"
+ "COMMON_RANDOM_FIXED_SEED"
+ "INTSIZE32" ;use 32-bit integers. See INSTALL.txt
+ ;; Prevents symbolc clashes with libesmumps
+ "SCOTCH_RENAME"
+ ;; XXX: Causes invalid frees in superlu-dist tests
+ ;; "SCOTCH_PTHREAD"
+ ;; "SCOTCH_PTHREAD_NUMBER=2"
+ "restrict=__restrict"))))))))))
+ (synopsis
+ "Programs and libraries for graph algorithms (using 32-bit integers")))
+
(define-public pt-scotch
(package (inherit scotch)
(name "pt-scotch")
--
2.13.0
- [bug#28220] [PATCH 1/2] gnu: add scotch32,
Paul Garlick <=