From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RGbn9-00066b-SI for garchives@archives.gentoo.org; Wed, 19 Oct 2011 19:27:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4556F21C0A6; Wed, 19 Oct 2011 19:26:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4DDFB21C03E for ; Wed, 19 Oct 2011 19:26:22 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B82DD1B400C for ; Wed, 19 Oct 2011 19:26:21 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] huse: new helper for low level eclass writers Date: Wed, 19 Oct 2011 15:26:21 -0400 User-Agent: KMail/1.13.7 (Linux/3.1.0-rc4; KDE/4.6.5; x86_64; ; ) References: <201110191405.51308.vapier@gentoo.org> <20111019185307.GA10470@localhost> In-Reply-To: <20111019185307.GA10470@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2605956.Q2M1M5oeFG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201110191526.22113.vapier@gentoo.org> X-Archives-Salt: X-Archives-Hash: f20a55a5a93f934b1ddaa52fd5f0a8c8 --nextPart2605956.Q2M1M5oeFG Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Wednesday 19 October 2011 14:53:07 Brian Harring wrote: > On Wed, Oct 19, 2011 at 02:05:50PM -0400, Mike Frysinger wrote: > > 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. > >=20 > > now that we have "in_iuse" in eutils.eclass (with all the caveats), i'll > > be > >=20 > > adding huse: > > huse() { > > =09 > > in_iuse $1 || return 1 > > use $1 > > =09 > > } > >=20 > > any comments before i publish ? >=20 > Call it safe_use. safe for who ? that implies to me much more vagueness than "iuse" ... =2Dmike --nextPart2605956.Q2M1M5oeFG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJOnyReAAoJEEFjO5/oN/WBXsEP/3KHPcOCOL0gTQ/ASzMmy1mo ujTtnkG4Dzt/oysh7a322Gb4NWnNljgloixv7G+XTlc8lokhwia6vL3Na0yJbc5+ BB/LCVvW3VDxnBR2ehkeTO2VDeDSmAfwPlEACq+E9lXN7UZx4eToXWJzo8yOE0oE c2wI/dqMDaG5jAyvgmVhvBPJEWL+O4hiAirlUzutiDqU88/EdZ5iUDiqV1VqIE7J VddeoL0RA1+VvKtPB3Mt3mG5K9+FI6rubWc5v4MhrHzBHsiMtpXljA/MY8Yoesg1 WqPNlMmjGqDdhhJNTxDu2hjnfIjSJ2CbG64WIo6P27yz6qjnCIjAPMdDXm+wS6pf aa0UglFMrlbMznR17Tc8QzR4V8q0QbhtjzIEiZWrWe8+PPwEckwt7l7nYxzftTEx la6DxjL45vrGBJUNtw3F3E1Ck42c7qfpofCzC9q39mUcw70BYmYH/C9dhEVw7FEH UuuJiqYNnHyKKQ/TOr8vZ2jpe3qxJENhd8cI5pWHgwMCWvlkMXGmAXi/XEb5MoaV P+yofCFTT9S6+yoAgOVaXA7NZ2tD7d5SGAAMydDIkzs4fGvi318oOjQR0t5GAv40 a4wrg6963Be/3wz7/AVFG5ts80zWYSSwxB+qW5fnqxBxYeF679eFvikIg96ZPgqb GzY8FPxWejuN4BG1pVCu =Y5gC -----END PGP SIGNATURE----- --nextPart2605956.Q2M1M5oeFG--