From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: [PATCH 05/10] gnu: Add ocaml-cppo. Date: Tue, 31 Jan 2017 21:58:10 +0100 Message-ID: <20170131205815.14576-6-julien@lepiller.eu> References: <20170131205815.14576-1-julien@lepiller.eu> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYfVq-0007Id-77 for guix-devel@gnu.org; Tue, 31 Jan 2017 15:58:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYfVl-0005Uv-SW for guix-devel@gnu.org; Tue, 31 Jan 2017 15:58:50 -0500 Received: from dau94-h03-89-91-205-84.dsl.sta.abo.bbox.fr ([89.91.205.84]:41362 helo=skaro.lepiller.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYfVl-0005Sf-Jy for guix-devel@gnu.org; Tue, 31 Jan 2017 15:58:45 -0500 Received: from localhost (localhost [127.0.0.1]) by skaro.lepiller.eu (Postfix) with ESMTP id 8C0F8802A0 for ; Tue, 31 Jan 2017 21:58:43 +0100 (CET) Received: from skaro.lepiller.eu ([127.0.0.1]) by localhost (lepiller.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yB0czH_hKu96 for ; Tue, 31 Jan 2017 21:58:39 +0100 (CET) Received: from localhost.localdomain (128-79-116-134.hfc.dyn.abo.bbox.fr [128.79.116.134]) by skaro.lepiller.eu (Postfix) with ESMTPSA id 9B2DF80472 for ; Tue, 31 Jan 2017 21:58:31 +0100 (CET) In-Reply-To: <20170131205815.14576-1-julien@lepiller.eu> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/ocaml.scm (ocaml-cppo): New variable. --- gnu/packages/ocaml.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index db8bf5863..8e525ff10 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -2117,3 +2117,33 @@ provide a tool that can be used to: @item improved errors for misspelled/misplaced attributes and extension points. @end enumerate") (license license:asl2.0))) + +(define-public ocaml-cppo + (package + (name "ocaml-cppo") + (version "1.4.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/mjambon/cppo/archive/v" version + ".tar.gz")) + (sha256 (base32 + "02gma6nw09vfnd6h7bl3n70lwz7m9z2svplxyfh6h5bf4lqgqzjv")) + (file-name (string-append name "-" version ".tar.gz")))) + (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)) + (home-page "https://github.com/mjambon/cppo") + (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. Cpp ois: +@enumerate +@item more OCaml-friendly than cpp +@item easy to learn without consulting a manual +@item reasonably fast +@item simple to install and to maintain. +@end enumerate") + (license license:bsd-3))) -- 2.11.0