From patchwork Wed Aug 28 20:58:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steve Sprang X-Patchwork-Id: 15151 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A190817346; Wed, 28 Aug 2019 22:03:39 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 4A96717344 for ; Wed, 28 Aug 2019 22:03:39 +0100 (BST) Received: from localhost ([::1]:42846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i356Q-0003ci-Qk for patchwork@mira.cbaines.net; Wed, 28 Aug 2019 17:03:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56720) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i351z-0000HQ-6m for guix-patches@gnu.org; Wed, 28 Aug 2019 16:59:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i351x-0004AV-Ql for guix-patches@gnu.org; Wed, 28 Aug 2019 16:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42511) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i351x-0004AP-Ni for guix-patches@gnu.org; Wed, 28 Aug 2019 16:59:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i351x-0004Et-Ki for guix-patches@gnu.org; Wed, 28 Aug 2019 16:59:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37138] [PATCH] gnu: Add speedcrunch. Resent-From: Steve Sprang Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 28 Aug 2019 20:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37138 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 37138-submit@debbugs.gnu.org id=B37138.156702593216275 (code B ref 37138); Wed, 28 Aug 2019 20:59:01 +0000 Received: (at 37138) by debbugs.gnu.org; 28 Aug 2019 20:58:52 +0000 Received: from localhost ([127.0.0.1]:51332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i351j-0004EJ-Hv for submit@debbugs.gnu.org; Wed, 28 Aug 2019 16:58:52 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:44206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i351g-0004E4-EY for 37138@debbugs.gnu.org; Wed, 28 Aug 2019 16:58:46 -0400 Received: by mail-lj1-f193.google.com with SMTP id e24so856356ljg.11 for <37138@debbugs.gnu.org>; Wed, 28 Aug 2019 13:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zk7envAKeyF+Iiwkfg5n4S+iD+8NIi2+wsnMG9TYeEI=; b=vWhmWCyqhsAQOGdcURCDbIlcJG6iRoqxubzXjuLRFtmBQKEgLaKSP6Zh22NUTROH1B 7ei+EBU2Y3x1xsuFgzgoK9M6DMQvmJUHVOJsa8BhV09/2Jt5zwAdm/3GVZHhRJ9NCJkK 7F7OpMIHOeTA0mPDwfunDrcO6wCWbAgqXuDhEZviuwwtF1uBFpXVWsAxJPgK7zX1SySb 8SY2J1XNOSBe/WYK4EWAdmfhyMQEgk3bU5KrsosVxqy/2DVhSYeFuC9nnnJ/DsWATiBS YRXtiOVzwFzdM64E8hh/hZJKh3GgYKVCa5J3IRLiD9YS6At9qOhTqVcLK4tzyRoJ4LPv aK2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zk7envAKeyF+Iiwkfg5n4S+iD+8NIi2+wsnMG9TYeEI=; b=bVzGT9nfXWgC6r5/jwXlmsSn5G5lWW3lWwuG0QTidm9wkhg0fOAEcdfNeqq9sFoX48 ldrGC3UOhRjCD80hQSICif3gcOBP3YgRKXrrdiG1e9TMzwiy+FwKHZVYlJJt1OkwUjo3 sJrSUK6n6UVDJhXumXky3BvYE+XQKPmN0G39KIrYJkAdCvdb2D5/qv6Cc6iux8Zk5Ves BMaJLvfR13s6H5fqjOjtTKsx4A1/RFL3TymjhK2WHN8n0voX0sBzGdPO2WMYXZw2j3+9 eDKoKIHHmXFV28Z6uOpcH6vb+kLBR3CtElsX75MOYJA6BNFtSfkQiSztzKa63x6atiRt 6L8Q== X-Gm-Message-State: APjAAAV0zPNph8XXDu4aSzX9LspNjujWXlNCNob2JxO1/Vbq9rAmUdKl jfgeDfvU83sNiTC+vNwme2IzL+RVpLapFYiCZBI= X-Google-Smtp-Source: APXvYqw2qr0fGhHl+KdQ8Mw87S1mWGyecNxGXObtPH0gofqUzMnGg4qGHSiqZCM/dxKxsNOIZdApK0jvH1VHaEoGk5U= X-Received: by 2002:a2e:5c45:: with SMTP id q66mr3085721ljb.197.1567025918302; Wed, 28 Aug 2019 13:58:38 -0700 (PDT) MIME-Version: 1.0 References: <87a7btgsh2.fsf@gnu.org> In-Reply-To: <87a7btgsh2.fsf@gnu.org> From: Steve Sprang Date: Wed, 28 Aug 2019 13:58:27 -0700 Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 37138@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Thanks for the feedback! Attached an updated patch. -Steve On Wed, Aug 28, 2019 at 9:33 AM Ludovic Courtès wrote: > > Hello Steve, > > Steve Sprang skribis: > > > From a3dfe6c0fa6f5fddc3c47e7501e37ba11902eb80 Mon Sep 17 00:00:00 2001 > > From: Steve Sprang > > Date: Wed, 21 Aug 2019 17:17:02 -0700 > > Subject: [PATCH] gnu: Add speedcrunch. > > > > * gnu/packages/maths.scm (speedcrunch): New variable. > > Nice. A couple of comments: > > > + (source (origin > > + (method url-fetch) > > + (uri (string-append "https://bitbucket.org/heldercorreia/" > > + "speedcrunch/get/release-" version > > + ".tar.gz")) > > I suspect this /get URL returns a generated tarball, whose exact content > might change over time. If that is the case, could you instead use > ‘git-fetch’ (or ‘hg-fetch’)? > > > + (inputs `(("qt" ,qt))) > > Please use ‘qtbase’ & co., aka. the “modular Qt packages”. The ‘qt’ > package is the old monolithic package and is actually deprecated. > > Could you send an updated patch? > > Thanks! > > Ludo’. From 6726ff51bde52459c1b27b4441c2fd070e489364 Mon Sep 17 00:00:00 2001 From: Steve Sprang Date: Wed, 21 Aug 2019 17:17:02 -0700 Subject: [PATCH] gnu: Add speedcrunch. * gnu/packages/maths.scm (speedcrunch): New variable. --- gnu/packages/maths.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 57deb15d7d..0f2acece3b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2018 Julien Lepiller ;;; Copyright © 2018 Amin Bandali ;;; Copyright © 2019 Nicolas Goaziou +;;; Copyright © 2019 Steve Sprang ;;; ;;; This file is part of GNU Guix. ;;; @@ -5136,3 +5137,36 @@ algorithm, a parametric integer programming solver, and primitives for termination analysis via the automatic synthesis of linear ranking functions.") (license license:gpl3+))) + +(define-public speedcrunch + (package + (name "speedcrunch") + (version "0.12.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://bitbucket.org/heldercorreia/speedcrunch.git") + (commit (string-append "release-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vh7cd1915bjqzkdp3sk25ngy8cq624mkh8c53c5bnzk357kb0fk")))) + (build-system cmake-build-system) + (inputs `(("qtbase" ,qtbase))) + (native-inputs `(("qttools" ,qttools))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir-to-src + (lambda _ (chdir "src") #t))))) + (synopsis "High-precision scientific calculator") + (description + "SpeedCrunch is a high-precision scientific calculator. It features a +syntax-highlighted scrollable display and is designed to be fully used via +keyboard. Some distinctive features are auto-completion of functions and +variables, a formula book, and quick insertion of constants from various +fields of knowledge.") + (home-page "http://speedcrunch.org/") + (license license:gpl2+))) + -- 2.23.0