[84504] trunk/dports/devel/caml-ounit/Portfile

mww at macports.org mww at macports.org
Tue Sep 27 02:13:40 PDT 2011


Revision: 84504
          http://trac.macports.org/changeset/84504
Author:   mww at macports.org
Date:     2011-09-27 02:13:36 -0700 (Tue, 27 Sep 2011)
Log Message:
-----------
caml-ounit: version 1.1.0; project moved to ocaml forge (updated livecheck etc.);

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

Modified: trunk/dports/devel/caml-ounit/Portfile
===================================================================
--- trunk/dports/devel/caml-ounit/Portfile	2011-09-27 08:54:06 UTC (rev 84503)
+++ trunk/dports/devel/caml-ounit/Portfile	2011-09-27 09:13:36 UTC (rev 84504)
@@ -3,7 +3,7 @@
 PortSystem          1.0
 
 name                caml-ounit
-version             1.0.3
+version             1.1.0
 categories          devel ml
 maintainers         landonf openmaintainer
 description         Unit test framework for OCaml
@@ -12,39 +12,43 @@
                     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/
+homepage            http://ounit.forge.ocamlcore.org/
 platforms           darwin
-master_sites        ${homepage}
+master_sites        http://forge.ocamlcore.org/frs/download.php/495/
 
 distname            ounit-${version}
 
-checksums           md5     e0831c33cd18fdbf7615bb053e3792b9 \
-                    sha1    fd5674ba094ed8d32c11618cd22d4efa58535a76 \
-                    rmd160  35496f9df16121b4246074e79df0c5396e3faba7
+checksums           md5     bf82bd7f8853cd9a1aff7be716192643 \
+                    sha1    e477f8a1b4fcd6a838cbbc04450a80b1cea3456c \
+                    rmd160  f7d82446970f40eccc917a3ee57e7d6526b1b177
 
 depends_lib         port:ocaml \
                     port:caml-findlib
 
 livecheck.type      regex
+livecheck.url       http://forge.ocamlcore.org/frs/?group_id=162
 livecheck.regex     {>ounit-(.*)\.tar\.gz}
 
-post-patch {
-    set ocaml_site_path [exec ocamlfind printconf destdir]
-    reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
-                    ${worksrcpath}/Makefile
+set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
+
+# cheat the system by providing a thin ocamlfind-wrapper that obeys destdir
+post-extract {
+    system -W ${worksrcpath} "echo ${prefix}/bin/ocamlfind \\$* -destdir ${ocamlfind_destdir} -ldconf ignore > ocamlfind"
+    system -W ${worksrcpath} "chmod +x ocamlfind"
 }
 
-pre-destroot {
-    set ocaml_site_path [exec ocamlfind printconf destdir]
-    file mkdir ${destroot}/${ocaml_site_path}
+configure {
+    system -W ${worksrcpath} "ocaml setup.ml -configure --override prefix ${prefix} --override datarootdir ${destroot}${prefix}/share"
 }
 
-post-destroot { 
-    xinstall -d -755 ${destroot}${prefix}/share/doc/${name} 
-    eval xinstall -m 644 [glob ${worksrcpath}/doc/*.html] \
-        ${destroot}${prefix}/share/doc/${name} 
-} 
+build {
+    system -W ${worksrcpath} "ocaml setup.ml -build"
+    system -W ${worksrcpath} "ocaml setup.ml -doc"
+}
 
-use_configure       no
+pre-destroot {
+    reinplace "s|${prefix}/bin/ocamlfind|${worksrcpath}/ocamlfind|g" ${worksrcpath}/setup.data
+    xinstall -d -m 755 ${ocamlfind_destdir}
+}
+destroot { system -W ${worksrcpath} "ocaml setup.ml -install" }
 
-build.target        allopt doc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110927/d0ab2bfa/attachment.html>


More information about the macports-changes mailing list