From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:36313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx9qC-00052e-U1 for guix-patches@gnu.org; Fri, 22 Feb 2019 07:22:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gx9qA-0001Kz-RF for guix-patches@gnu.org; Fri, 22 Feb 2019 07:22:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34084) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gx9q6-0001Fi-RG for guix-patches@gnu.org; Fri, 22 Feb 2019 07:22:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gx9q6-0000NI-Hw for guix-patches@gnu.org; Fri, 22 Feb 2019 07:22:02 -0500 Subject: [bug#34615] [PATCH] gnu: Add libtommath. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:35706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx9ot-0004vw-BO for guix-patches@gnu.org; Fri, 22 Feb 2019 07:20:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gx9or-0008MM-NA for guix-patches@gnu.org; Fri, 22 Feb 2019 07:20:47 -0500 Received: from flashner.co.il ([178.62.234.194]:53928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx9or-0007ve-2A for guix-patches@gnu.org; Fri, 22 Feb 2019 07:20:45 -0500 From: Efraim Flashner Date: Fri, 22 Feb 2019 14:20:14 +0200 Message-Id: <20190222122014.21600-1-efraim@flashner.co.il> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 34615@debbugs.gnu.org * gnu/packages/algebra.scm (libtommath): New variable. --- gnu/packages/algebra.scm | 47 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index f9ae22b3f3..98dc414ac5 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -4,7 +4,7 @@ ;;; Copyright =C2=A9 2016, 2017, 2018, 2019 Nicolas Goaziou ;;; Copyright =C2=A9 2014, 2018 Mark H Weaver ;;; Copyright =C2=A9 2016, 2018, 2019 Ricardo Wurmus -;;; Copyright =C2=A9 2017 Efraim Flashner +;;; Copyright =C2=A9 2017, 2019 Efraim Flashner ;;; Copyright =C2=A9 2017, 2018 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017 Marius Bakke ;;; Copyright =C2=A9 2017, 2019 Eric Bavier @@ -1000,3 +1000,48 @@ objects.") ;; means that the gpl2+ licence of GAP itself applies, but to be on = the ;; safe side, we drop them for now. (license license:gpl2+))) + +(define-public libtommath + (package + (name "libtommath") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/libtom/libtommath/releas= es/" + "download/v" version "/ltm-" version ".tar.x= z")) + (sha256 + (base32 + "1bbyagqzfdbg37k1n08nsqzdf44z8zsnjjinqbsyj7rxg246qilh")) + (patches (search-patches "libtommath-fix-linkage.patch")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'configure) ; no configure + (add-after 'unpack 'prepare-build + (lambda _ + ;; Don't pull in coreutils. + (substitute* "makefile_include.mk" + (("arch") "uname -m")) + (delete-file "makefile") + (symlink "makefile.shared" "makefile") + #t)) + (replace 'check + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" "test_standalone" make-flags) + (invoke "sh" "test"))) + (add-after 'check 'make-static + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" "-f" "makefile.unix" "install" make-fl= ags)))) + #:make-flags (list (string-append "PREFIX=3D" (assoc-ref %outputs= "out")) + "CC=3Dgcc"))) + (native-inputs + `(("libtool" ,libtool))) + (home-page "https://www.libtom.net/LibTomMath/") + (synopsis "portable number theoretic multiple-precision integer libr= ary") + (description "LibTomMath is a portable number theoretic multiple-pre= cision +integer library written entirely in C. The library is designed to provi= de a +simple to work with API that provides fairly efficient routines that bui= ld out +of the box without configuration.") + (license license:unlicense))) --=20 2.20.1