Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] huse: new helper for low level eclass writers
Date: Wed, 19 Oct 2011 18:07:29
Message-Id: 201110191405.51308.vapier@gentoo.org
1 i wrote a new func for toolchain.eclass: huse. this is because the
2 toolchain.eclass supports multiple versions in parallel, and the IUSE value
3 can vary greatly between them. so doing `use foo` without checking IUSE first
4 doesn't work. since i got a request to use this in other eclasses (for the
5 same reason), i figured i'd move it to eutils.eclass so more people can benefit.
6
7 now that we have "in_iuse" in eutils.eclass (with all the caveats), i'll be
8 adding huse:
9 huse() {
10 in_iuse $1 || return 1
11 use $1
12 }
13
14 any comments before i publish ?
15 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] huse: new helper for low level eclass writers Mike Frysinger <vapier@g.o>
Re: [gentoo-dev] huse: new helper for low level eclass writers Brian Harring <ferringb@×××××.com>