Subject: Re: [bug#28555] [PATCH 1/3] gnu: Add opensm.

From: [email-masked] (Ludovic Courtès)
Date: Sat, 23 Sep 2017 17:54:25 +0200

Dave Love <[email-masked]> skribis:

> * gnu/packages/fabric-management.scm: New file.
> * gnu/local.mk: Add it.

Nice!  I adjusted it as shown above and committed.

Thanks!

Ludo’.

diff --git a/gnu/packages/fabric-management.scm b/gnu/packages/fabric-management.scm
index abef18d36..873187769 100644
--- a/gnu/packages/fabric-management.scm
+++ b/gnu/packages/fabric-management.scm
@@ -49,17 +49,19 @@
     (inputs
      `(("rdma-core" ,rdma-core)))
     (arguments
-     '(#:configure-flags '("--disable-static")
+     `(#:configure-flags '("--disable-static")
        #:phases
        (modify-phases %standard-phases
          (add-after 'install 'doc
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((base (assoc-ref outputs "out"))
-                    (doc (string-append base "/share/doc")))
-               (mkdir-p doc)
-               (zero?
-                (system
-                 (string-append "cp AUTHORS COPYING ChangeLog doc/* " doc)))))))))
+                    (doc  (string-append base "/share/doc/"
+                                         ,name "-" ,version)))
+               (for-each (lambda (file)
+                           (install-file file doc))
+                         (append (list "AUTHORS" "COPYING" "ChangeLog")
+                                 (find-files "doc")))
+               #t))))))
     (home-page "https://www.openfabrics.org/")
     (synopsis "OpenIB InfiniBand Subnet Manager and management utilities")
     (description "\