From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cEYRKTCltWSDVgEASxT56A (envelope-from ) for ; Mon, 17 Jul 2023 22:31:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 7rXaKDCltWQ+awAA9RJhRA (envelope-from ) for ; Mon, 17 Jul 2023 22:31:44 +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 403EE64838 for ; Mon, 17 Jul 2023 22:31:44 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=KcYd0uh4; 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=1689625904; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Ehx6zhPfQ1Omz9cQTpyPQHm5Nhyq2nf/Uf5Of5dqEiw=; b=DvP6kd4Z1jcsLHeqIRegsZFpkJSWrU/NDVrjzKoyMeX9kzGbl8NzmdR4/abkymlHKyyyIj Mp0Q4JEwhMw1jvblmn5jbG18ijG0iMH/ZWA/HUIFf6HPewy4daVDGVpeMcHSsO2UzoJ8ak puicCSDOWyE04PtCs1t0gJUOl5ZTz6XCXVE2rx4gvFwhBhZqvDGphUdOF+Leqsy0h/3SvI LF9N2w4rZ1Sgd60m5fQlk1gQrnfdX87A1pRPtVTV1eVP3ITXBwgqVlSFMUlYyso8FM/GZb EScVqfvAG2ub1ikgGok4M+cOKeaRQTC5YnNnYwIrj7mDpBNEZQr5PgM7+NobMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=KcYd0uh4; 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-Seal: i=1; s=key1; d=yhetil.org; t=1689625904; a=rsa-sha256; cv=none; b=KA4PPzC8nvB90Q3ABVyfDPp4LoN7wypmfYJSO1B6LAsQeLfVU9lyOVNwu2Y5ADzgfXA3tl wN5EDTnaP8hVfk0mvqzgQk+2unSldMLIxSbRsm8ftcnCDm+PSP1QHcWBjcOuuVt7N7p4Gy PkJ4gwzd38wo0L8S7ufyUvYsrmMK5qUXkIGyp5PWiQ0Oa7mTGsxjEmqxdxoX+uiToH4FAB pTBcKM7ZNfXWJcqXNJ1VCv5NslUDtDmK+k9aJyBMnNTa/YPVLcA5UPNtzs1OHa0MkicI5s vEBnTTHttkAh7epEaH9jox4G9BDmfQIvIxlHffgHXCAnlIEXajVES90HW6b03g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLUsW-0008PK-3t; Mon, 17 Jul 2023 16:31:32 -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 1qLTAa-0005wZ-85 for guix-patches@gnu.org; Mon, 17 Jul 2023 14:42:04 -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 1qLTAa-0007a8-0a for guix-patches@gnu.org; Mon, 17 Jul 2023 14:42:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qLTAZ-0005Mw-Gw for guix-patches@gnu.org; Mon, 17 Jul 2023 14:42:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64688] [PATCH] gnu: Add calc. Resent-From: Distopico Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jul 2023 18:42:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64688 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64688@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168961929220581 (code B ref -1); Mon, 17 Jul 2023 18:42:03 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jul 2023 18:41:32 +0000 Received: from localhost ([127.0.0.1]:50913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLTA4-0005Lt-6k for submit@debbugs.gnu.org; Mon, 17 Jul 2023 14:41:32 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLTA1-0005Lf-Cy for submit@debbugs.gnu.org; Mon, 17 Jul 2023 14:41:30 -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 1qLT9v-0005Xl-Bv for guix-patches@gnu.org; Mon, 17 Jul 2023 14:41:23 -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 1qLT9t-0007Qd-Oy for guix-patches@gnu.org; Mon, 17 Jul 2023 14:41:23 -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 4R4WBR6BVmz9tJq for ; Mon, 17 Jul 2023 18:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1689619280; bh=qZgtsvt/Pyv/KKPLox/KoOzJeopOYRfZ5PYDOblGtFI=; h=From:To:Subject:Date:From; b=KcYd0uh4ZO9B7niRDLt0bl5IElrRyuAO5gdAbbpERKzu/g5nHlyOY3WlPwk/8/77v Vw3uphPtk2lCJUuQ9AB3P/S3LAVo7neiGUusEYEzs2J5TaceJPfkZFw0y170U9947t 48kmgPSenrBlRJEKNwPlqQjPppwMVlXFKlcbjFZM= X-Riseup-User-ID: 8091CDA857C113CD26B6A2FBF1D7048763A5862958C04A52FCB570FE0E45BCBA Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4R4WBQ2QRpzFs0H for ; Mon, 17 Jul 2023 18:41:18 +0000 (UTC) From: Distopico Date: Mon, 17 Jul 2023 13:36:13 -0500 Message-ID: <87edl6bctv.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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 17 Jul 2023 16:31:30 -0400 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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: 2.75 X-Migadu-Queue-Id: 403EE64838 X-Migadu-Spam-Score: 2.75 X-Migadu-Scanner: mx0.migadu.com X-TUID: V+cTNrTy/27b 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