emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#29994: closed ([PATCH 2/2] gnu: Add nmoldyn.)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#29994: closed ([PATCH 2/2] gnu: Add nmoldyn.)
Date: Fri, 05 Jan 2018 21:22:02 +0000

Your message dated Fri, 5 Jan 2018 16:21:23 -0500
with message-id <address@hidden>
and subject line Re: [bug#29994] [PATCH 2/2] gnu: Add nmoldyn.
has caused the debbugs.gnu.org bug report #29994,
regarding [PATCH 2/2] gnu: Add nmoldyn.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
29994: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29994
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH 2/2] gnu: Add nmoldyn. Date: Fri, 5 Jan 2018 17:14:24 +0100
* gnu/packages/chemistry.scm (nmoldyn): New variable.
---
 gnu/packages/chemistry.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

diff --git a/gnu/packages/chemistry.scm b/gnu/packages/chemistry.scm
index 871d6f668..9e60ade4d 100644
--- a/gnu/packages/chemistry.scm
+++ b/gnu/packages/chemistry.scm
@@ -20,6 +20,8 @@
   #:use-module (guix packages)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix download)
+  #:use-module (gnu packages gv)
+  #:use-module (gnu packages maths)
   #:use-module (gnu packages python)
   #:use-module (guix build-system python))
 
@@ -52,3 +54,68 @@ domains by comparing two protein structures, or from normal 
mode analysis on a
 single structure.  The software is currently not actively maintained and works
 only with Python 2 and NumPy < 1.9.")
     (license license:cecill-c)))
+
+(define with-numpy-1.8
+  (package-input-rewriting `((,python2-numpy . ,python2-numpy-1.8))))
+
+(define-public nmoldyn
+  (package
+    (name "nmoldyn")
+    (version "3.0.11")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://bitbucket.org/khinsen/";
+                           "nmoldyn3/downloads/nMOLDYN-"
+                           version ".tar.gz"))
+       (file-name (string-append "nMOLDYN-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1mvmz3lkr217kdrd8cvdr1d82y58wp1403c9rnd943mijgq8xb5a"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-matplotlib" ,(with-numpy-1.8 python2-matplotlib))
+       ("python-scientific", python2-scientific)
+       ("netcdf", netcdf)
+       ("gv" ,gv)))
+    (propagated-inputs
+     `(("python-mmtk" ,python2-mmtk)))
+    (arguments
+     `(#:python ,python-2
+       #:tests? #f  ; No test suite
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'create-linux2-directory
+           (lambda _
+             (mkdir-p "nMOLDYN/linux2")))
+         (add-before 'build 'change-PDF-viewer
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "nMOLDYN/Preferences.py"
+               ;; Set the paths for external executables, substituting
+               ;; gv for acroread.
+               ;; There is also vmd_path, but VMD is not free software
+               ;; and Guix contains currently no free molecular viewer that
+               ;; could be substituted.
+               (("PREFERENCES\\['acroread_path'\\] = ''")
+                (format "PREFERENCES['acroread_path'] = '~a'"
+                        (which "gv")))
+               (("PREFERENCES\\['ncdump_path'\\] = ''")
+                (format "PREFERENCES['ncdump_path'] = '~a'"
+                        (which "ncdump")))
+               (("PREFERENCES\\['ncgen_path'\\] = ''")
+                (format "PREFERENCES['ncgen_path'] = '~a'"
+                        (which "ncgen3")))
+               (("PREFERENCES\\['task_manager_path'\\] = ''")
+                (format "PREFERENCES['task_manager_path'] = '~a'"
+                        (which "task_manager")))
+               ;; Show documentation as PDF
+               (("PREFERENCES\\['documentation_style'\\] = 'html'")
+                "PREFERENCES['documentation_style'] = 'pdf'") ))))))
+    (home-page "http://dirac.cnrs-orleans.fr/nMOLDYN/";)
+    (synopsis "Analysis software for Molecular Dynamics trajectories")
+    (description "nMOLDYN is an interactive analysis program for Molecular 
Dynamics
+simulations.  It is especially designed for the computation and decomposition 
of
+neutron scattering spectra, but also computes other quantities.  The software
+is currently not actively maintained and works only with Python 2 and
+NumPy < 1.9.")
+    (license license:cecill)))
-- 
2.14.3 (Apple Git-98)




--- End Message ---
--- Begin Message --- Subject: Re: [bug#29994] [PATCH 2/2] gnu: Add nmoldyn. Date: Fri, 5 Jan 2018 16:21:23 -0500 User-agent: Mutt/1.9.2 (2017-12-15)
On Fri, Jan 05, 2018 at 05:14:24PM +0100, Konrad Hinsen wrote:
> * gnu/packages/chemistry.scm (nmoldyn): New variable.

> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://bitbucket.org/khinsen/";
> +                           "nmoldyn3/downloads/nMOLDYN-"
> +                           version ".tar.gz"))
> +       (file-name (string-append "nMOLDYN-" version ".tar.gz"))

As with domainfinder, I removed file-name.

Pushed as f250a868d8c687df08559682fa68fb4ea2a1ea69

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]