public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] huse: new helper for low level eclass writers
@ 2011-10-19 18:05 Mike Frysinger
  2011-10-19 18:25 ` Mike Frysinger
  2011-10-19 18:53 ` Brian Harring
  0 siblings, 2 replies; 13+ messages in thread
From: Mike Frysinger @ 2011-10-19 18:05 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 576 bytes --]

i wrote a new func for toolchain.eclass: huse.  this is because the 
toolchain.eclass supports multiple versions in parallel, and the IUSE value 
can vary greatly between them.  so doing `use foo` without checking IUSE first 
doesn't work.  since i got a request to use this in other eclasses (for the 
same reason), i figured i'd move it to eutils.eclass so more people can benefit.

now that we have "in_iuse" in eutils.eclass (with all the caveats), i'll be 
adding huse:
	huse() {
		in_iuse $1 || return 1
		use $1
	}

any comments before i publish ?
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-10-26 23:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-19 18:05 [gentoo-dev] huse: new helper for low level eclass writers Mike Frysinger
2011-10-19 18:25 ` Mike Frysinger
2011-10-19 18:53 ` Brian Harring
2011-10-19 19:26   ` Mike Frysinger
2011-10-19 19:40     ` Brian Harring
2011-10-20  5:26       ` Mike Frysinger
2011-10-20 15:58         ` Donnie Berkholz
2011-10-20 16:22           ` Mike Frysinger
2011-10-20 19:22             ` Donnie Berkholz
2011-10-20 20:01               ` "Paweł Hajdan, Jr."
2011-10-20 20:43                 ` Mike Frysinger
2011-10-26 23:27                   ` Mike Frysinger
2011-10-19 19:50   ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox