diff options
author | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-03-26 15:41:23 +0100 |
---|---|---|
committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-03-26 15:42:44 +0100 |
commit | ea41557c9f8bb8670e25a389a408d0112ea6aa34 (patch) | |
tree | 8b31df261f445f7396faf98f7847c7b95770b7a3 | |
parent | 261f179c74a23dc5a6d76439cb23cfd317e3080e (diff) | |
download | guix-ea41557c9f8bb8670e25a389a408d0112ea6aa34.tar.gz guix-ea41557c9f8bb8670e25a389a408d0112ea6aa34.zip |
gnu: Add perl-math-interpolate.
* gnu/packages/perl-maths.scm (perl-math-interpolate): New variable.
Change-Id: I4b5b9585e53845fb1ec226a0e350fe38ec859916
-rw-r--r-- | gnu/packages/perl-maths.scm | 30 |
1 files changed, 30 insertions, 0 deletions
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 |