From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SBWACaGivWTyegAASxT56A (envelope-from ) for ; Sun, 23 Jul 2023 23:58:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SICDCaGivWROVAAA9RJhRA (envelope-from ) for ; Sun, 23 Jul 2023 23:58:57 +0200 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 A19A053961 for ; Sun, 23 Jul 2023 23:58:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=J+mxHHiB; 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=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690149536; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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:dkim-signature; bh=nMbdGuDRz/PjhEpJ4LEKbLO/2dYdq1wvbv9HMqfgOtQ=; b=NqOPhVDQ4IN3qityHf397sM1MK8IuklEApblFH0U4mJ8GF9aGQPCFUwvk3fxz3dO7ov5/q lsIJHoh57HNtcrcudQZlt1Y1XzHREHpcY8cQe7NKFO0ujwRG8vSAE3ANrOs/QpQF8SBYkK LT+StXJI7mX1ThYQciCW4+3XohJwq+4LuTVYvMEqiICUF6joa2l2aacD3BFPeshiyRMOG2 tM471CVpyJcq7Z9aedjllOpMSAE4UwUhbp4QYpbpLkk39VGEM9IaJ1HKangYSlONRTNuLW pU4xMOVYBuU+Xjy6DkbM9Yf6PDIDONk1awq/BiJIG4gr+i258LPZfhJRCDwGgA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690149536; a=rsa-sha256; cv=none; b=nvl39G3nGLZbugcAC6hUXOu8glzps7oRlFUpKW9+inRvYD0/jVjhYqWT2iZ2TwTnbC+DGK jhhFJFUoZHHmJVh4JMX5bLjc2CoJlPfZlGqiNYKbffwyh0cCS7MYwIszQo0ddEHhlT8iEW T/SahLRavtixg/WK/YCjfVYnNif+lBQTzknW8k5ZYKuPHbaFbzbZKcIt3TffxACq04CN22 rI+5nkFD1fdzLeeAWb5S2cfpSAHvQFNR7XBWkqIawW4H/iyPKXEbWk2PixjwUBV7z1LYx4 V2h/hYqxZRECQ6uT0GXRBpjI4OrCwF0pHoinzU8lob1eeGk6sDrfJygxt62yzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=J+mxHHiB; 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=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNh5j-0004rv-Nk; Sun, 23 Jul 2023 17:58:15 -0400 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 1qNh5h-0004rc-MH for guix-patches@gnu.org; Sun, 23 Jul 2023 17:58:13 -0400 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 1qNh5g-0004gd-P7; Sun, 23 Jul 2023 17:58:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNh5W-0000UQ-CU; Sun, 23 Jul 2023 17:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64688] [PATCH v3] gnu: Add calc. References: <87edl6bctv.fsf@riseup.net> In-Reply-To: <87edl6bctv.fsf@riseup.net> Resent-From: Distopico Original-Sender: "Debbugs-submit" Resent-CC: paren@disroot.org, mail@cbaines.net, ludo@gnu.org, othacehe@gnu.org, rg@raghavgururajan.name, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 23 Jul 2023 21:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64688 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64688@debbugs.gnu.org Cc: Distopico , paren@disroot.org, mail@cbaines.net, ludo@gnu.org, othacehe@gnu.org, rg@raghavgururajan.name, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, jgart@dismail.de X-Debbugs-Original-Xcc: paren@disroot.org, mail@cbaines.net, ludo@gnu.org, othacehe@gnu.org, rg@raghavgururajan.name, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, jgart@dismail.de Received: via spool by 64688-submit@debbugs.gnu.org id=B64688.16901494611853 (code B ref 64688); Sun, 23 Jul 2023 21:58:02 +0000 Received: (at 64688) by debbugs.gnu.org; 23 Jul 2023 21:57:41 +0000 Received: from localhost ([127.0.0.1]:41332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNh59-0000Tn-5g for submit@debbugs.gnu.org; Sun, 23 Jul 2023 17:57:40 -0400 Received: from mx0.riseup.net ([198.252.153.6]:32812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNh54-0000TW-3f for 64688@debbugs.gnu.org; Sun, 23 Jul 2023 17:57:37 -0400 Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4R8HG00L93z9s8c for <64688@debbugs.gnu.org>; Sun, 23 Jul 2023 21:57:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1690149448; bh=+cttq2eLQTda230py9LrsVYiSWqDfyw+YhQltEjRCFU=; h=From:To:Cc:Subject:Date:From; b=J+mxHHiBLf9BtAbqh909bikmY/Zglwqm+UxVkr90OvQPHHyY0JnmvwbYbFKx/xz6t jKyJW6cv/BCvPitQw9TjXp27+/a4WHYdBlsgGRJwTGsCe8AGmy+4YO0kxJcXX7ifbG 85OSDb1iTim2nwM+T8o9a9SPFqqQr6iup3Pvndmg= X-Riseup-User-ID: 8B9C85A7626C790BACF7C8BC047B4AEE708E175359D0D5344547B378ECCAA580 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4R8HFz25F1zJnJW; Sun, 23 Jul 2023 21:57:26 +0000 (UTC) From: Distopico Date: Sun, 23 Jul 2023 16:52:23 -0500 Message-ID: <20230723215710.2037-1-distopico@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , 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 X-Migadu-Spam-Score: -2.66 X-Spam-Score: -2.66 X-Migadu-Queue-Id: A19A053961 X-Migadu-Scanner: mx1.migadu.com X-TUID: bgXBg6cbXUkN * gnu/packages/maths.scm (calc): New variable. --- Fyx typo gnu/packages/maths.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b9b63c81c1..3937e9118a 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -60,6 +60,7 @@ ;;; Copyright © 2022 Akira Kyle ;;; Copyright © 2022 Roman Scherer ;;; Copyright © 2023 Jake Leporte +;;; Copyright © 2023 Camilo Q.S. (Distopico) ;;; ;;; This file is part of GNU Guix. ;;; @@ -261,6 +262,56 @@ (define-public c-graph (license license:gpl3+) (home-page "https://www.gnu.org/software/c-graph/"))) +(define-public calc + (package + (name "calc") + (version "2.14.1.6") + (source (origin + (method url-fetch) + (uri (string-append "http://www.isthe.com/chongo/src/calc/calc-" + version ".tar.bz2")) + (sha256 + (base32 + "0h3zsqwpbwddv28khg1fk00ydk6sxvdig085lvi1s63d544b6nff")))) + (build-system gnu-build-system) + (inputs (list readline)) + (native-inputs (list util-linux)) + (outputs '("out")) + (arguments + '(#:make-flags (let ((out (assoc-ref %outputs "out"))) + (list "DEBUG=" + "USE_READLINE=-DUSE_READLINE" + "READLINE_LIB=-lreadline" + "READLINE_EXTRAS=-lhistory -lncurses" + (string-append "DEFAULT_LIB_INSTALL_PATH=" out + "/lib") + (string-append "T=" out))) + #:phases (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'patch-makefile-ldflags + (lambda _ + (substitute* "Makefile" + (("\\$\\{CC\\}\\s+\\$\\{LIBCALC_SHLIB\\}") + "${CC} ${LDFLAGS} ${LIBCALC_SHLIB}")) + (substitute* "custom/Makefile" + (("\\$\\{CC\\}\\s+\\$\\{LIBCUSTCALC_SHLIB\\}") + "${CC} ${LDFLAGS} ${LIBCUSTCALC_SHLIB}")))) + (add-before 'build 'patch-makefile-prefix + (lambda _ + (substitute* "Makefile" + ;; Replace because there is more or less + ;; 5 Makefile vars with /usr as default prefix + (("=\\s?/usr/") + "= /"))))))) + (synopsis "Arbitrary precision console calculator") + (description + "Calc is an arbitrary precision arithmetic system that uses a C-like language, +It's useful as a calculator, an algorithm prototyper and as a mathematical research tool. +More importantly, calc provides one with a machine independent means of computation. +Calc comes with a rich set of builtin mathematical and programmatic functions.") + (home-page "http://www.isthe.com/chongo/tech/comp/calc/") + (license license:lgpl2.1))) + (define-public coda (package (name "coda") -- 2.41.0