From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:43389) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jImt6-0004ZV-NU for guix-patches@gnu.org; Mon, 30 Mar 2020 01:23:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jImt4-0003uw-Gw for guix-patches@gnu.org; Mon, 30 Mar 2020 01:23:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48802) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jImt4-0003un-Dw for guix-patches@gnu.org; Mon, 30 Mar 2020 01:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jImt4-0002xw-A0 for guix-patches@gnu.org; Mon, 30 Mar 2020 01:23:02 -0400 Subject: [bug#40320] [PATCH 1/2] gnu: Add libqalculate Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:43362) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jImsf-0004Yq-0b for guix-patches@gnu.org; Mon, 30 Mar 2020 01:22:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jImsc-0003IJ-E1 for guix-patches@gnu.org; Mon, 30 Mar 2020 01:22:36 -0400 Received: from vkten.in ([104.244.73.96]:39926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jImsc-0003G2-5V for guix-patches@gnu.org; Mon, 30 Mar 2020 01:22:34 -0400 Date: Mon, 30 Mar 2020 10:52:23 +0530 From: R Veera Kumar Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Libqalculate is a multi-purpose cli desktop calculator and library. It provides basic and advanced functionality. Signed-off-by: R Veera Kumar --- gnu/packages/maths.scm | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 028f0e6ef9..1fa1d493fb 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -79,6 +79,7 @@ #:use-module (gnu packages dbm) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) + #:use-module (gnu packages file) #:use-module (gnu packages flex) #:use-module (gnu packages fltk) #:use-module (gnu packages fontutils) @@ -86,8 +87,10 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages gd) #:use-module (gnu packages ghostscript) + #:use-module (gnu packages glib) #:use-module (gnu packages graphviz) #:use-module (gnu packages gtk) + #:use-module (gnu packages icu4c) #:use-module (gnu packages image) #:use-module (gnu packages java) #:use-module (gnu packages less) @@ -5319,3 +5322,57 @@ researchers and developers alike to get started on SAT.") (home-page "http://minisat.se/MiniSat.html") (license license:expat)))) + +(define-public libqalculate + (let ((commit "90b52e685c1b0575558c5dd449dde71c313d084a") + (revision "1")) + (package + (name "libqalculate") + (version (git-version "3.8.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Qalculate/libqalculate/") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vbaza9c7159xf2ym90l0xkyj2mp6c3hbghhsqn29yvz08fda9df")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("intltool" ,intltool) + ("automake" ,automake) + ("autoconf" ,autoconf) + ("libtool" ,libtool) + ("m4" ,m4) + ("doxygen" ,doxygen) + ("file" ,file))) + (inputs + `(("gmp" ,gmp) + ("mpfr" ,mpfr) + ("libxml2" ,libxml2) + ("curl" ,curl) + ("icu4c" ,icu4c) + ("gettext" ,gettext-minimal) + ("gnuplot" ,gnuplot) + ("readline" ,readline) + ("libiconv" ,libiconv))) + (arguments + `( #:phases + (modify-phases %standard-phases + (delete 'bootstrap) ;; fails in autogen.sh + (add-before 'configure 'autogen + (lambda _ + (setenv "NOCONFIGURE" "TRUE") + (invoke "./autogen.sh")))))) + (home-page "https://qalculate.github.io/") + (synopsis "Multi-purpose cli desktop calculator and library") + (description + "Libqalculate is a multi-purpose cli desktop calculator and library. +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