Gentoo Archives: gentoo-dev

From: David Leverton <levertond@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass: scons.eclass
Date: Sun, 22 Aug 2010 11:03:33
Message-Id: AANLkTimx6FmOXMntkkng5xasVJgXxeS3xO6sR0x6yL1M@mail.gmail.com
In Reply to: [gentoo-dev] New eclass: scons.eclass by "Michał Górny"
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).

Replies

Subject Author
Re: [gentoo-dev] New eclass: scons.eclass "Michał Górny" <gentoo@××××××××××.pl>