guix-commits
[Top][All Lists]
Advanced

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

04/05: gnu: ocaml-ounit: Update to 2.2.3 and rename.


From: guix-commits
Subject: 04/05: gnu: ocaml-ounit: Update to 2.2.3 and rename.
Date: Sun, 30 Aug 2020 20:14:20 -0400 (EDT)

brettgilio pushed a commit to branch wip-ocaml
in repository guix.

commit 5180552e98ed22c5ae858002d312e4a3f26e0f00
Author: Brett Gilio <brettg@gnu.org>
AuthorDate: Sun Aug 30 18:36:08 2020 -0500

    gnu: ocaml-ounit: Update to 2.2.3 and rename.
    
    * gnu/packages/ocaml.scm (ocaml-ounit): Update to 2.2.3 and rename.
    
    [definition]: Rename to ocaml-ounit2.
    [source]: Replace url-fetch with git-fetch.
    [native-inputs]: Remove comment.
    [build-system]: Change to dune-build-system.
    [arguments]: Remove deletion of check phase, and specify package field.
    [description]: Respace to align with column-width.
---
 gnu/packages/ocaml.scm | 37 +++++++++++++++++++------------------
 1 file changed, 19 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index a64c68d..4ed83d7 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -974,29 +974,30 @@ compilers that can directly deal with packages.")
      `(("m4" ,m4)
        ("ocaml" ,ocaml-4.07)))))
 
-;; note that some tests may hang for no obvious reason.
-(define-public ocaml-ounit
+(define-public ocaml-ounit2
   (package
-    (name "ocaml-ounit")
-    (version "2.0.8")
-    (source (origin
-              (method url-fetch)
-              (uri (ocaml-forge-uri "ounit" version 1749))
-              (sha256
-               (base32
-                "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
-    (build-system ocaml-build-system)
+    (name "ocaml-ounit2")
+    (version "2.2.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/gildor478/ounit";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "12bsyk5g64rsa94khyl32pjj3fvc58av4vxqrjb3jy14cqyh95y1"))))
+    (build-system dune-build-system)
     (native-inputs
-     `(("libxml2" ,libxml2)           ; for xmllint
+     `(("libxml2" ,libxml2)
        ("ocamlbuild" ,ocamlbuild)))
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (delete 'check))))             ; tests are run during build
-    (home-page "http://ounit.forge.ocamlcore.org";)
+     `(#:package "ounit"))
+    (home-page "https://github.com/gildor478/ounit";)
     (synopsis "Unit testing framework for OCaml")
-    (description "Unit testing framework for OCaml.  It is similar to JUnit and
-other XUnit testing frameworks.")
+    (description "Unit testing framework for OCaml.
+It is similar to JUnit and other XUnit testing frameworks.")
     (license license:expat)))
 
 (define-public camlzip



reply via email to

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