gnu: lablgtk: use ocamlfind in installation
* gnu/packages/ocaml.scm (lablgtk): Use ocamlfind in installation. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
054fea97b7
commit
8afd19585f
1 changed files with 7 additions and 3 deletions
|
@ -507,6 +507,7 @@ Knuth’s LR(1) parser construction technique.")
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("camlp4" ,camlp4)
|
`(("camlp4" ,camlp4)
|
||||||
("ocaml" ,ocaml)
|
("ocaml" ,ocaml)
|
||||||
|
("findlib" ,ocaml-findlib)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
|
;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
|
||||||
;; and gtk+-quartz-2.0 once available.
|
;; and gtk+-quartz-2.0 once available.
|
||||||
|
@ -521,21 +522,24 @@ Knuth’s LR(1) parser construction technique.")
|
||||||
`(#:tests? #f ; no check target
|
`(#:tests? #f ; no check target
|
||||||
|
|
||||||
;; opt: also install cmxa files
|
;; opt: also install cmxa files
|
||||||
#:make-flags (list "all" "opt")
|
#:make-flags (list "all" "opt"
|
||||||
|
(string-append "FINDLIBDIR="
|
||||||
|
(assoc-ref %outputs "out")
|
||||||
|
"/lib/ocaml"))
|
||||||
;; Occasionally we would get "Error: Unbound module GtkThread" when
|
;; Occasionally we would get "Error: Unbound module GtkThread" when
|
||||||
;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
|
;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
|
||||||
#:parallel-build? #f
|
#:parallel-build? #f
|
||||||
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'install
|
(add-before 'install 'prepare-install
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out"))
|
(let ((out (assoc-ref outputs "out"))
|
||||||
(ocaml (assoc-ref inputs "ocaml")))
|
(ocaml (assoc-ref inputs "ocaml")))
|
||||||
;; Install into the output and not the ocaml directory.
|
;; Install into the output and not the ocaml directory.
|
||||||
|
(mkdir-p (string-append out "/lib/ocaml"))
|
||||||
(substitute* "config.make"
|
(substitute* "config.make"
|
||||||
((ocaml) out))
|
((ocaml) out))
|
||||||
(system* "make" "old-install")
|
|
||||||
#t))))))
|
#t))))))
|
||||||
(home-page "http://lablgtk.forge.ocamlcore.org/")
|
(home-page "http://lablgtk.forge.ocamlcore.org/")
|
||||||
(synopsis "GTK+ bindings for OCaml")
|
(synopsis "GTK+ bindings for OCaml")
|
||||||
|
|
Reference in a new issue