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

landonf at macports.org landonf at macports.org
Thu Jul 24 14:07:36 PDT 2008


Revision: 38533
          http://trac.macosforge.org/projects/macports/changeset/38533
Author:   landonf at macports.org
Date:     2008-07-24 14:07:36 -0700 (Thu, 24 Jul 2008)
Log Message:
-----------
Avoid calling ocamlfind before it has been installed.

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

Modified: trunk/dports/devel/caml-ounit/Portfile
===================================================================
--- trunk/dports/devel/caml-ounit/Portfile	2008-07-24 19:51:57 UTC (rev 38532)
+++ trunk/dports/devel/caml-ounit/Portfile	2008-07-24 21:07:36 UTC (rev 38533)
@@ -22,9 +22,13 @@
                     sha1 91dbd0c6a7bc055225cabd83ee55392d1ad1f663 \
                     rmd160 9e886bb2d59e90defdb29bfd32514ddb26cfdd97
 
-depends_lib         port:caml-findlib
+depends_lib         port:ocaml \
+                    port:caml-findlib
 
-set ocaml_site_path [exec ocamlfind printconf destdir]
+pre-extract {
+    global ocaml_site_path
+    set ocaml_site_path [exec ocamlfind printconf destdir]
+}
 
 post-patch {
     reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080724/7648489f/attachment-0001.html 


More information about the macports-changes mailing list