port variants & conflicts

Joshua Root jmr at macports.org
Sun Apr 29 14:14:22 PDT 2012


On 2012-4-30 05:48 , Bjarne D Mathiesen wrote:
> I've seen two different methods of describing variants
> 
> dovecot2:
> variant mysql5 description {Enable MySQL 5.1 support} {
>     conflicts mysql55 mariadb percona
> 
>     depends_lib-append          port:mysql5
>     configure.env-append
> MYSQL_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
>     configure.args-append       --with-mysql
> }
> 
> postfix:
> variant mysql5 conflicts mysql55 description "add mysql support via
> mysql5.1" {
>     depends_lib-append path:lib/mysql5/bin/mysql_config:mysql5
>     lappend CCARGS  -DHAS_MYSQL "-I${prefix}/include/mysql5/mysql"
>     lappend AUXLIBS "-L${prefix}/lib/mysql5/mysql" -lmysqlclient -lz -lm
> }
> 
> which is the most correct one ???
> -or-
> which is the best one ???

If you mean "" vs {}, neither is better or more correct when used
appropriately. See:

<http://www.tcl.tk/man/tcl8.5/tutorial/Tcl3.html>
<http://www.tcl.tk/man/tcl8.5/tutorial/Tcl4.html>

- Josh


More information about the macports-dev mailing list