From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:46058) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJVt6-0007w9-Ce for guix-patches@gnu.org; Wed, 01 Apr 2020 01:26:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJVt4-0007Sw-62 for guix-patches@gnu.org; Wed, 01 Apr 2020 01:26:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54017) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJVt4-0007Sc-2l for guix-patches@gnu.org; Wed, 01 Apr 2020 01:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJVt3-0007Zg-UX for guix-patches@gnu.org; Wed, 01 Apr 2020 01:26:01 -0400 Subject: [bug#40320] [PATCH v2 2/2] gnu: Add qalculate-gtk. Resent-Message-ID: From: R Veera Kumar Date: Wed, 1 Apr 2020 10:53:20 +0530 Message-Id: <20200401052320.21576-2-vkor@vkten.in> In-Reply-To: <20200401052320.21576-1-vkor@vkten.in> References: <20200401052320.21576-1-vkor@vkten.in> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40320@debbugs.gnu.org Cc: R Veera Kumar * gnu/packages/maths.scm (qalculate-gtk): New variable. * gnu/packages/maths.scm: Add missing modules. Signed-off-by: R Veera Kumar --- Changes in v2: - Change commit msg as per changelog format - Use git release tag instead of commit id - Use 'bootstrap with setenv appropriately - Remove m4 from native-inputs --- gnu/packages/maths.scm | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 0594e0dd66..b66c330711 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -63,6 +63,7 @@ #:use-module (guix utils) #:use-module ((guix build utils) #:select (alist-replace)) #:use-module (guix build-system cmake) + #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (guix build-system ruby) @@ -5376,3 +5377,60 @@ calculations (including integrals and equations), arbitrary precision, uncertainity propagation, interval arithmetic, plotting and a user-friendly cli.") (license license:gpl2+))) + +(define-public qalculate-gtk + (package + (name "qalculate-gtk") + (version "3.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Qalculate/qalculate-gtk/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nsg6dzg5r7rzqr671nvrf1c50rjwpz7bxv5f20i4s7agizgv840")))) + (build-system glib-or-gtk-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("intltool" ,intltool) + ("automake" ,automake) + ("autoconf" ,autoconf) + ("libtool" ,libtool) + ("file" ,file))) + (inputs + `(("gmp" ,gmp) + ("mpfr" ,mpfr) + ("libqalculate" ,libqalculate) + ("libxml2" ,libxml2) + ("glib" ,glib) + ("gtk+" ,gtk+))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'bootstrap 'setenv + ;; Prevent the autogen.sh script to carry out the configure + ;; script, which has not yet been patched to replace /bin/sh. + (lambda _ + (setenv "NOCONFIGURE" "TRUE") + #t)) + (add-before 'check 'add-pot-file + ;; the file contains translations and are currently not in use + ;; left out on purpose so add it to POTFILES.skip + (lambda _ + (with-output-to-file "po/POTFILES.skip" + (lambda _ + (format #t "data/shortcuts.ui~%") + #t)) + #t))))) + (home-page "https://qalculate.github.io/") + (synopsis "Multi-purpose graphical desktop calculator") + (description + "Qalculate-gtk is the GTK frontend for libqalculate. It is a +multi-purpose GUI desktop calculator. It provides basic and advanced +functionality. Features include customizable functions, unit calculations, +and conversions, physical constants, symbolic calculations (including +integrals and equations), arbitrary precision, uncertainity propagation, +interval arithmetic, plotting.") + (license license:gpl2+))) -- 2.26.0