unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: R Veera Kumar <vkor@vkten.in>
To: 40320@debbugs.gnu.org
Subject: [bug#40320] [PATCH 2/2] gnu: Add qalculate-gtk
Date: Mon, 30 Mar 2020 10:57:58 +0530	[thread overview]
Message-ID: <e8055db728ed9ac1655d91d17e5dfae6407c7e4b.1585545646.git.vkor@vkten.in> (raw)
In-Reply-To: <c7ae76e80872ed303cbc0c8e8216f56ea7061d8e.1585545646.git.vkor@vkten.in>

Qalculate-gtk is the GTK frontend for libqalculate.
It is a multi-purpose GUI desktop calculator.
It provides basic and advanced functionality.

Signed-off-by: R Veera Kumar <vkor@vkten.in>
---
 gnu/packages/maths.scm | 55 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 1fa1d493fb..4716129f98 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -62,6 +62,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,57 @@ calculations (including integrals and equations), arbitrary precision,
 uncertainity propagation, interval arithmetic, plotting and a user-friendly
 cli.")
       (license license:gpl2+))))
+
+(define-public qalculate-gtk
+  (let ((commit "87f78ab3d7ed0dedf56edc38242d559ac07b1330")
+        (revision "1"))
+    (package
+      (name "qalculate-gtk")
+      (version (git-version "3.8.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/Qalculate/qalculate-gtk/")
+               (commit commit)))
+         (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)
+         ("m4" ,m4)))
+      (inputs
+       `(("gmp" ,gmp)
+         ("mpfr" ,mpfr)
+         ("libqalculate" ,libqalculate)
+         ("libxml2" ,libxml2)
+         ("glib" ,glib)
+         ("gtk+" ,gtk+)))
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (delete 'bootstrap) ;; fails in autogen.sh
+           (add-before 'configure 'autogen
+             (lambda _
+               (setenv "NOCONFIGURE" "TRUE")
+               (invoke "./autogen.sh")))
+           (add-before 'check 'update-po-files ;; to pass po check
+             (lambda _
+               (with-output-to-file "po/POTFILES.skip"
+                 (lambda _ (format #t "data/shortcuts.ui~%"))))))))
+      (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 and a user-friendly cli.")
+      (license license:gpl2+))))
-- 
2.26.0

  reply	other threads:[~2020-03-30  5:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30  5:22 [bug#40320] [PATCH 1/2] gnu: Add libqalculate R Veera Kumar
2020-03-30  5:27 ` R Veera Kumar [this message]
2020-03-30 10:50   ` [bug#40320] [PATCH 2/2] gnu: Add qalculate-gtk Danny Milosavljevic
2020-03-30 10:45 ` [bug#40320] [PATCH 1/2] gnu: Add libqalculate Danny Milosavljevic
2020-03-31  9:12   ` R Veera Kumar
2020-04-01  5:23 ` [bug#40320] [PATCH v2 " R Veera Kumar
2020-04-01  5:23   ` [bug#40320] [PATCH v2 2/2] gnu: Add qalculate-gtk R Veera Kumar
2020-04-03 13:39     ` bug#40320: " Ludovic Courtès
2020-04-03 13:37   ` [bug#40320] [PATCH v2 1/2] gnu: Add libqalculate Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8055db728ed9ac1655d91d17e5dfae6407c7e4b.1585545646.git.vkor@vkten.in \
    --to=vkor@vkten.in \
    --cc=40320@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).