gnu: camlp4-4.02: Use INVOKE.

* gnu/packages/ocaml.scm (camlp4-4.02)[arguments]: Use INVOKE in build phases.
This commit is contained in:
Ricardo Wurmus 2019-01-25 13:26:24 +01:00
parent fa5d6e4c6f
commit 2c0234e78e
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 20 additions and 20 deletions

View File

@ -447,18 +447,18 @@ Git-friendly development workflow.")
;; which fails on the second attempt. ;; which fails on the second attempt.
#:parallel-build? #f #:parallel-build? #f
#:make-flags '("all") #:make-flags '("all")
#:phases (modify-phases %standard-phases #:phases
(replace (modify-phases %standard-phases
'configure (replace 'configure
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; This is a home-made 'configure' script. ;; This is a home-made 'configure' script.
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
(zero? (system* "./configure" (invoke "./configure"
(string-append "--libdir=" out (string-append "--libdir=" out
"/lib/ocaml/site-lib") "/lib/ocaml/site-lib")
(string-append "--bindir=" out "/bin") (string-append "--bindir=" out "/bin")
(string-append "--pkgdir=" out (string-append "--pkgdir=" out
"/lib/ocaml/site-lib")))))) "/lib/ocaml/site-lib")))))
(add-after 'install 'install-meta (add-after 'install 'install-meta
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
@ -466,7 +466,7 @@ Git-friendly development workflow.")
(("directory = .*") (("directory = .*")
(string-append "directory = \"" out (string-append "directory = \"" out
"/lib/ocaml/site-lib/camlp4\"\n"))) "/lib/ocaml/site-lib/camlp4\"\n")))
(zero? (system* "make" "install-META")))))))) (invoke "make" "install-META")))))))
(home-page "https://github.com/ocaml/camlp4") (home-page "https://github.com/ocaml/camlp4")
(synopsis "Write parsers in OCaml") (synopsis "Write parsers in OCaml")
(description (description