On Sun, 22 Aug 2010 12:03:10 +0100 David Leverton <[email protected]> wrote:
> 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). I may add an escons() function but I think the MAKEOPTS mangling still matches pkg_setup() better. And I don't like the idea of keeping a MAKEOPTS_ALREADY_MANGLED kind of variable to avoid re-mangling on next call to escons(). -- Best regards, Michał Górny <http://mgorny.alt.pl> <xmpp:[email protected]>
signature.asc
Description: PGP signature
