[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/08: gnu: camlzip: Install both modules.
From: |
julien lepiller |
Subject: |
01/08: gnu: camlzip: Install both modules. |
Date: |
Mon, 16 Jan 2017 21:35:16 +0000 (UTC) |
roptat pushed a commit to branch master
in repository guix.
commit 8fe6b9327d3598ae5fe5c0f71895f1fdb37c0516
Author: Julien Lepiller <address@hidden>
Date: Sun Jan 15 12:30:09 2017 +0100
gnu: camlzip: Install both modules.
* gnu/packages/ocaml.scm (camlzip) [arguments]: Install both zip and camlzip
modules.
---
gnu/packages/ocaml.scm | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 93020f1..f8609bd 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -804,10 +804,19 @@ other XUnit testing frameworks.")
`(#:phases
(modify-phases %standard-phases
(delete 'configure)
- (add-before 'install 'fix-install-name
- (lambda* (#:key #:allow-other-keys)
- (substitute* "Makefile"
- (("install zip") "install camlzip")))))
+ (add-after 'install 'install-camlzip
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
+ (mkdir-p dir)
+ (call-with-output-file (string-append dir "/META")
+ (lambda (port)
+ (format port "version=\"1.06\"\n")
+ (format port "requires=\"unix\"\n")
+ (format port "archive(byte)=\"zip.cma\"\n")
+ (format port "archive(native)=\"zip.cmxa\"\n")
+ (format port "archive(native,plugin)=\"zip.cmxs\"\n")
+ (format port "directory=\"../zip\"\n")))))))
#:install-target "install-findlib"
#:make-flags
(list "all" "allopt"
- branch master updated (138adbb -> 1fdfbad), julien lepiller, 2017/01/16
- 01/08: gnu: camlzip: Install both modules.,
julien lepiller <=
- 04/08: gnu: Add ocaml-alcotest., julien lepiller, 2017/01/16
- 02/08: gnu: Add ocaml-fmt., julien lepiller, 2017/01/16
- 05/08: gnu: Add ocaml-ppx-tools., julien lepiller, 2017/01/16
- 03/08: gnu: Add ocaml-astring., julien lepiller, 2017/01/16
- 06/08: gnu: Add ocaml-react., julien lepiller, 2017/01/16
- 07/08: gnu: Add ocaml-ssl., julien lepiller, 2017/01/16
- 08/08: gnu: Add ocaml-lwt., julien lepiller, 2017/01/16