gnu: git-flow: Use 'modify-phases'.

* gnu/packages/version-control.scm (git-flow)[arguments]: Use
'modify-phases'.
This commit is contained in:
Efraim Flashner 2016-07-22 15:45:15 +03:00
parent 430e67a459
commit aac42d7885
No known key found for this signature in database
GPG key ID: F4C1D3917EACEE93

View file

@ -490,19 +490,19 @@ (define-public git-flow
'(#:tests? #f ; no tests '(#:tests? #f ; no tests
#:make-flags (list (string-append "prefix=" #:make-flags (list (string-append "prefix="
(assoc-ref %outputs "out"))) (assoc-ref %outputs "out")))
#:phases (alist-cons-after #:phases
'unpack 'reset-shFlags-link (modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'reset-shFlags-link
;; The link points to a file in the shFlags submodule. (lambda* (#:key inputs #:allow-other-keys)
;; Redirect it to point to our system shFlags. ;; The link points to a file in the shFlags submodule.
(let ((shflags (assoc-ref inputs "shflags"))) ;; Redirect it to point to our system shFlags.
(begin (let ((shflags (assoc-ref inputs "shflags")))
(delete-file "gitflow-shFlags") (begin
(symlink (string-append shflags "/src/shflags") (delete-file "gitflow-shFlags")
"gitflow-shFlags")))) (symlink (string-append shflags "/src/shflags")
(alist-delete "gitflow-shFlags")))))
'configure (delete 'configure)
(alist-delete 'build %standard-phases))))) (delete 'build))))
(home-page "http://nvie.com/posts/a-successful-git-branching-model/") (home-page "http://nvie.com/posts/a-successful-git-branching-model/")
(synopsis "Git extensions for Vincent Driessen's branching model") (synopsis "Git extensions for Vincent Driessen's branching model")
(description (description