diff options
author | Efraim Flashner | 2019-10-04 05:35:06 -0500 |
---|---|---|
committer | Efraim Flashner | 2019-10-04 05:35:06 -0500 |
commit | e2b5b4d28859be659a5c51fe3286583097ae0b75 (patch) | |
tree | 48e5d7c4d68252781ee4eec215ae269276f3c64d /gn/packages | |
parent | 23deedce76eaa3332083f1622cedd9377ccc2c33 (diff) | |
download | guix-bioinformatics-e2b5b4d28859be659a5c51fe3286583097ae0b75.tar.gz |
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.
Diffstat (limited to 'gn/packages')
-rw-r--r-- | gn/packages/maths.scm | 16 |
1 files 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 |