This seems extremely verbose to me. Is there any benefit to be gained from doing this?

On Feb 15, 2007, at 4:40 AM, Randall Wood wrote:

Here is a quick example of how a port may work:

configure.args --enable-foo --prefix=${prefix} # --prefix in here only for the example

variant no_foo {
        configure.args-delete --enable-foo
        configure.args-append --disable-foo     # this line is often missing
}

And how I would like to see the above port written:

configure.args --prefix=${prefix}

default-variants +enable_foo

variant enable_foo conflicts disable_foo {
        configure.args-append --enable-foo
}

variant disable_foo conflicts enable_foo {
        configure.args-append --disable-foo
}

The second version of the same file does the same thing, but I find that it is easier to work with. Note also that if the line that is commented "this line is often missing" is missing, then the port may install in a non-deterministic way, installing with foo enabled because the package's configure script auto-selects that.

--
Kevin Ballard
http://kevin.sb.org
[EMAIL PROTECTED]
http://www.tildesoft.com


_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to