From: Michael Schmarck <michael.schmarck@habmalnefrage.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Setting LINGUAS seperately for some packages
Date: Thu, 13 Mar 2008 09:41:54 +0100 [thread overview]
Message-ID: <1205405520.H1DNcKYRJm@schmarck.cn> (raw)
In-Reply-To: 200803121731.56376.wonko@wonkology.org
Alex Schuster <wonko@wonkology.org> wrote:
> Willie Wong writes:
>
>> On Wed, Mar 12, 2008 at 04:07:16PM +0100, Penguin Lover Dirk Heinrichs
>> squawked:
>> > > I'd like to set LINGUAS=de 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.
>
> 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:
>
> if [[ $CATEGORY/$PN == sys-apps/man-pages ]]
> then
> LINGUAS=
> fi
>
>
> 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:
>
> envFile=/etc/portage/package.env/$CATEGORY/$PN
> if [[ -f $envFile-$PV ]]
> then
> . "$envFile-$PV"
> elif [[ -f $envFile ]]
> then
> . "$envFile"
> fi
>
> So I would have a file /etc/portage/package.env/sys-apps/man-pages
> containing "LINGUAS=",
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="nls" LINGUAS="-cs% -da% de%* -es% -fr% -it% -ja% -nl% -pl% -ro% -ru% -zh_CN%" 1,823 kB
[ebuild N ] app-i18n/man-pages-de-0.5-r1 510 kB
# cat /etc/portage/package.env/sys-apps/man-pages
export LINGUAS=
# cat /etc/portage/bashrc
# <news:200803121731.56376.wonko@wonkology.org>
envFile=/etc/portage/package.env/$CATEGORY/$PN
if [[ -f $envFile-$PV ]]
then
. "$envFile-$PV"
elif [[ -f $envFile ]]
then
. "$envFile"
fi
It seems as if this does not work - or does it?
Michael
--
gentoo-user@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-03-13 8:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 15:02 [gentoo-user] Setting LINGUAS seperately for some packages Michael Schmarck
2008-03-12 15:07 ` Dirk Heinrichs
2008-03-12 16:08 ` Willie Wong
2008-03-12 16:22 ` Henry Gebhardt
2008-03-12 17:27 ` Dirk Heinrichs
2008-03-13 8:45 ` [gentoo-user] " Michael Schmarck
2008-03-12 16:31 ` [gentoo-user] " Alex Schuster
2008-03-13 8:41 ` Michael Schmarck [this message]
2008-03-13 10:39 ` [gentoo-user] " Alex Schuster
2008-03-13 8:38 ` Michael Schmarck
2008-03-13 9:12 ` Dirk Heinrichs
2008-03-13 10:00 ` [gentoo-user] " Michael Schmarck
2008-03-13 10:07 ` Dirk Heinrichs
2008-03-13 10:44 ` [gentoo-user] " Michael Schmarck
2008-03-13 10:58 ` Davi Vidal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1205405520.H1DNcKYRJm@schmarck.cn \
--to=michael.schmarck@habmalnefrage.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox