Patchwork [3/3] gnu: Add gnuastro

login
register
mail settings
Submitter John Darrington
Date Aug. 30, 2016, 7:21 p.m.
Message ID <1472584872-19300-3-git-send-email-jmd@gnu.org>
Download mbox | patch
Permalink /patch/15095/
State New
Headers show

Comments

John Darrington - Aug. 30, 2016, 7:21 p.m.
* gnu/packages/astronomy.scm (gnuastro): New variable.
---
 gnu/packages/astronomy.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)
Leo Famulari - Aug. 30, 2016, 8:45 p.m.
On Tue, Aug 30, 2016 at 09:21:12PM +0200, John Darrington wrote:
> * gnu/packages/astronomy.scm (gnuastro): New variable.

> +    (source
> +     (origin

I would shift this one column to the right, and the rest of (source)
accordingly.

> +       (method url-fetch)
> +      (uri (string-append "mirror://gnu/gnuastro/gnuastro-"
> +                          version ".tar.gz"))

The (uri) should be aligned with (method url-fetch). Otherwise LGTM.
Alex Kost - Aug. 31, 2016, 6:47 a.m.
John Darrington (2016-08-30 22:21 +0300) wrote:

> * gnu/packages/astronomy.scm (gnuastro): New variable.
> ---
>  gnu/packages/astronomy.scm | 28 +++++++++++++++++++++++++++-
>  1 file changed, 27 insertions(+), 1 deletion(-)
>
>
> diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
> index 53e86c8..24c6d79 100644
> --- a/gnu/packages/astronomy.scm
> +++ b/gnu/packages/astronomy.scm
> @@ -18,8 +18,10 @@
>  
>  (define-module (gnu packages astronomy)
>    #:use-module (guix packages)
> -  #:use-module (guix licenses)
> +  #:use-module ((guix licenses) #:prefix license:)
>    #:use-module (guix download)
> +  #:use-module (gnu packages image)
> +  #:use-module (gnu packages maths)
>    #:use-module (guix build-system gnu))
>  
>  (define-public cfitsio
> @@ -78,3 +80,27 @@ in FITS files.")
>  keywords and usage that provide for the description of astronomical coordinate
>  systems in a FITS image header.")  
>      (license license:lgpl3+)))
> +
> +(define-public gnuastro
> +  (package
> +    (name "gnuastro")
> +    (version "0.1")
> +    (source
> +     (origin
> +       (method url-fetch)
> +      (uri (string-append "mirror://gnu/gnuastro/gnuastro-"
> +                          version ".tar.gz"))
         ^^
Please shift this (uri ...) one character to the right.

> +       (sha256
> +        (base32
> +         "105s007kw8l3jwwhvh8k9lgbpfbf7sqh2wpxmvpv3qdr6nh9lnjg"))))
> +    (inputs
> +     `(("cfitsio" ,cfitsio)
> +       ("gsl" ,gsl)
> +       ("libjpeg" ,libjpeg-8)
> +       ("wcslib" ,wcslib)))
> +    (build-system gnu-build-system)
> +    (home-page "http://www.gnu.org/software/gnuastro")
> +    (synopsis "Astronomical data manipulation programs")
> +    (description "The GNU Astronomy Utilities (Gnuastro) is a suite of
> +programs for the manipulation and analysis of astronomical data.")
> +    (license license:gpl3+)))

Patch

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 53e86c8..24c6d79 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -18,8 +18,10 @@ 
 
 (define-module (gnu packages astronomy)
   #:use-module (guix packages)
-  #:use-module (guix licenses)
+  #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix download)
+  #:use-module (gnu packages image)
+  #:use-module (gnu packages maths)
   #:use-module (guix build-system gnu))
 
 (define-public cfitsio
@@ -78,3 +80,27 @@  in FITS files.")
 keywords and usage that provide for the description of astronomical coordinate
 systems in a FITS image header.")  
     (license license:lgpl3+)))
+
+(define-public gnuastro
+  (package
+    (name "gnuastro")
+    (version "0.1")
+    (source
+     (origin
+       (method url-fetch)
+      (uri (string-append "mirror://gnu/gnuastro/gnuastro-"
+                          version ".tar.gz"))
+       (sha256
+        (base32
+         "105s007kw8l3jwwhvh8k9lgbpfbf7sqh2wpxmvpv3qdr6nh9lnjg"))))
+    (inputs
+     `(("cfitsio" ,cfitsio)
+       ("gsl" ,gsl)
+       ("libjpeg" ,libjpeg-8)
+       ("wcslib" ,wcslib)))
+    (build-system gnu-build-system)
+    (home-page "http://www.gnu.org/software/gnuastro")
+    (synopsis "Astronomical data manipulation programs")
+    (description "The GNU Astronomy Utilities (Gnuastro) is a suite of
+programs for the manipulation and analysis of astronomical data.")
+    (license license:gpl3+)))