dannym pushed a commit to branch master
in repository guix.

commit ea41557c9f8bb8670e25a389a408d0112ea6aa34
Author: Danny Milosavljevic <[email protected]>
AuthorDate: Wed Mar 26 15:41:23 2025 +0100

    gnu: Add perl-math-interpolate.
    
    * gnu/packages/perl-maths.scm (perl-math-interpolate): New variable.
    
    Change-Id: I4b5b9585e53845fb1ec226a0e350fe38ec859916
---
 gnu/packages/perl-maths.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/perl-maths.scm b/gnu/packages/perl-maths.scm
index 53e0a03361..2ea29a13a9 100644
--- a/gnu/packages/perl-maths.scm
+++ b/gnu/packages/perl-maths.scm
@@ -20,6 +20,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix gexp)
   #:use-module (guix build-system perl)
   #:use-module (gnu packages)
   #:use-module (gnu packages gcc)
@@ -75,6 +76,35 @@ It implements the data type \"matrix of real numbers\" (and 
consequently also
 \"vector of real numbers\").")
     (license license:perl-license)))
 
+(define-public perl-math-interpolate
+  (package
+    (name "perl-math-interpolate")
+    (version "1.06")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/B/BZ/BZAJAC/Math-Interpolate-" version
+             ".tar.gz"))
+       (sha256
+        (base32 "0snfrg9vk0f9bznpv274f21p65gxv08x4m1myg2l5k4yvyzjyl54"))))
+    (build-system perl-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch
+            (lambda _
+              ;; perl doesn't like the original format.
+              (substitute* "Makefile.PL"
+               (("'MIN_PERL_VERSION'[ \t]*=>[ \t]*'5.004_01'")
+                "'MIN_PERL_VERSION' => '5.005'")))))))
+    (home-page "https://metacpan.org/release/Math-Interpolate";)
+    (synopsis "Interpolate the value Y from X using a list of (X, Y) pairs")
+    (description "This packages allows you to interpolate the value Y from X
+using a list of (X, Y) pairs.")
+    (license license:perl-license)))
+
 ;; This is NOT compatible with perl-pdl-2.095
 (define-public perl-pdl-2.019
   (package

Reply via email to