From: Donnie Berkholz <dberkholz@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Ideas for a (fast) EAPI=3
Date: Sun, 8 Mar 2009 11:41:09 -0700 [thread overview]
Message-ID: <20090308184109.GK14240@comet> (raw)
In-Reply-To: <1236537339.9458.74.camel@neuromancer>
[-- Attachment #1: Type: text/plain, Size: 1980 bytes --]
On 19:35 Sun 08 Mar , Tiziano Müller wrote:
> Am Sonntag, den 08.03.2009, 11:24 -0700 schrieb Donnie Berkholz:
> > On 10:01 Sun 08 Mar , Donnie Berkholz wrote:
> > > On 16:48 Sun 08 Mar , Ciaran McCreesh wrote:
> > > > On Sun, 8 Mar 2009 09:42:29 -0700
> > > > Donnie Berkholz <dberkholz@gentoo.org> wrote:
> > > > > - I understand the reasoning for the SRC_CONFIGURE_WITH blah stuff. I
> > > > > strongly oppose this implementation because it makes ebuilds less
> > > > > like bash scripts that are easy to understand. Instead I suggest
> > > > > extending use_with() and use_enable() to accept multiple sets of
> > > > > arguments (alternately, making custom, similar functions that will
> > > > > take multiple args).
> > > >
> > > > How would that work? I can't see an obvious way of doing it that isn't
> > > > more or less as verbose as just using multiple calls.
> > >
> > > It would just eliminate all but one call to use_with(). Depending on how
> > > many you've got, this can shorten things up a fair bit. Here's an
> > > example:
> > >
> > > econf \
> > > $(use_with 'x X' 'foo libfoo' 'bar' 'python pygtk')
> > > econf \
> > > $(use_with x X) \
> > > $(use_with foo libfoo) \
> > > $(use_with bar) \
> > > $(use_with python pygtk)
> >
> > And the straightforward evolution of this would be additional with() and
> > enable() functions for mandatory support. I still find this more
> > intuitive than the set of variables.
> >
> > econf \
> > $(use_with 'x X' 'foo libfoo' 'bar' 'python pygtk') \
> > $(with foo bar blah baz) \
> > $(enable bam paw tick)
> >
>
> Which could already be written as ...
> econf --with-{foo,bar}
> using bash :-)
>
> (or did I miss the point?)
Consistency, and that gets pretty ugly after a few when you also want to
pass arguments to them.
--
Thanks,
Donnie
Donnie Berkholz
Developer, Gentoo Linux
Blog: http://dberkholz.wordpress.com
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2009-03-08 18:41 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-08 7:49 [gentoo-dev] Ideas for a (fast) EAPI=3 Tiziano Müller
2009-03-08 8:08 ` Josh Saddler
2009-03-08 8:29 ` [gentoo-dev] " Christian Faulhammer
2009-03-08 8:38 ` [gentoo-dev] " Ciaran McCreesh
2009-03-08 9:32 ` Ulrich Mueller
2009-03-08 9:43 ` Tiziano Müller
2009-03-08 10:20 ` Ulrich Mueller
2009-03-08 11:05 ` Arfrever Frehtes Taifersar Arahesis
2009-03-08 11:23 ` Tiziano Müller
2009-03-08 16:22 ` Robert Buchholz
2009-03-08 18:31 ` Tiziano Müller
2009-03-08 16:42 ` Donnie Berkholz
2009-03-08 16:48 ` Ciaran McCreesh
2009-03-08 17:01 ` Donnie Berkholz
2009-03-08 17:24 ` William Hubbs
2009-03-08 18:24 ` Donnie Berkholz
2009-03-08 18:35 ` Tiziano Müller
2009-03-08 18:41 ` Donnie Berkholz [this message]
2009-03-08 18:27 ` Tiziano Müller
2009-03-08 22:16 ` Donnie Berkholz
2009-03-08 22:35 ` Tiziano Müller
2009-03-09 4:22 ` Donnie Berkholz
2009-03-09 6:31 ` Donnie Berkholz
2009-03-09 9:17 ` Tiziano Müller
2009-03-09 9:02 ` [gentoo-dev] " Christian Faulhammer
2009-03-09 9:12 ` [gentoo-dev] " Michael Haubenwallner
2009-03-09 18:01 ` Tobias Scherbaum
2009-03-09 1:46 ` Thomas Anderson
2009-03-08 17:20 ` Jesus Rivero
2009-03-08 17:44 ` Ciaran McCreesh
2009-03-08 18:06 ` Stelian Ionescu
2009-03-08 18:29 ` Tiziano Müller
2009-03-09 8:39 ` [gentoo-dev] " Christian Faulhammer
2009-03-09 9:01 ` Daniel Pielmeier
2009-03-09 9:06 ` Christian Faulhammer
2009-03-09 9:13 ` Daniel Pielmeier
2009-03-09 9:14 ` Tiziano Müller
2009-03-13 8:48 ` Christian Faulhammer
2009-03-09 20:26 ` [gentoo-dev] " Ciaran McCreesh
2009-03-09 20:56 ` Zac Medico
2009-03-09 21:08 ` Ciaran McCreesh
2009-03-09 21:28 ` Zac Medico
2009-03-09 21:37 ` Ciaran McCreesh
2009-03-09 21:33 ` [gentoo-dev] " Christian Faulhammer
2009-03-09 21:36 ` Ciaran McCreesh
2009-03-09 22:20 ` Christian Faulhammer
2009-03-09 22:25 ` Ciaran McCreesh
2009-03-09 23:25 ` Christian Faulhammer
2009-03-10 12:33 ` Ciaran McCreesh
2009-03-10 16:11 ` Christian Faulhammer
2009-03-10 16:17 ` Ciaran McCreesh
2009-03-10 3:58 ` Alec Warner
2009-03-10 12:35 ` Ciaran McCreesh
2009-03-10 16:00 ` Christian Faulhammer
2009-03-10 16:07 ` Ciaran McCreesh
2009-03-09 22:24 ` Maciej Mrozowski
2009-03-09 22:28 ` Ciaran McCreesh
2009-03-09 22:39 ` [gentoo-dev] " Donnie Berkholz
2009-03-09 22:53 ` Ciaran McCreesh
2009-03-12 18:43 ` Donnie Berkholz
2009-03-12 18:48 ` Ciaran McCreesh
2009-03-10 9:08 ` Michael Haubenwallner
2009-03-10 12:33 ` Ciaran McCreesh
2009-03-09 22:39 ` Peter Alfredsen
2009-03-10 17:51 ` Sébastien Fabbro
2009-03-10 19:59 ` Doug Goldstein
2009-03-09 22:38 ` Jeremy Olexa
2009-03-09 22:58 ` Ciaran McCreesh
2009-03-10 15:30 ` Ciaran McCreesh
2009-03-12 23:05 ` Maciej Mrozowski
2009-03-12 23:20 ` Ciaran McCreesh
2009-03-13 20:11 ` Ciaran McCreesh
2009-03-13 22:31 ` Tiziano Müller
2009-04-09 1:51 ` Mart Raudsepp
2009-04-09 2:12 ` Mart Raudsepp
2009-04-09 3:02 ` Olivier Crête
2009-04-09 8:37 ` Tiziano Müller
2009-04-09 10:44 ` Mart Raudsepp
2009-04-09 14:36 ` Ciaran McCreesh
2009-04-09 14:32 ` Ciaran McCreesh
2009-04-13 12:55 ` Peter Volkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090308184109.GK14240@comet \
--to=dberkholz@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox