On Aug 14, 2011, at 08:31, [email protected] wrote:
> Revision: 82480
> http://trac.macports.org/changeset/82480
> Author: [email protected]
> Date: 2011-08-14 06:31:07 -0700 (Sun, 14 Aug 2011)
> Log Message:
> -----------
> pspp-devel:
> * update to ge30f5e
> * convert +no_* variants
>
> Modified Paths:
> --------------
> trunk/dports/math/pspp-devel/Portfile
> +if {[variant_isset no_gui]} {
> + if {[variant_isset no_graph]} {
> + default_variants -gui -graph
> + } else {
> + default_variants -gui +graph
> + }
> +} else {
> + if {[variant_isset no_graph]} {
> + default_variants +gui -graph
> + } else {
> + default_variants +gui +graph
> + }
> +}
It doesn't need to be this complicated; you don't need to nest it like this.
See...
http://lists.macosforge.org/pipermail/macports-dev/2011-August/015632.html
...for how it can be simpler.
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev