[38529] trunk/dports/devel

landonf at macports.org landonf at macports.org
Thu Jul 24 09:52:16 PDT 2008


Revision: 38529
          http://trac.macosforge.org/projects/macports/changeset/38529
Author:   landonf at macports.org
Date:     2008-07-24 09:52:15 -0700 (Thu, 24 Jul 2008)
Log Message:
-----------
Add the OCaml unit testing framework

Added Paths:
-----------
    trunk/dports/devel/caml-ounit/
    trunk/dports/devel/caml-ounit/Portfile

Added: trunk/dports/devel/caml-ounit/Portfile
===================================================================
--- trunk/dports/devel/caml-ounit/Portfile	                        (rev 0)
+++ trunk/dports/devel/caml-ounit/Portfile	2008-07-24 16:52:15 UTC (rev 38529)
@@ -0,0 +1,40 @@
+# $Id: $
+
+PortSystem          1.0
+
+name                caml-ounit
+version             1.0.2
+categories          devel ml
+maintainers         landonf openmaintainer
+description         Unit test framework for OCaml
+long_description    OUnit is a unit test framework for OCaml. \
+                    It allows one to easily create unit-tests for OCaml code. \
+                    It is based on HUnit, a unit testing framework for Haskell. \
+                    It is similar to JUnit, and other XUnit testing frameworks. 
+
+homepage            http://www.xs4all.nl/~mmzeeman/ocaml/
+platforms           darwin
+master_sites        ${homepage}
+
+distname            ounit-${version}
+
+checksums           md5 27320856992f0d1b9b0abc186df2e552 \
+                    sha1 91dbd0c6a7bc055225cabd83ee55392d1ad1f663 \
+                    rmd160 9e886bb2d59e90defdb29bfd32514ddb26cfdd97
+
+depends_lib         port:caml-findlib
+
+set ocaml_site_path [exec ocamlfind printconf destdir]
+
+post-patch {
+    reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
+                    ${worksrcpath}/Makefile
+}
+
+pre-destroot {
+    file mkdir ${destroot}/${ocaml_site_path}
+}
+
+configure           {}
+
+build.target        allopt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080724/f78f5450/attachment.html 


More information about the macports-changes mailing list