~ruther/guix-local

f5d377326840837e4d66f26ad4de58a974980609 — Tobias Geerinckx-Rice 9 years ago c17b598
gnu: ncftp: Use ‘modify-phases’.

* gnu/packages/ftp.scm (ncftp): Use the ‘modify-phases’ syntax.
1 files changed, 12 insertions(+), 12 deletions(-)

M gnu/packages/ftp.scm
M gnu/packages/ftp.scm => gnu/packages/ftp.scm +12 -12
@@ 100,18 100,18 @@ reliability in mind.")
                     "free software"))))))
    (build-system gnu-build-system)
    (arguments
     '(#:phases (alist-replace
                 'configure
                 (lambda* (#:key outputs #:allow-other-keys)
                   ;; This is an old 'configure' script that doesn't
                   ;; understand variables passed as arguments.
                   (let ((out (assoc-ref outputs "out")))
                     (setenv "CONFIG_SHELL" (which "sh"))
                     (setenv "SHELL" (which "sh"))
                     (zero? (system* "./configure"
                                     (string-append "--prefix=" out)))))
                 %standard-phases)
       #:tests? #f))                              ;there are no tests
     '(#:phases
       (modify-phases %standard-phases
         (replace 'configure
                  (lambda* (#:key outputs #:allow-other-keys)
                    ;; This is an old 'configure' script that doesn't
                    ;; understand variables passed as arguments.
                    (let ((out (assoc-ref outputs "out")))
                      (setenv "CONFIG_SHELL" (which "sh"))
                      (setenv "SHELL" (which "sh"))
                      (zero? (system* "./configure"
                                      (string-append "--prefix=" out)))))))
                #:tests? #f))           ;there are no tests
    (inputs `(("ncurses" ,ncurses)))
    (home-page "http://www.ncftp.com/ncftp/")
    (synopsis "Command-line File Transfer Protocol (FTP) client")