~ruther/guix-local

ea41557c9f8bb8670e25a389a408d0112ea6aa34 — Danny Milosavljevic 1 year, 3 months ago 261f179
gnu: Add perl-math-interpolate.

* gnu/packages/perl-maths.scm (perl-math-interpolate): New variable.

Change-Id: I4b5b9585e53845fb1ec226a0e350fe38ec859916
1 files changed, 30 insertions(+), 0 deletions(-)

M gnu/packages/perl-maths.scm
M gnu/packages/perl-maths.scm => gnu/packages/perl-maths.scm +30 -0
@@ 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