From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6Al1FrMtSGVxYQAAG6o9tA:P1 (envelope-from ) for ; Mon, 06 Nov 2023 01:05:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6Al1FrMtSGVxYQAAG6o9tA (envelope-from ) for ; Mon, 06 Nov 2023 01:05:07 +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 0702E591F7 for ; Mon, 6 Nov 2023 01:05:07 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699229107; a=rsa-sha256; cv=none; b=qOxn+r4T+I2iaVOr+888VL89xZsnisxpcJYijayz11wNZkvSGUcoG6ineereS8F8AkGSQi DI23lqdQe+gIhqk8h+0gu7ifcIDQ9jQg0i8yn2DnmPub0QPHcu8WgeqcXGxKooAT0IGjAB 8U6D4claYpDDiNn6f3J4JNGsNAm537hAmk0HfWnbN00ySFAoS1LTUUkf3rbNEjxekrs3sN JKBPuB8FV1Ig9EFDohNz35/0ngY1r7PxLQt1kdxCPFOOcX0/aXyVuw0uvcf5upiSf/t9SR xPg3r6sfEA3wcakPEY1y0vUR37CYXFEUtWmp/ybepBX2R1jg2iA5H5eIe2+cfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699229107; 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=AmV3it2o/b722n4bO84cfVV6ILOAr2NbLGTVin62t4o=; b=cNeiv7m967zHiT29EXWptVl1amf/1OYrVs8TMomNJMLA8MTBwKyputjJprk92i9JcYrz96 Qe89FTJkoUHmo54JA4gDGIYY8cK82mpt+Q4iQ4cDA1636qTmfZEZqAcObTn/cSUu6saDfC E1ZOAh65OYbF0Hfp0z9+rn3y/eLpt7WehoAZcQENQ9lhStKeNjQeINObssW8bTFEcUUUhE MASCvPYpkA9oAhRTHlxsTFagT2IIzJ1+iBNo+Y7VBZLh0IDvTAFkkNPwouSOogg1UxEz/W 6cYgUWyDyAgpGEqLNdXWrziXNEnoI9/hidCV8UM/DIU61CA6mUk7e8VLBnkwWQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzn6S-0004ii-9F; Sun, 05 Nov 2023 19:04:28 -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 1qzn6Q-0004i1-VL for guix-patches@gnu.org; Sun, 05 Nov 2023 19:04:27 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzn6Q-0000R2-Lu for guix-patches@gnu.org; Sun, 05 Nov 2023 19:04:26 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzn71-0008VU-Lh for guix-patches@gnu.org; Sun, 05 Nov 2023 19:05:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#65853] [PATCH v3 4/8] gnu: scilab: Add phase rewrap-scilab-cli. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Nov 2023 00:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65853 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65853@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 65853-submit@debbugs.gnu.org id=B65853.169922908532602 (code B ref 65853); Mon, 06 Nov 2023 00:05:03 +0000 Received: (at 65853) by debbugs.gnu.org; 6 Nov 2023 00:04:45 +0000 Received: from localhost ([127.0.0.1]:38402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzn6i-0008TT-Mu for submit@debbugs.gnu.org; Sun, 05 Nov 2023 19:04:45 -0500 Received: from 7.mo575.mail-out.ovh.net ([46.105.63.230]:54499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzn6d-0008Sc-EL for 65853@debbugs.gnu.org; Sun, 05 Nov 2023 19:04:42 -0500 Received: from director10.ghost.mail-out.ovh.net (unknown [10.109.146.32]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 4DAA525785 for <65853@debbugs.gnu.org>; Mon, 6 Nov 2023 00:04:01 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-9rbmq (unknown [10.110.208.248]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 046321FDD5; Mon, 6 Nov 2023 00:04:00 +0000 (UTC) Received: from ngraves.fr ([37.59.142.108]) by ghost-submission-6684bf9d7b-9rbmq with ESMTPSA id +yZKOnAtSGV3yAkAX5pIgQ (envelope-from ); Mon, 06 Nov 2023 00:04:00 +0000 X-OVh-ClientIp: 81.67.140.142 Date: Mon, 6 Nov 2023 00:51:47 +0100 Message-ID: <20231106000354.32423-5-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231106000354.32423-1-ngraves@ngraves.fr> References: <20231106000354.32423-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 3274398406948414178 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedruddufedgudekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepkeekgeevkeffudelveevveekjeetkefgtdejhefgfedvvdffvdefffejudfgfffgnecuffhomhgrihhnpehstghilhgrsgdrohhrghenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegtddrudegvddpfeejrdehledrudegvddruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepieehkeehfeesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheejhedpmhhouggvpehsmhhtphhouhht 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 0702E591F7 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.61 X-Spam-Score: -4.61 X-TUID: D4wh+6yOcSaD * gnu/packages/maths.scm (scilab): Add phase rewrap-scilab-cli. Change-Id: Ia3ca5df1a4795c34b6c1cdc8c3b0d7cc2badf0cb --- gnu/packages/maths.scm | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 62c935a868..68e041c33b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -9703,7 +9703,27 @@ (define-public scilab (apply invoke "make" "src/cpp/parse/parsescilab.cpp" "src/cpp/parse/scanscilab.cpp" - make-flags)))))))) + make-flags)))) + ;; The startup script is mostly there to define the following env + ;; variables properly. We can do this with guix directly. + (add-after 'install 'rewrap-scilab-cli + (lambda _ + (define (bin path) (string-append #$output "/bin/" path)) + (delete-file (bin "scilab-cli")) + (wrap-program (bin "scilab-cli-bin") + `("SCI" = (,(string-append #$output "/share/scilab"))) + `("LD_LIBRARY_PATH" ":" prefix + (,(string-append #$output "/lib/scilab"))) + `("TCL_LIBRARY" = (,(string-append #$tcl "/lib"))) + `("TK_LIBRARY" = (,(string-append #$tk "/lib")))) + (copy-file (bin "scilab-cli-bin") (bin "scilab-cli")) + (copy-file (bin ".scilab-cli-bin-real") (bin "scilab-cli-bin")) + (delete-file (bin ".scilab-cli-bin-real")) + (substitute* (bin "scilab-cli") + (("\\.scilab-cli-bin-real") + "scilab-cli-bin") + (("export SCI=") + "unset LANGUAGE\nexport SCI=")))))))) (home-page "https://www.scilab.org/") (synopsis "Software for engineers and scientists") (description "This package provides the non-graphical version of the Scilab -- 2.41.0