From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JZj4B-000261-K6 for garchives@archives.gentoo.org; Thu, 13 Mar 2008 08:45:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 434B5E06B0; Thu, 13 Mar 2008 08:45:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EB9C8E06B0 for ; Thu, 13 Mar 2008 08:45:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 7FD8B66384 for ; Thu, 13 Mar 2008 08:45:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -1.643 X-Spam-Level: X-Spam-Status: No, score=-1.643 required=5.5 tests=[AWL=0.956, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uySTPL8kZK3b for ; Thu, 13 Mar 2008 08:45:10 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 71F1265E6E for ; Thu, 13 Mar 2008 08:45:09 +0000 (UTC) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JZj3e-0001q4-9t for gentoo-user@gentoo.org; Thu, 13 Mar 2008 08:45:02 +0000 Received: from 62-2-78-98.static.cablecom.ch ([62.2.78.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Mar 2008 08:45:02 +0000 Received: from michael.schmarck by 62-2-78-98.static.cablecom.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Mar 2008 08:45:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Michael Schmarck Subject: [gentoo-user] Re: Setting LINGUAS seperately for some packages Date: Thu, 13 Mar 2008 09:41:54 +0100 Organization: =?UTF-8?B?xYI=?= Message-ID: <1205405520.H1DNcKYRJm@schmarck.cn> References: <4829307.P7dft3HMIs@schmarck.cn> <200803121607.20469.dirk.heinrichs.ext@nsn.com> <20080312160834.GA27180@princeton.edu> <200803121731.56376.wonko@wonkology.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 62-2-78-98.static.cablecom.ch User-Agent: KNode/0.10.9 Sender: news Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 9206ce24-f922-465c-8be0-7ac177a7a10c X-Archives-Hash: 6002b8c775dbc68d9c5bad8def0e6229 Alex Schuster wrote: > Willie Wong writes: >=20 >> On Wed, Mar 12, 2008 at 04:07:16PM +0100, Penguin Lover Dirk Heinrichs >> squawked: >> > > I'd like to set LINGUAS=3Dde for almost every package. But for the >> > > sys-apps/man-pages package, I'd like LINGUAS not to be set, so >> > > that I don't get the german man pages installed. >> > > >> > > How would I do that? >> > >> > Put this in /etc/portage/package.use: >> > >> > sys-apps/man-pages -nls >> >> Does this work for other packages? For example, I don't think acroread >> has the nls USE flag. >=20 > I don't think so. But: /etc/portage/bashrc is evaluated by emerge, and = you > can put any stuff you want into there. Like this: >=20 > if [[ $CATEGORY/$PN =3D=3D sys-apps/man-pages ]] > then > LINGUAS=3D > fi >=20 >=20 > It seems to be common practice to put some more general code into there= , > and have package-specific file in sub-directories. Mine look slike this= : >=20 > envFile=3D/etc/portage/package.env/$CATEGORY/$PN > if [[ -f $envFile-$PV ]] > then > . "$envFile-$PV" > elif [[ -f $envFile ]] > then > . "$envFile" > fi >=20 > So I would have a file /etc/portage/package.env/sys-apps/man-pages > containing "LINGUAS=3D", I did as you described. When I now run "emerge -vpt man-pages", I get: # emerge -vpt man-pages These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild U ] sys-apps/man-pages-2.78 [2.42] USE=3D"nls" LINGUAS=3D"-cs= % -da% de%* -es% -fr% -it% -ja% -nl% -pl% -ro% -ru% -zh_CN%" 1,823 kB=20 [ebuild N ] app-i18n/man-pages-de-0.5-r1 510 kB=20 # cat /etc/portage/package.env/sys-apps/man-pages export LINGUAS=3D # cat /etc/portage/bashrc=20 # envFile=3D/etc/portage/package.env/$CATEGORY/$PN if [[ -f $envFile-$PV ]] then =C2=A0 =C2=A0 =C2=A0 =C2=A0 . "$envFile-$PV" elif [[ -f $envFile ]] then =C2=A0 =C2=A0 =C2=A0 =C2=A0 . "$envFile" fi It seems as if this does not work - or does it? Michael --=20 gentoo-user@lists.gentoo.org mailing list