guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 52/96] gnu: Add ocaml-cppo


From: Julien Lepiller
Subject: [PATCH 52/96] gnu: Add ocaml-cppo
Date: Tue, 3 Jan 2017 20:11:33 +0100

* gnu/packages/ocaml.scm (ocaml-cppo): New variable.
---
 gnu/packages/ocaml.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 58fd0eb0c..ae7218a92 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1930,3 +1930,30 @@ provide a tool that can be used to:
 - use a single executable to run several transformations: no need to fork many 
times just for pre-processing
 - improved errors for misspelled/misplaced attributes and extension points.")
     (license license:asl2.0)))
+
+(define-public ocaml-cppo
+  (package
+    (name "ocaml-cppo")
+    (version "1.4.1")
+    (home-page "https://github.com/mjambon/cppo";)
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append home-page "/archive/v" version ".tar.gz"))
+        (sha256 (base32
+                  "02gma6nw09vfnd6h7bl3n70lwz7m9z2svplxyfh6h5bf4lqgqzjv"))))
+    (build-system ocaml-build-system)
+    (arguments `(#:phases (modify-phases %standard-phases (delete 'configure))
+                 #:make-flags (list (string-append "BINDIR="
+                                                   (assoc-ref %outputs "out")
+                                                   "/bin"))
+                 #:tests? #f))
+    (synopsis "Equivalent of the C preprocessor for OCaml programs")
+    (description "Cppo is an equivalent of the C preprocessor for OCaml
+programs.  It allows the definition of simple macros and file inclusion.  Cppo 
is:
+
+- more OCaml-friendly than cpp
+- easy to learn without consulting a manual
+- reasonably fast
+- simple to install and to maintain.")
+    (license license:bsd-3)))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]