summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2017-04-29 23:23:54 +0300
committerEfraim Flashner <efraim@flashner.co.il>2017-04-29 23:25:22 +0300
commitb6ea329a32f1d1da17ff72affab2e1fe16aff51f (patch)
treed997ff7b147aabb51ba13e1bf1f36be0958a162a /gnu/packages
parentd5fa9fd1fe90ad024ec5a14c21c95407e1f78441 (diff)
gnu: lsof: Use 'modify-phases' syntax.
* gnu/packages/lsof.scm (lsof)[arguments]: Use 'modify-phases' syntax.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/lsof.scm47
1 files changed, 22 insertions, 25 deletions
diff --git a/gnu/packages/lsof.scm b/gnu/packages/lsof.scm
index e4730baa8bf..97658c856a3 100644
--- a/gnu/packages/lsof.scm
+++ b/gnu/packages/lsof.scm
@@ -1,5 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> 2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
3;;; 4;;;
4;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
5;;; 6;;;
@@ -57,31 +58,27 @@
57 (arguments 58 (arguments
58 `(#:tests? #f ; no test target 59 `(#:tests? #f ; no test target
59 #:phases 60 #:phases
60 (alist-replace 61 (modify-phases %standard-phases
61 'unpack 62 (replace 'unpack
62 (lambda* (#:key source #:allow-other-keys) 63 (lambda* (#:key source #:allow-other-keys)
63 (let ((unpack (assoc-ref %standard-phases 'unpack))) 64 (let ((unpack (assoc-ref %standard-phases 'unpack)))
64 (unpack #:source source) 65 (unpack #:source source)
65 (unpack #:source (car (find-files "." "\\.tar$"))))) 66 (unpack #:source (car (find-files "." "\\.tar$"))))))
66 (alist-replace 67 (replace 'configure
67 'configure 68 (lambda _
68 (lambda _ 69 (setenv "LSOF_CC" "gcc")
69 (setenv "LSOF_CC" "gcc") 70 (setenv "LSOF_MAKE" "make")
70 (setenv "LSOF_MAKE" "make") 71 (zero? (system* "./Configure" "linux"))))
71 (system* "./Configure" "linux")) 72 (replace 'install
72 (alist-replace 73 (lambda* (#:key outputs #:allow-other-keys)
73 'install 74 (let ((out (assoc-ref outputs "out")))
74 (lambda* (#:key outputs #:allow-other-keys) 75 (mkdir out)
75 (let ((out (assoc-ref outputs "out"))) 76 (mkdir (string-append out "/bin"))
76 (mkdir out) 77 (copy-file "lsof" (string-append out "/bin/lsof"))
77 (mkdir (string-append out "/bin")) 78 (mkdir (string-append out "/share"))
78 (copy-file "lsof" (string-append out "/bin/lsof")) 79 (mkdir (string-append out "/share/man"))
79 (mkdir (string-append out "/share")) 80 (mkdir (string-append out "/share/man/man8"))
80 (mkdir (string-append out "/share/man")) 81 (copy-file "lsof.8" (string-append out "/share/man/man8/lsof.8"))))))))
81 (mkdir (string-append out "/share/man/man8"))
82 (copy-file "lsof.8" (string-append out "/share/man/man8/lsof.8"))
83 ))
84 %standard-phases)))))
85 (synopsis "Display information about open files") 82 (synopsis "Display information about open files")
86 (description 83 (description
87 "Lsof stands for LiSt Open Files, and it does just that. 84 "Lsof stands for LiSt Open Files, and it does just that.