1 |
2010/8/22 Michał Górny <gentoo@××××××××××.pl>: |
2 |
> src_compile() { |
3 |
> scons \ |
4 |
> $(scons-use unicode) \ |
5 |
> $(scons-use gnutls ssl gnutls openssl) \ |
6 |
> ${MAKEOPTS} || die |
7 |
> # expands into: |
8 |
> # scons unicode={1|0} ssl={gnutls|openssl} -jN || die |
9 |
> } |
10 |
|
11 |
It might be slightly nicer to have an escons function that adds the |
12 |
modified MAKEOPTS to the command line and calls die by itself. |
13 |
Besides making it easier to use, that would provide a single place to |
14 |
add additional functionality (perhaps an EXTRA_ESCONS user variable |
15 |
analogous to EXTRA_ECONF, for example). |