From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44813) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmitr-0003Q5-FR for guix-patches@gnu.org; Sun, 14 Jul 2019 14:07:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmitq-0005Fx-Ax for guix-patches@gnu.org; Sun, 14 Jul 2019 14:07:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37083) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmitq-0005Fe-7H for guix-patches@gnu.org; Sun, 14 Jul 2019 14:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hmitp-0006yX-W1 for guix-patches@gnu.org; Sun, 14 Jul 2019 14:07:02 -0400 Subject: [bug#36652] [PATCH 1/2] gnu: Add libnova. Resent-Message-ID: From: Efraim Flashner Date: Sun, 14 Jul 2019 21:05:53 +0300 Message-Id: <20190714180554.31307-1-efraim@flashner.co.il> In-Reply-To: <20190714180329.31051-1-efraim@flashner.co.il> References: <20190714180329.31051-1-efraim@flashner.co.il> 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: 36652@debbugs.gnu.org * gnu/packages/astronomy.scm (libnova): New variable. --- gnu/packages/astronomy.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 4cf7c10352..2bce26a754 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -254,3 +254,38 @@ accurately in real time at any rate desired.") (arguments `(#:configure-flags '("-DENABLE_GTK=ON" "-DENABLE_QT=OFF") #:tests? #f)))) + +(define-public libnova + (package + (name "libnova") + (version "0.16") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.code.sf.net/p/libnova/libnova.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0icwylwkixihzni0kgl0j8dx3qhqvym6zv2hkw2dy6v9zvysrb1b")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-git-version + (lambda _ + (substitute* "./git-version-gen" + (("/bin/sh") (which "sh"))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool))) + (synopsis "Celestial mechanics, astrometry and astrodynamics library") + (description "Libnova is a general purpose, double precision, Celestial +Mechanics, Astrometry and Astrodynamics library.") + (home-page "http://libnova.sourceforge.net/") + (license (list license:lgpl2.0 + license:gpl2)))) ; examples/transforms.c & lntest/*.c + -- 2.22.0