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

Ryan Schmidt ryandesign at macports.org
Thu Jul 24 14:32:46 PDT 2008


On Jul 24, 2008, at 16:07, landonf at macports.org wrote:

> 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.

> -set ocaml_site_path [exec ocamlfind printconf destdir]
> +pre-extract {
> +    global ocaml_site_path
> +    set ocaml_site_path [exec ocamlfind printconf destdir]
> +}

That works if you install all in one go:


$ port install caml-unit
--->  Fetching caml-ounit
--->  Verifying checksum(s) for caml-ounit
--->  Extracting caml-ounit
--->  Configuring caml-ounit
--->  Building caml-ounit
--->  Staging caml-ounit into destroot
--->  Installing caml-ounit @1.0.2_0
--->  Activating caml-ounit @1.0.2_0
--->  Cleaning caml-ounit
$


But not if you break it up into two steps:


$ port extract caml-unit
--->  Fetching caml-ounit
--->  Verifying checksum(s) for caml-ounit
--->  Extracting caml-ounit
$ port install caml-unit
Error: Target org.macports.patch returned: can't read  
"ocaml_site_path": no such variable
Error: Status 1 encountered during processing.
$


I think you need to set the ocaml_site_path variable within each  
phase that uses it.




More information about the macports-dev mailing list