From patchwork Fri Mar 22 03:47:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 1525 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 2264E16DC8; Fri, 22 Mar 2019 03:52:13 +0000 (GMT) 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,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham 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 81BE716DC4 for ; Fri, 22 Mar 2019 03:52:12 +0000 (GMT) Received: from localhost ([127.0.0.1]:51278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7BE2-0005Wj-W0 for patchwork@mira.cbaines.net; Thu, 21 Mar 2019 23:52:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7BE0-0005WZ-I4 for guix-patches@gnu.org; Thu, 21 Mar 2019 23:52:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7BDy-00025g-LG for guix-patches@gnu.org; Thu, 21 Mar 2019 23:52:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40359) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7BDu-00023p-8m for guix-patches@gnu.org; Thu, 21 Mar 2019 23:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h7BDu-0000aR-3Q for guix-patches@gnu.org; Thu, 21 Mar 2019 23:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#34942] [PATCH] gnu: Add mlucas. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Mar 2019 03:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34942 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34942@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15532267122235 (code B ref -1); Fri, 22 Mar 2019 03:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Mar 2019 03:51:52 +0000 Received: from localhost ([127.0.0.1]:53903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7BDj-0000Zz-Sy for submit@debbugs.gnu.org; Thu, 21 Mar 2019 23:51:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7BDe-0000Zj-9z for submit@debbugs.gnu.org; Thu, 21 Mar 2019 23:51:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:53441) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7BDZ-0001qH-1X for submit@debbugs.gnu.org; Thu, 21 Mar 2019 23:51:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7BDX-0005Sn-MR for guix-patches@gnu.org; Thu, 21 Mar 2019 23:51:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7B9q-0005Gx-RH for guix-patches@gnu.org; Thu, 21 Mar 2019 23:47:52 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:49752) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7B9p-0005Ei-HT for guix-patches@gnu.org; Thu, 21 Mar 2019 23:47:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tUmvamvKqZAi3O8vjM4j0TMUitE6UgkEnk1tkVS5AsY=; b=GQ/BgGRlj3AQigCKYimthBRrDy 707gkgbvLqUdhrVHIgvRi+ysClhc2Gms4w4K+DfCj682bUrMZ5Wfb9Zas+e7+5atU5IWPadJqWxx5 Bx9mKkMFRB9vCfvf9wfIZZ7kjuDDciIl9en/fqqTIlRmRRCjSv2JsFcbZak1Rh2u7lDs=; Received: from [14.139.128.10] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1h7B9k-00074p-Oa; Fri, 22 Mar 2019 09:17:44 +0530 From: Arun Isaac Date: Fri, 22 Mar 2019 09:17:29 +0530 Message-Id: <20190322034729.17348-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (mlucas): New variable. --- gnu/packages/maths.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index ddb4672ff9..c10267432a 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4818,3 +4818,54 @@ implemented as callable objects, and bases of finite element spaces.") built on top of DUNE, the Distributed and Unified Numerics Environment.") ;; Either GPL version 2 with "runtime exception" or LGPLv3+. (license (list license:lgpl3+ license:gpl2)))) + +(define-public mlucas + (package + (name "mlucas") + (version "18") + (source + (origin + (method url-fetch) + (uri (string-append + "https://mersenneforum.org/mayer/src/C/mlucas_v" version ".txz")) + (sha256 + (base32 + "1ax12qj9lyvnx4vs3gx7l8r3wx5gjbsdswp5f00ik9z0wz7xf297")))) + (build-system gnu-build-system) + (inputs + `(("python2" ,python-2))) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda _ + (chdir "src") + (call-with-output-file "Makefile" + (lambda (port) + (format port "CC = gcc +CFLAGS = -O3 ~a -DUSE_THREADS +LDLIBS = -lm -lpthread -lrt +Mlucas: $(addsuffix .o,$(basename $(wildcard *.c))) +" + ,(let ((system (or (%current-target-system) + (%current-system)))) + (cond + ((string-prefix? "x86_64" system) "-DUSE_SSE2") + (else "")))))) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) + (install-file "Mlucas" bin) + (install-file "primenet.py" bin)) + #t))))) + (home-page "https://www.mersenne.org") + (synopsis "Great Internet Mersenne Prime Search (GIMPS) distributed computing client") + (description "Mlucas performs Lucas-Lehmer primality testing of Mersenne +numbers in search of a world-record prime. You may use it to test any +suitable number as you wish, but it is preferable that you do so in a +coordinated fashion, as part of the Great Internet Mersenne Prime +Search (GIMPS). Mlucas also includes a simple Python script for assignment +management via the GIMPS project's Primenet server.") + (license license:gpl2+)))