[59308] trunk/dports/devel

Ryan Schmidt ryandesign at macports.org
Tue Oct 13 06:52:46 PDT 2009


On Oct 13, 2009, at 08:16, avsm at macports.org wrote:

> Revision: 59308
>          http://trac.macports.org/changeset/59308
> Author:   avsm at macports.org
> Date:     2009-10-13 06:16:15 -0700 (Tue, 13 Oct 2009)
> Log Message:
> -----------
> initial import of caml-react-0.9.0


> Added: trunk/dports/devel/caml-react/Portfile

> +build.cmd           "./build"
> +build.target        ""
> +
> +destroot.cmd        "./build"
> +destroot.target     "install"
> +destroot.env        INSTALLDIR=${destroot}${prefix}/lib/ocaml/site- 
> lib/react
> +destroot.destdir    ""

Note that you don't need quotes around these (though they're not doing  
any harm). Also, destroot.cmd defaults to the value of build.cmd, and  
destroot.target defaults to "install". So you can simplify this to:

build.cmd           ./build
build.target

destroot.env        INSTALLDIR=${destroot}${prefix}/lib/ocaml/site-lib/ 
react
destroot.destdir


> +livecheck.regex     \>react-(.*)\.tbz

">" is not a special character in regex or tcl syntax so you don't  
need to escape it. "." is a special character in regex syntax so you  
do need to escape it with a backslash. But "\" is a special character  
in tcl syntax. So you either need to escape it twice, or enclose the  
whole thing in curly braces so tcl special characters are ignored. So  
use either

livecheck.regex     >react-(.*)\\.tbz

or

livecheck.regex     {>react-(.*)\.tbz}

This comment applies to many of the commits you just made so you  
should make this correction in all those ports.





More information about the macports-dev mailing list