[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33079] [PATCH 02/34] gnu: Add ocamlbuild.
From: |
Julien Lepiller |
Subject: |
[bug#33079] [PATCH 02/34] gnu: Add ocamlbuild. |
Date: |
Wed, 17 Oct 2018 22:34:10 +0200 |
* gnu/packages/ocaml.scm (ocamlbuild): New variable.
---
gnu/packages/ocaml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 681b9652e..ac8c68b12 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -283,6 +283,48 @@ functional, imperative and object-oriented styles of
programming.")
(define-public ocaml ocaml-4.07)
+(define-public ocamlbuild
+ (package
+ (name "ocamlbuild")
+ (version "0.13.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
"https://github.com/ocaml/ocamlbuild/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+
"1320cfkixs1xlng5av04pa5qjb3ynvi2kl3k1ngqzg5fpi29b0vr"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:test-target "test"
+ #:tests? #f; tests require findlib
+ #:make-flags
+ (list (string-append "OCAMLBUILD_PREFIX=" (assoc-ref %outputs
"out"))
+ (string-append "OCAMLBUILD_BINDIR=" (assoc-ref %outputs
"out")
+ "/bin")
+ (string-append "OCAMLBUILD_LIBDIR=" (assoc-ref %outputs
"out")
+ "/lib/ocaml/site-lib")
+ (string-append "OCAMLBUILD_MANDIR=" (assoc-ref %outputs
"out")
+ "/share/man"))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'bootstrap)
+ (delete 'configure)
+ (add-before 'build 'findlib-environment
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (setenv "OCAMLFIND_DESTDIR" (string-append out
"/lib/ocaml/site-lib"))
+ (setenv "OCAMLFIND_LDCONF" "ignore")
+ #t))))))
+ (native-inputs
+ `(("ocaml" ,ocaml)))
+ (home-page "https://github.com/ocaml/ocamlbuild")
+ (synopsis "OCaml build tool")
+ (description "OCamlbuild is a generic build tool, that has built-in
rules
+ for building OCaml library and programs.")
+ (license license:lgpl2.1+)))
+
(define-public opam
(package
(name "opam")
--
2.18.0
- [bug#33079] [WIP] ocaml updates, Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 01/34] gnu: ocaml: Update to 4.07.0., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 12/34] gnu: coq: Fix build failure., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 05/34] gnu: Add ocaml4.02-findlib., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 08/34] gnu: lablgtk: Update to 2.18.6., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 02/34] gnu: Add ocamlbuild.,
Julien Lepiller <=
- [bug#33079] [PATCH 03/34] gnu: camlp4: Update to 4.07+1., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 11/34] gnu: Add ocaml-num., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 15/34] gnu: Add ocaml4.02-lablgtk., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 17/34] gnu: Fix ocaml-ounit., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 14/34] gnu: ocaml-menhir: Fix build., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 10/34] gnu: hevea: Update to 2.32., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 07/34] guix: ocaml-build-system: Replace system* with invoke., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 22/34] gnu: Fix ocaml-qcheck., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 04/34] gnu: ocaml-findlib: Update to 1.8.0., Julien Lepiller, 2018/10/17
- [bug#33079] [PATCH 06/34] guix: ocaml: Add package-with-ocaml4.02., Julien Lepiller, 2018/10/17