[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#29034] [PATCH 4/5] gnu: Add ocaml-findlib-1.7.3.
From: |
Peter Kreye |
Subject: |
[bug#29034] [PATCH 4/5] gnu: Add ocaml-findlib-1.7.3. |
Date: |
Fri, 27 Oct 2017 18:33:25 -0500 |
User-agent: |
mu4e 0.9.18; emacs 25.3.1 |
* gnu/packages/ocaml.scm (ocaml-findlib-1.7.3): New variable.
---
gnu/packages/ocaml.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 712cc91e0..403176452 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -844,6 +844,41 @@ brought up to date by propagating the changes in each
replica
to the other.")
(license license:gpl3+)))
+(define-public ocaml-findlib-1.7.3
+ (package
+ (inherit ocaml-findlib)
+ (version "1.7.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://download.camlcity.org/download/"
+ "findlib" "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "12xx8si1qv3xz90qsrpazjjk4lc1989fzm97rsmc4diwla7n15ni"))))
+ (arguments
+ `(#:tests? #f ; no test suite
+ #:parallel-build? #f
+ #:make-flags (list "all" "opt")
+ #:phases (modify-phases %standard-phases
+ (replace
+ 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (system*
+ "./configure"
+ "-bindir" (string-append out "/bin")
+ "-config" (string-append out "/etc/ocamfind.conf")
+ "-mandir" (string-append out "/share/man")
+ "-sitelib" (string-append out "/lib/ocaml/site-lib")
+ "-with-toolbox"))))
+ (replace
+ 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (system*
+ "make" "install"
+ (string-append "OCAML_CORE_STDLIB=" out))))))))))
+
(define-public ocaml-findlib
(package
(name "ocaml-findlib")
--
2.14.2