[84696] trunk/dports/_resources/port1.0/group/ocaml-1.0.tcl

mww at macports.org mww at macports.org
Thu Sep 29 13:48:41 PDT 2011


Revision: 84696
          http://trac.macports.org/changeset/84696
Author:   mww at macports.org
Date:     2011-09-29 13:48:41 -0700 (Thu, 29 Sep 2011)
Log Message:
-----------
portgroup ocaml: is always not universal; add use_oasis_doc function to build documentation;

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/ocaml-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/ocaml-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/ocaml-1.0.tcl	2011-09-29 20:39:57 UTC (rev 84695)
+++ trunk/dports/_resources/port1.0/group/ocaml-1.0.tcl	2011-09-29 20:48:41 UTC (rev 84696)
@@ -34,6 +34,9 @@
 # Usage:
 # PortGroup     ocaml 1.0
 
+# ocaml is not universal
+universal_variant no
+
 # ocaml executable
 global ocaml
 set ocaml "${prefix}/bin/ocaml"
@@ -79,9 +82,19 @@
         global destroot.cmd destroot.target
         destroot.cmd ${configure.cmd}
         destroot.target "setup.ml -install"
+        destroot.destdir
     }
 }
 
+proc use_oasis_doc {option} {
+    if {${option} == "yes"} {
+        global ocaml worksrcpath
+        post-build {
+            system -W ${worksrcpath} "${ocaml} setup.ml -doc"
+        }
+    }
+}
+
 pre-destroot {
     xinstall -m 755 -d ${ocamlfind_destdir}/stublibs
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110929/2f1c4b4b/attachment.html>


More information about the macports-changes mailing list