guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add gctp


From: Thomas Danckaert
Subject: Re: [PATCH] Add gctp
Date: Thu, 15 Sep 2016 19:08:08 +0200 (CEST)

Hi Guix,

I've cleaned up my gctp patch, following your advice:

From: Leo Famulari <address@hidden>
Subject: Re: [PATCH] Add gctp
Date: Mon, 18 Jul 2016 17:47:23 -0400

If it's not possible to use the bundled GCTPs then we have to use an
external library, but I think it should be maintained outside of Guix. As you say, it should not be much work to put it on a public Git repo or
to host a tarball, since the development is basically complete.

I took the contents of the gctpc20.tar.Z archive distributed with wgrib2, added an autoconf-based build script, and published the repository on Github. Changes are minor: I had to make some changes to the test programs, and fix one input routine (int size mismatch when reading an auxiliary binary file).

This version of the patch uses a release tarball published on github. Is there a better place I can host a tarball (if not the repository itself?).

best,

Thomas
>From 442f902377c95d72b59d2311c78df2d403f02ea4 Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <address@hidden>
Date: Fri, 17 Jun 2016 10:41:50 +0200
Subject: [PATCH] gnu: Add gctp.

* gnu/packages/maths.cm (gctp): New variable.
---
 gnu/packages/maths.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 44a24ef..e275436 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -418,6 +418,30 @@ plotting engine by third-party applications like Octave.")
       (license (license:fsf-free
                 
"http://gnuplot.cvs.sourceforge.net/gnuplot/gnuplot/Copyright";)))))
 
+(define-public gctp
+  (package
+    (name "gctp")
+    (version "2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri "https://github.com/OkoSanto/GCTP/archive/v2.0.0.tar.gz";)
+       (sha256
+        (base32
+         "0l9aqnqynh9laicn5dxf3rsb1n14xiks79wbyqccirzmjqd1c1x4"))))
+    (native-inputs
+     `(("fortran" ,gfortran)))
+    (build-system gnu-build-system)
+    (synopsis "General Cartographic Transformation Package (GCTP)")
+    (description
+     "The General Cartographic Transformation Package (GCTP) is a system of
+software routines designed to permit the transformation of coordinate pairs
+from one map projection to another.  The GCTP is the standard computer
+software used by the National Mapping Division for map projection
+computations.")
+    (home-page "https://github.com/OkoSanto/GCTP";)
+    (license 'license:public-domain))) ; 
https://www2.usgs.gov/laws/info_policies.html
+
 (define-public hdf5
   (package
     (name "hdf5")
-- 
2.10.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]