GNU bug report logs - #26112
[PATCH 2/7] gnu: Add niftilib.

Previous Next

Package: guix-patches;

Reported by: John Darrington <jmd <at> gnu.org>

Date: Wed, 15 Mar 2017 20:07:03 UTC

Severity: normal

Tags: patch

Done: John Darrington <john <at> darrington.wattle.id.au>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: John Darrington <john <at> darrington.wattle.id.au>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#26112: closed ([PATCH 2/7] gnu: Add niftilib.)
Date: Sat, 18 Mar 2017 14:36:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 18 Mar 2017 15:35:38 +0100
with message-id <201703181435.v2IEZdHY017331 <at> jocasta.intra>
and subject line Done
has caused the debbugs.gnu.org bug report #26112,
regarding [PATCH 2/7] gnu: Add niftilib.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
26112: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26112
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: John Darrington <jmd <at> gnu.org>
To: guix-patches <at> gnu.org
Cc: John Darrington <jmd <at> gnu.org>
Subject: [PATCH 2/7] gnu: Add niftilib.
Date: Wed, 15 Mar 2017 21:05:19 +0100
* gnu/packages/image.scm (niftilib): New variable.
---
 gnu/packages/image.scm | 58 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 57 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 53ed69a..82ea89c 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -6,7 +6,7 @@
 ;;; Copyright © 2014, 2016 Ricardo Wurmus <rekado <at> elephly.net>
 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli <at> gmail.com>
 ;;; Copyright © 2015 Amirouche Boubekki <amirouche <at> hypermove.net>
-;;; Copyright © 2014 John Darrington <jmd <at> gnu.org>
+;;; Copyright © 2014, 2017 John Darrington <jmd <at> gnu.org>
 ;;; Copyright © 2016 Leo Famulari <leo <at> famulari.name>
 ;;; Copyright © 2016, 2017 Leo Famulari <leo <at> famulari.name>
 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim <at> flashner.co.il>
@@ -1114,3 +1114,59 @@ interface.  It supports color space extensions that allow it to compress from
 and decompress to 32-bit and big-endian pixel buffers (RGBX, XBGR, etc.).")
     (license (list license:bsd-3        ; jsimd*.[ch] and most of simd/
                    license:ijg))))      ; the rest
+
+(define-public niftilib
+  (package
+   (name "niftilib")
+   (version "2.0.0")
+   (source (origin
+            (method url-fetch)
+            (uri (list (string-append "mirror://sourceforge/niftilib/"
+                                      "nifticlib/nifticlib_2_0_0/"
+                                      "/nifticlib-" version ".tar.gz")))
+            (sha256
+             (base32 "123z9bwzgin5y8gi5ni8j217k7n683whjsvg0lrpii9flgk8isd3"))))
+   (build-system gnu-build-system)
+   (arguments
+    '(#:tests? #f
+      #:parallel-build? #f
+      #:phases
+      (modify-phases %standard-phases
+        (replace 'install
+                 (lambda _
+                   (for-each
+                    (lambda (dir)
+                      (let ((directory (assoc-ref %outputs "out")))
+                        (mkdir-p (string-append directory "/" dir))
+                        (zero? (system* "cp" "-a" dir directory))))
+                    '("bin" "lib" "include"))))
+        (replace 'configure
+                 (lambda _
+                   (substitute* "Makefile"
+                     (("^SHELL[ \t]*=[ \t]*csh")
+                      (string-append "SHELL = "
+                                     (assoc-ref %build-inputs "bash")
+                                     "/bin/sh"))
+
+                     (("^CFLAGS[ \t]*=[ \t]\\$\\(ANSI_FLAGS\\)")
+                      "CFLAGS = $(ANSI_FLAGS) -fPIC")
+
+                     (("^ZLIB_INC[ \t]*=[ \t]*-I/usr/include")
+                      (string-append "ZLIB_INC = -I"
+                                     (assoc-ref %build-inputs "zlib")
+                                     "/include"))
+
+                     (("^CP[ \t]*=[ \t]*cp")
+                      (string-append "CP = "
+                                     (assoc-ref %build-inputs "coreutils")
+                                     "/bin/cp")))
+                   #t)))))
+   (inputs
+    `(("zlib" ,zlib)))
+   (synopsis "Library for reading and writing files in the nifti-1 format")
+   (description   "Niftilib is a set of i/o libraries for reading and writing
+files in the nifti-1 data format - a binary file format for storing
+medical image data, e.g. magnetic resonance image (MRI) and functional MRI
+(fMRI) brain images.")
+   (home-page "http://niftilib.sourceforge.net")
+   (license license:public-domain)))
-- 
2.1.4



[Message part 3 (message/rfc822, inline)]
From: John Darrington <john <at> darrington.wattle.id.au>
To: 26112-done <at> debbugs.gnu.org
Subject: Done
Date: Sat, 18 Mar 2017 15:35:38 +0100
I pushed this.  Thanks.


This bug report was last modified 8 years and 68 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.