From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id APihAYJp52MzRAEAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 11:10:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AJBfAYJp52NmHQAAauVa8A (envelope-from ) for ; Sat, 11 Feb 2023 11:10:10 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5F925F5D6 for ; Sat, 11 Feb 2023 11:10:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQmpY-0005QH-Sk; Sat, 11 Feb 2023 05:10:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQmpW-0005Pq-TG for guix-patches@gnu.org; Sat, 11 Feb 2023 05:10:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQmpW-0000OB-HF for guix-patches@gnu.org; Sat, 11 Feb 2023 05:10:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQmpW-0004GA-DI for guix-patches@gnu.org; Sat, 11 Feb 2023 05:10:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61204] [PATCH] gnu: Add scilab. References: <87h6w6tcqz.fsf@ngraves.fr> In-Reply-To: <87h6w6tcqz.fsf@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Feb 2023 10:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61204 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 61204@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 61204-submit@debbugs.gnu.org id=B61204.167611019216354 (code B ref 61204); Sat, 11 Feb 2023 10:10:02 +0000 Received: (at 61204) by debbugs.gnu.org; 11 Feb 2023 10:09:52 +0000 Received: from localhost ([127.0.0.1]:38928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQmpL-0004Fh-PO for submit@debbugs.gnu.org; Sat, 11 Feb 2023 05:09:52 -0500 Received: from 7.mo560.mail-out.ovh.net ([188.165.48.182]:55545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQmpJ-0004FY-9t for 61204@debbugs.gnu.org; Sat, 11 Feb 2023 05:09:50 -0500 Received: from director5.ghost.mail-out.ovh.net (unknown [10.109.143.232]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 23108242CD for <61204@debbugs.gnu.org>; Sat, 11 Feb 2023 10:09:45 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-p94jc (unknown [10.110.171.1]) by director5.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 9C1181FD3C; Sat, 11 Feb 2023 10:09:44 +0000 (UTC) Received: from ngraves.fr ([37.59.142.109]) by ghost-submission-6684bf9d7b-p94jc with ESMTPSA id iC3kKWhp52PrZAQAZLC00Q (envelope-from ); Sat, 11 Feb 2023 10:09:44 +0000 X-OVh-ClientIp: 81.67.140.142 Date: Sat, 11 Feb 2023 11:09:37 +0100 Message-Id: <20230211100937.8616-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7595602248858460898 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrudehjedguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepfeefgfefieekkeehkeduveetgeeileekteettedujedvieekgeeileduieethefhnecuffhomhgrihhnpehouhhtshgtrghlvgdrtghomhdpshgtihhlrggsrdhorhhgnecukfhppeduvdejrddtrddtrddupdefjedrheelrddugedvrddutdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeiuddvtdegseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedtpdhmohguvgepshhmthhpohhuth X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676110209; a=rsa-sha256; cv=none; b=Tdk/+q8aPhEAQjhmpeObMFeQOQq3QaxKeE+wfrY1tRPfE+EpBUX6iKoPR1uxn5BaBeUumu 0i46wtgrLmcvHdooFl+Jv/cnJn+yMQbmoNQaNNxQykVZE09a023SxCYyDv1Z4Y3ZUFRsHm 9gF3f2/HtGb+F2Y92J6xG0fFpn9QIQKfKzHzVgUD6Ao+mIft33Ce/b5cDiTzt3LicqvLxX 8LZt1HTsGMarZUwI4CRv4R/F9Jcu+dwirkjwaLPxBgcIAjb0Ne61hsXmW7wVo9SILbCXsA +XFIHkcN9d2E8uRDicPfN39U+LPb0ul0c4h/KI2zjrasWE3jE4b6WS7IfcbUQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676110209; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=bPieM87OM5H51YK6jiLqhnE7pNbv9oP+s9Fcu1ETJTM=; b=KllBJJdRyrvhswL78R1jMC/VZ2jV6iwCbk24NA0EYBA6PdnSC+G/RbOd0kKecF/XOPfO+q xixVd7EsrRsaaQQ7LLdM20kOPEcaz9PoyVh99He8F5fWIXaz+4LkZ85jmydmEIMA511vS9 JJ0GHnDsZuB7e4PphRPbifGXaZNDfMUdBYU5Mw4AyyDXLMtyXxbCUsOhBlsAL/h7G1MdHa OVmHubRzzKgKXTm987UA5VOZd3151Bd9MOFHsM70VYxARs2tt9T3Dg1wpWRr8HIoxg/4Sj Ev9cx7LDcPSnt4zF1mOwAQdb3EjyOS8UL123vy+we2CRENkYIbcxDpRj6eB0Dw== Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Spam-Score: -4.90 X-Spam-Score: -4.90 X-Migadu-Queue-Id: 5F925F5D6 X-Migadu-Scanner: scn0.migadu.com X-TUID: Au4YuIHnFzRC * gnu/packages/maths.scm (scilab): New variable. --- gnu/packages/maths.scm | 106 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 741ecc2798..81dba14674 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -8319,3 +8319,109 @@ (define-public optizelle provided for applications written in C++ and Python. Parallel computation is supported via MPI.") (license license:bsd-2)))) + +(define-public scilab + (package + (name "scilab") + (version "5.5.0") + (source + (origin + (method url-fetch) + (uri + (string-append "https://oos.eu-west-2.outscale.com/scilab-releases/" + version "/scilab-" version "-src.tar.gz")) + (sha256 + (base32 "1hx57aji5d78brwqcf8a34i1hasm3h4nw46xjg7cgxj09s8yz5kq")))) + (build-system gnu-build-system) + (native-inputs (list pkg-config gfortran)) + (inputs (list libxml2 + `(,pcre "bin") + `(,pcre "out") + readline + hdf5-1.8 + curl + openblas + lapack + arpack-ng + fftw + gettext-minimal + suitesparse-3 + tcl + tk + libx11 + matio)) + (arguments + `(#:tests? #f + #:configure-flags + ,#~(list + "--enable-relocatable" + "--disable-static-system-lib" + ;; Disable all java code. + "--without-gui" + "--without-javasci" + "--disable-build-help" + "--with-external-scirenderer" + ;; Tcl and Tk library locations. + (string-append "--with-tcl-include=" + (string-drop-right + (search-input-file %build-inputs "include/tcl.h") + (string-length "/tcl.h"))) + (string-append "--with-tcl-library=" + (string-drop-right + (search-input-directory %build-inputs "lib/tcl8") + (string-length "/tcl8"))) + (string-append "--with-tk-include=" + (string-drop-right + (search-input-file %build-inputs "include/tk.h") + (string-length "/tk.h"))) + (string-append "--with-tk-library=" + (string-drop-right + (search-input-directory %build-inputs "lib/tk8.6") + (string-length "/tk8.6"))) + ;; There are some 2018-fortran errors that are ignored + ;; with this fortran compiler flag. + "FFLAGS=-fallow-argument-mismatch") + #:phases + ,#~(modify-phases %standard-phases + (add-before 'build 'pre-build + (lambda _ + ;; Fix scilab script. + (substitute* "bin/scilab" + (("\\/bin\\/ls") + (which "ls"))) + ;; Fix core.start. + (substitute* "modules/core/etc/core.start" + (("'SCI/modules") + "SCI+'/modules")) + ;; Fix fortran compilation error. + (substitute* + "modules/differential_equations/src/fortran/twodq.f" + (("node\\(10\\),node1\\(10\\),node2\\(10\\),coef") + "node(9),node1(9),node2(9),coef")) + ;; Fix C compilation errors. + ;; remove & + (substitute* "modules/hdf5/src/c/h5_readDataFromFile_v1.c" + (("(H5Rdereference\\(_iDatasetId, H5R_OBJECT, )&(.*)\\);$" + all common ref) + (string-append common ref))) + ;; fix multiple definitions + (substitute* "modules/tclsci/src/c/TCL_Command.h" + (("^__thread") + "extern __thread")) + (substitute* "modules/tclsci/src/c/InitTclTk.c" + (("BOOL TK_Started = FALSE;" all) + (string-append all "\n" + "__threadId TclThread;" "\n" + "__threadSignal InterpReady;" "\n" + "__threadSignalLock InterpReadyLock;" + "\n"))) + ;; Set SCIHOME to /tmp before macros compilation. + (setenv "SCIHOME" "/tmp")))))) + (home-page "https://scilab.org") + (synopsis "Software for engineers and scientists") + (description "This package provides the non-graphical version of the Scilab +software for engineers and scientists. Scilab is used for signal processing, +statistical analysis, image enhancement, fluid dynamics simulations, numerical +optimization, and modeling, simulation of explicit and implicit dynamical +systems and symbolic manipulations.") + (license license:gpl2))) -- 2.39.1