From e2b5b4d28859be659a5c51fe3286583097ae0b75 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Fri, 4 Oct 2019 05:35:06 -0500 Subject: gn: octave@3.4.3: Use gnulib package. * gn/packages/maths.scm (octave-3.4.3)[arguments]: Add new phase, get 'fseeko.c' from gnulib package. [native-inputs]: Remove 'fseeko.c', add gnulib. --- gn/packages/maths.scm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/gn/packages/maths.scm b/gn/packages/maths.scm index 320d83c..df28261 100644 --- a/gn/packages/maths.scm +++ b/gn/packages/maths.scm @@ -6,6 +6,7 @@ #:use-module (gnu packages gperf) #:use-module (gnu packages maths) #:use-module (gnu packages texinfo) + #:use-module (gn packages gnulib) #:use-module (srfi srfi-1)) (define-public octave-3.4.3 @@ -38,9 +39,12 @@ "src/DLD-FUNCTIONS/convhulln.cc") (("qhull/qhull.h") "libqhull/libqhull.h") (("qhull/qhull_a.h") "libqhull/qhull_a.h")) - (copy-file (assoc-ref %build-inputs "fseeko.c") - "libgnu/fseeko.c") #t)) + (add-after 'unpack 'update-gnulib + (lambda* (#:key inputs #:allow-other-keys) + (let ((gnulib (assoc-ref inputs "gnulib"))) + (install-file (string-append gnulib "/lib/fseeko.c") "libgnu") + #t))) (replace 'configure-makeinfo (lambda* (#:key inputs #:allow-other-keys) (substitute* "src/help.cc" @@ -49,13 +53,7 @@ "\"" (assoc-ref inputs "texinfo") "/bin/makeinfo\""))) #t)))))) (native-inputs - `(("fseeko.c" ,(origin - (method url-fetch) - (uri "https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=lib/fseeko.c;hb=d40db5e23197dcd105fa3c0dc6633b51af3c08d9") - (file-name "gnulib-fseeko.c-0.0.0-1-d40db5e23") - (sha256 - (base32 - "1ifa5200pskgdzd6qi4nicwyjjkc415bs403mjrrzv8cdrf6hp3k")))) + `(("gnulib" ,(package-source gnulib)) ,@(fold alist-delete (package-native-inputs octave-cli) '("lzip")))) (inputs -- cgit v1.2.3