[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/11: gnu: camlp4: Install camlp4 META file.
From: |
David Craven |
Subject: |
07/11: gnu: camlp4: Install camlp4 META file. |
Date: |
Wed, 4 Jan 2017 15:05:59 +0000 (UTC) |
dvc pushed a commit to branch master
in repository guix.
commit ad3d730e3a6ef592f62578d1f40796272e2ea3ec
Author: Julien Lepiller <address@hidden>
Date: Thu Dec 22 20:13:49 2016 +0100
gnu: camlp4: Install camlp4 META file.
* gnu/packages/ocaml.scm (camlp4)[arguments]: Install in OCAMLPATH and
META file.
(ocaml-findlib)[arguments]: Delete camlp4 META file.
Signed-off-by: David Craven <address@hidden>
---
gnu/packages/ocaml.scm | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index dd43741..b3e3bc7 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -256,9 +256,19 @@ Git-friendly development workflow.")
;; This is a home-made 'configure' script.
(let ((out (assoc-ref outputs "out")))
(zero? (system* "./configure"
- (string-append "--libdir=" out "/lib")
+ (string-append "--libdir=" out
+ "/lib/ocaml/site-lib")
(string-append "--bindir=" out "/bin")
- (string-append "--pkgdir=" out)))))))))
+ (string-append "--pkgdir=" out
+
"/lib/ocaml/site-lib"))))))
+ (add-after 'install 'install-meta
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (substitute* "camlp4/META.in"
+ (("directory = .*")
+ (string-append "directory = \"" out
+ "/lib/ocaml/site-lib/camlp4\"\n")))
+ (zero? (system* "make" "install-META"))))))))
(home-page "https://github.com/ocaml/camlp4")
(synopsis "Write parsers in OCaml")
(description
@@ -726,7 +736,12 @@ to the other.")
"-config" (string-append out "/etc/ocamfind.conf")
"-mandir" (string-append out "/share/man")
"-sitelib" (string-append out "/lib/ocaml/site-lib")
- "-with-toolbox")))))))
+ "-with-toolbox"))))
+ (add-after 'install 'remove-camlp4
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (delete-file-recursively
+ (string-append out
"/lib/ocaml/site-lib/camlp4"))))))))
(home-page "http://projects.camlcity.org/projects/findlib.html")
(synopsis "Management tool for OCaml libraries")
(description
- branch master updated (1ff755d -> ddf2b50), David Craven, 2017/01/04
- 04/11: gnu: camlp4: Compile native version., David Craven, 2017/01/04
- 03/11: gnu: ocaml: Fix indentation., David Craven, 2017/01/04
- 06/11: gnu: ocaml: Use a helper function to download from ocaml-forge., David Craven, 2017/01/04
- 09/11: gnu: Add camlzip., David Craven, 2017/01/04
- 02/11: gnu: ocaml: Add CAML_LD_LIBRARY_PATH search-path., David Craven, 2017/01/04
- 10/11: gnu: Add ocamlmod., David Craven, 2017/01/04
- 08/11: gnu: Add ocaml-ounit., David Craven, 2017/01/04
- 11/11: gnu: Add ocaml-zarith., David Craven, 2017/01/04
- 07/11: gnu: camlp4: Install camlp4 META file.,
David Craven <=
- 05/11: gnu: Add ocaml-build-system., David Craven, 2017/01/04
- 01/11: gnu: ocaml: Add a .file directive to generated .s files., David Craven, 2017/01/04