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 1RGaY5-0001Ln-HM for garchives@archives.gentoo.org; Wed, 19 Oct 2011 18:07:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7D6521C1AA; Wed, 19 Oct 2011 18:06:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BA93721C10F for ; Wed, 19 Oct 2011 18:05:51 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 30A9B1B4006 for ; Wed, 19 Oct 2011 18:05:51 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] huse: new helper for low level eclass writers Date: Wed, 19 Oct 2011 14:05:50 -0400 User-Agent: KMail/1.13.7 (Linux/3.1.0-rc4; KDE/4.6.5; x86_64; ; ) 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="nextPart73310101.A8nzveFI55"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201110191405.51308.vapier@gentoo.org> X-Archives-Salt: X-Archives-Hash: db20c0a171562bd5a33cbd1352a1158b --nextPart73310101.A8nzveFI55 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable i wrote a new func for toolchain.eclass: huse. this is because the=20 toolchain.eclass supports multiple versions in parallel, and the IUSE value= =20 can vary greatly between them. so doing `use foo` without checking IUSE fi= rst=20 doesn't work. since i got a request to use this in other eclasses (for the= =20 same reason), i figured i'd move it to eutils.eclass so more people can ben= efit. now that we have "in_iuse" in eutils.eclass (with all the caveats), i'll be= =20 adding huse: huse() { in_iuse $1 || return 1 use $1 } any comments before i publish ? =2Dmike --nextPart73310101.A8nzveFI55 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) iQIcBAABAgAGBQJOnxF/AAoJEEFjO5/oN/WBgVAP/0uq7Ty4Z5tx5wmd1UzLe7mx l18E+lceL3MXq0/GU/1/oqDuwJ1N02rwPRGBYsa5kjhQNFMwyMHwCZEkCpzTsph0 vLeJRbM4poV42igaCxfJxRAxMBw+5Onwiu7BGZoyZka0G/x5B85YL3MxLaJTNv5R wuK1hSmuYCfL+q67wrjaBmeLs3XBvIt2KmEymX7NSMWjhKr2AkKelbCD2ycjvK9Y X4pHlCD5awa0HDh1y/QM1dCT2RE9nYC8DyMSbFjz+cCi/aNUjxLx2QgqyWD8Tijo 2/PsN4KrAHj4jSgjuWn6v4WxtSD1OqiE+j7eUxUdVnNJ5MMV0v8a5mvb6nLd+aoI Ji8lNSD/My/kbF+xGhF5VDr17cPExtokOkMQkXSHJ5K2p4FKoapc+m/SKjAxw+tN MCyoDyw/t2JvOQGSLBFFwLnbi1GHGRqUi2dzCyCMjjFB1OGetsb1G+98P8hNfJYj r4JJGFV4QOMNv6hMKU0Mh9VL6bGqWPnNg7vA4Gzz2zM81emYZwAVQL1uQ0C+cKZo JsVwbNsYbH1VolbIZUvqyVtqNaEPB/ix4sy26ATHGM95Xy8YUqnMdJ6n6y0CSoNW SOrZ47FS64/sdtk3uGeUrgbhaGlFr4TR7QrYSM0HgpoGZVcl8xJBmFhL8DXj1Gcq ml8nrcgxq++vMMwbtgbf =AQnL -----END PGP SIGNATURE----- --nextPart73310101.A8nzveFI55--