[53348] trunk/dports/devel/caml-camlzip/Portfile

blb at macports.org blb at macports.org
Fri Jul 3 15:06:06 PDT 2009


Revision: 53348
          http://trac.macports.org/changeset/53348
Author:   blb at macports.org
Date:     2009-07-03 15:06:06 -0700 (Fri, 03 Jul 2009)
Log Message:
-----------
devel/caml-camlzip - move exec into pre-destroot so it does not fail on systems without caml-findlib

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

Modified: trunk/dports/devel/caml-camlzip/Portfile
===================================================================
--- trunk/dports/devel/caml-camlzip/Portfile	2009-07-03 21:56:34 UTC (rev 53347)
+++ trunk/dports/devel/caml-camlzip/Portfile	2009-07-03 22:06:06 UTC (rev 53348)
@@ -30,11 +30,13 @@
 build.env           PREFIX=${prefix}
 build.target        all allopt
 
-set ocamlfind_destdir ${destroot}[exec ocamlfind printconf destdir]
-destroot.env        OCAMLFIND_INSTFLAGS="-ldconf ignore -destdir $ocamlfind_destdir"
-destroot.target     ocamlfind-install
 
 pre-destroot {
+    # Set these in pre-destroot so the Portfile can be evaluated on a
+    # system without caml-findlib (eg, the portindex server)
+    set ocamlfind_destdir ${destroot}[exec ocamlfind printconf destdir]
+    destroot.env        OCAMLFIND_INSTFLAGS="-ldconf ignore -destdir $ocamlfind_destdir"
+    destroot.target     ocamlfind-install
     file mkdir $ocamlfind_destdir
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090703/76b0b273/attachment.html>


More information about the macports-changes mailing list