[54689] trunk/dports/devel/caml-json-wheel/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Jul 31 12:20:04 PDT 2009


Revision: 54689
          http://trac.macports.org/changeset/54689
Author:   ryandesign at macports.org
Date:     2009-07-31 12:20:02 -0700 (Fri, 31 Jul 2009)
Log Message:
-----------
caml-json-wheel: combine the two pre-destroot phases, reusing ocaml_site_path, and remove unnecessary slash before that variable; see #20499

Modified Paths:
--------------
    trunk/dports/devel/caml-json-wheel/Portfile

Modified: trunk/dports/devel/caml-json-wheel/Portfile
===================================================================
--- trunk/dports/devel/caml-json-wheel/Portfile	2009-07-31 18:59:29 UTC (rev 54688)
+++ trunk/dports/devel/caml-json-wheel/Portfile	2009-07-31 19:20:02 UTC (rev 54689)
@@ -39,13 +39,10 @@
 
 pre-destroot {
     set ocaml_site_path [exec ocamlfind printconf destdir]
-    file mkdir ${destroot}/${ocaml_site_path}/stublibs
+    file mkdir ${destroot}${ocaml_site_path}/stublibs
+    destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}${ocaml_site_path}"
 }
 
-pre-destroot {
-    destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}/[exec ${prefix}/bin/ocamlfind printconf destdir]"
-}
-
 pre-activate {
     # caml-json-wheel 1.0.6_0 installed an item in ${prefix}/bin; remove it if found
     set filepath ${prefix}/bin/jsoncat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090731/7b57c384/attachment.html>


More information about the macports-changes mailing list