From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 17 14:41:12 2023 Received: (at submit) by debbugs.gnu.org; 17 Jul 2023 18:41:12 +0000 Received: from localhost ([127.0.0.1]:50910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLT9j-0005LL-N6 for submit@debbugs.gnu.org; Mon, 17 Jul 2023 14:41:12 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLT9h-0005L7-0u for submit@debbugs.gnu.org; Mon, 17 Jul 2023 14:41:11 -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 1qLT9a-0005Wu-Cf for guix-patches@gnu.org; Mon, 17 Jul 2023 14:41:02 -0400 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLT9Y-0007KP-C9 for guix-patches@gnu.org; Mon, 17 Jul 2023 14:41:02 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (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 4R4W8x5sJpz9tJq for ; Mon, 17 Jul 2023 18:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1689619222; bh=qZgtsvt/Pyv/KKPLox/KoOzJeopOYRfZ5PYDOblGtFI=; h=From:To:Subject:Date:From; b=ZhRmC0GbwAa1GtZfUjhBwzRMP7Yg9QTGXhl+UiGuWQtudgJZrx0FHohth4wO+J/hS 3LgaY4NRvKq9pRcvG9ABT7kS3k8xnx4Hrm09XwIN4Dl3nyVhM6PN/ULEC6z4HuGliD xFr0WzVisI9VZsCl5lmd0I9+p68jV95WFpPsu2L4= X-Riseup-User-ID: BCDC14D081ECD95A74EE0DD8D85A91B6EB3D5A7256EBF3F418D9BC7255758ABF Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4R4W8c60J8zFrBZ for ; Mon, 17 Jul 2023 18:39:44 +0000 (UTC) From: Distopico To: guix-patches@gnu.org Subject: [PATCH] gnu: Add calc. Date: Mon, 17 Jul 2023 12:05:52 -0500 Message-ID: <87ilaibcwj.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.6; envelope-from=distopico@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Adds `calc` package, an console calculator and mathematical tool. * gnu/packages/maths.scm (calc): New variable. --- gnu/packages/maths.scm | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b9b63c81c1..c5e0da4328 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -60,6 +60,7 @@ ;;; Copyright =C2=A9 2022 Akira Kyle ;;; Copyright =C2=A9 2022 Roman Scherer ;;; Copyright =C2=A9 2023 Jake Leporte +;;; Copyright =C2=A9 2023 Camilo Q.S. (Distopico) ;;; ;;; This file is part of GNU Guix. ;;; @@ -261,6 +262,63 @@ (define-public c-graph (license license:gpl3+) (home-page "https://www.gnu.org/software/c-graph/"))) =20 +(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/ca= lc-" + 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=3D" + "USE_READLINE=3D-DUSE_READLINE" + "READLINE_LIB=3D-lreadline" + "READLINE_EXTRAS=3D-lhistory -lncurses" + (string-append "DEFAULT_LIB_INSTALL_PATH=3D" o= ut + "/lib") + (string-append "T=3D" 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-guixnization + (lambda _ + (for-each (lambda (file) + (substitute* file + (("(open source|open software)") + "Free Software"))) + (list "calc.c" "version.c" "calc.man")))) + (add-before 'build 'patch-makefile-prefix + (lambda _ + (substitute* "Makefile" + ;; Replace becase there is more or less + ;; 5 Makefile vars with /usr as default prefix + (("=3D\\s?/usr/") + "=3D /"))))))) + (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 co= mputation. +Calc comes with a rich set of builtin mathematical and programmatic functi= ons.") + (home-page "http://www.isthe.com/chongo/tech/comp/calc/") + (license license:lgpl2.1))) + (define-public coda (package (name "coda") --=20 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 17 15:26:18 2023 Received: (at 64687-done) by debbugs.gnu.org; 17 Jul 2023 19:26:19 +0000 Received: from localhost ([127.0.0.1]:50944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLTrK-0006Ue-Sp for submit@debbugs.gnu.org; Mon, 17 Jul 2023 15:26:18 -0400 Received: from mx1.riseup.net ([198.252.153.129]:56260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLTrG-0006UO-7Z for 64687-done@debbugs.gnu.org; Mon, 17 Jul 2023 15:26:14 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (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) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4R4XB436WlzDqJC for <64687-done@debbugs.gnu.org>; Mon, 17 Jul 2023 19:25:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1689621964; bh=Kutvl+DHm3pmAfpG6ZBqS7D4f2JYrsmXWXs90j4/DZk=; h=From:To:Date:From; b=Q7grUQwdYEnJVwoOl8ASFXY9vdegMSWDQYI7A/euRoP6Sqv5DtTrXbv7ju+ujyRAn 0Sz05scM3GuZxJHuWVqTzUy+ZY9WEwo+97IuRkoOaJ/vCQfscNsLtr65fnHv6Nst9z c84FZIuFOvuoHz9PDbBItPtj5HLLzh6b0w4DaAQo= X-Riseup-User-ID: 4642F88AA96DCDCEC1A85BD1AC62CEF8BA5F18293BEC54C3DC774646D21BD375 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4R4X9f63NNzFqh4 for <64687-done@debbugs.gnu.org.>; Mon, 17 Jul 2023 19:25:42 +0000 (UTC) From: Distopico To: 64687-done@debbugs.gnu.org. Date: Mon, 17 Jul 2023 14:25:07 -0500 Message-ID: <87a5vubarv.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Duplicated with 64688 Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [198.252.153.129 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [198.252.153.129 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 64687-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Duplicated with 64688 From unknown Sun Jun 22 17:17:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Aug 2023 11:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator