unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 61204@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#61204] [PATCH 2/6] gnu: Add metis-4.
Date: Wed,  1 Feb 2023 02:12:11 +0100	[thread overview]
Message-ID: <20230201011215.13033-2-ngraves@ngraves.fr> (raw)
In-Reply-To: <20230201011215.13033-1-ngraves@ngraves.fr>

* gnu/packages/maths.scm (metis-4): New variable.
---
 gnu/packages/maths.scm | 48 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 962b7d117c..f00f4f58be 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4354,6 +4354,54 @@ (define-public metis
 schemes.")
     (license license:asl2.0)))          ;As of version 5.0.3
 
+;; This outdated version contains only library and header files. It is used
+;; to build the scilab package.
+(define-public metis-4
+  (package
+    (inherit metis)
+    (name "metis")
+    (version "4.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/"
+                           "metis-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0m8shi202vprs8d9l51178v0skngzgx81q0d9ln1ng3hh3g3byjy"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:tests? #f                      ;no tests
+           #:make-flags
+           #~(list "CC=gcc"
+                   "AR=gcc -shared -o"
+                   "RANLIB=touch"
+                   "OPTFLAGS= -O3 "
+                   "COPTIONS= -fPIC"
+                   (string-append
+                    "LDOPTIONS=-Wl,rpath," #$output "/lib")
+                   "METISLIB=../libmetis.so")
+           #:phases
+           #~(modify-phases %standard-phases
+               (replace 'configure
+                 ;; Make the library shared.
+                 (lambda _
+                   (substitute* "Lib/Makefile"
+                     (("libmetis\\.a")
+                      "libmetis.so"))
+                   (chdir "Lib")))
+               (replace 'install
+                 (lambda _
+                   ;; Library
+                   (chdir "..")
+                   (install-file "libmetis.so"
+                                 (string-append #$output "/lib"))
+                   ;; Includes
+                   (for-each
+                    (lambda (x)
+                      (install-file x (string-append #$output "/include")))
+                    (find-files "Lib" "\\.h$")))))))))
+
 (define-public p4est
   (package
     (name "p4est")
-- 
2.39.1





  reply	other threads:[~2023-02-01  1:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-01  1:07 [bug#61204] Scilab scientific software Nicolas Graves via Guix-patches via
2023-02-01  1:12 ` [bug#61204] [PATCH 1/6] gnu: matio: Add header file Nicolas Graves via Guix-patches via
2023-02-01  1:12   ` Nicolas Graves via Guix-patches via [this message]
2023-02-01  1:12   ` [bug#61204] [PATCH 3/6] gnu: Add suitesparse-3 Nicolas Graves via Guix-patches via
2023-02-01  1:12   ` [bug#61204] [PATCH 5/6] gnu: scilab: Update to 5.5.1 Nicolas Graves via Guix-patches via
2023-02-01  1:12   ` [bug#61204] [PATCH 6/6] gnu: scilab: Update to 5.5.2 Nicolas Graves via Guix-patches via
2023-02-10 23:08 ` [bug#61204] Scilab scientific software Ludovic Courtès
2023-02-11 10:11   ` Nicolas Graves via Guix-patches via
2023-02-11 10:09 ` [bug#61204] [PATCH] gnu: Add scilab Nicolas Graves via Guix-patches via
2023-02-15 15:57 ` [bug#61204] Scilab scientific software Simon Tournier
2023-03-16 11:26   ` Ludovic Courtès
2023-03-25 14:17     ` Nicolas Graves via Guix-patches via
2023-04-03 15:43       ` Simon Tournier
2023-03-25 14:15 ` [bug#61204] [PATCH v2 1/3] gnu: matio: Add header file Nicolas Graves via Guix-patches via
2023-03-25 14:15   ` [bug#61204] [PATCH v2 2/3] gnu: Add suitesparse-3 Nicolas Graves via Guix-patches via
2023-03-25 14:15   ` [bug#61204] [PATCH v2 3/3] gnu: Add scilab Nicolas Graves via Guix-patches via
2023-03-30 20:43     ` bug#61204: " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230201011215.13033-2-ngraves@ngraves.fr \
    --to=guix-patches@gnu.org \
    --cc=61204@debbugs.gnu.org \
    --cc=ngraves@ngraves.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).