mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: camlzip: Install both modules.
* gnu/packages/ocaml.scm (camlzip) [arguments]: Install both zip and camlzip modules.
This commit is contained in:
parent
138adbbe05
commit
8fe6b9327d
1 changed files with 13 additions and 4 deletions
|
@ -804,10 +804,19 @@ (define-public camlzip
|
|||
`(#: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"
|
||||
|
|
Loading…
Reference in a new issue