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

landonf at macports.org landonf at macports.org
Thu Jul 24 14:43:08 PDT 2008


Revision: 38535
          http://trac.macosforge.org/projects/macports/changeset/38535
Author:   landonf at macports.org
Date:     2008-07-24 14:43:08 -0700 (Thu, 24 Jul 2008)
Log Message:
-----------
Set ocam_site_path in both targets that use it, as targets are only run once (as noted by Ryan)

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

Modified: trunk/dports/devel/caml-ounit/Portfile
===================================================================
--- trunk/dports/devel/caml-ounit/Portfile	2008-07-24 21:11:18 UTC (rev 38534)
+++ trunk/dports/devel/caml-ounit/Portfile	2008-07-24 21:43:08 UTC (rev 38535)
@@ -25,17 +25,14 @@
 depends_lib         port:ocaml \
                     port:caml-findlib
 
-pre-extract {
-    global ocaml_site_path
-    set ocaml_site_path [exec ocamlfind printconf destdir]
-}
-
 post-patch {
+    set ocaml_site_path [exec ocamlfind printconf destdir]
     reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
                     ${worksrcpath}/Makefile
 }
 
 pre-destroot {
+    set ocaml_site_path [exec ocamlfind printconf destdir]
     file mkdir ${destroot}/${ocaml_site_path}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080724/84d089b2/attachment.html 


More information about the macports-changes mailing list