2010/8/22 Michał Górny <[email protected]>:
> src_compile() {
>        scons \
>                $(scons-use unicode) \
>                $(scons-use gnutls ssl gnutls openssl) \
>                ${MAKEOPTS} || die
>        # expands into:
>        # scons unicode={1|0} ssl={gnutls|openssl} -jN || die
> }

It might be slightly nicer to have an escons function that adds the
modified MAKEOPTS to the command line and calls die by itself.
Besides making it easier to use, that would provide a single place to
add additional functionality (perhaps an EXTRA_ESCONS user variable
analogous to EXTRA_ECONF, for example).

Reply via email to