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 1M4yuq-0007Kf-Ck for garchives@archives.gentoo.org; Fri, 15 May 2009 15:01:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D072CE066A; Fri, 15 May 2009 15:01:39 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by pigeon.gentoo.org (Postfix) with ESMTP id 931D1E066A for ; Fri, 15 May 2009 15:01:39 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 13so700220fge.14 for ; Fri, 15 May 2009 08:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=mwItm3GEI3r8tUNCwQ8tFi+pqhVi8QjzH6ujV3O90+I=; b=wFh8N7kuv6zMWoojrx5QRyNqVDoF/5VS9ndrtsp3zCzuGdQcjrd173qeStrichrR48 /kBtAgF2rHalXh8weMO1h767cFsuZVWY8iucM9fedAzZdhCqfupFx2v/5xez16vvaCO8 No0dFrnGis1yQsefOoVcRdP2kt7y3LSWKJ6v0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ZoWlZkmGYfDMRxVqFZrGZ57fEdFL4Y/jOZRg/FQrjD/o31sds80uMolA14ulht7BZ1 9/RLyNr8ssX2jr4tGUkF63FzocOz0eEQK/R5ORBkQtOqtEqIzILCRTS1mh8QSrVJ4OmK eCPJRnTPFXV4Q2f5zumO606YuEpgi9oxGYXm4= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Development-related help X-BeenThere: gentoo-devhelp@gentoo.org X-BeenThere: gentoo-devhelp@lists.gentoo.org MIME-Version: 1.0 Received: by 10.86.93.17 with SMTP id q17mr3336835fgb.75.1242399699019; Fri, 15 May 2009 08:01:39 -0700 (PDT) In-Reply-To: <4A0D8068.3090304@arcor.de> References: <6142e6140905150705n3db6e281g43439abe11eb1fb7@mail.gmail.com> <4A0D8068.3090304@arcor.de> Date: Fri, 15 May 2009 17:01:38 +0200 Message-ID: <6142e6140905150801y7d9a6698obe04cb1c1dd01ca@mail.gmail.com> Subject: Re: [gentoo-devhelp] LINGUAS vs LANGUAGES From: Daniel Pielmeier To: gentoo-devhelp@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6effc58e-f596-4985-98a9-d995a886ece7 X-Archives-Hash: 9acd921c0317180f351357ba6c443b2c 2009/5/15 Nikos Chantziaras : > (It would be nice to reply on-list so the list's archives will be helpful= to > others searching through it.) Aaargh. I vote for setting the reply-to-ist header for all gentoo lists. > The application uses qmake and it simply installs all languages (*.qm fil= es) > unconditionally during "make install" and loads the appropriate one > according to the LANG env variable at runtime, falling back to English if > one isn't available. =C2=A0At this time, German ("de") is the only one su= pported > though (the app's built-in being English). Ah okay qmake. I somehow mixed this up with cmake. > The solution I arrived at in my ebuild is: > > =C2=A0IUSE=3D"linguas_de" > > and then in src_install() I don't use the "install" make target which wou= ld > install the *.qm files unconditionally, but rather use the other targets > "install" depends upon, omitting "install_i18n": > > =C2=A0# Install everything except documentation and i18n. > =C2=A0emake INSTALL_ROOT=3D"${D}" install_target install_charmaps \ > =C2=A0|| die "make install failed" > =C2=A0# Install i18n files. > =C2=A0if use linguas_de; then > =C2=A0 =C2=A0insinto "${GAMES_DATADIR}/${PN}/i18n" > =C2=A0 =C2=A0doins "${PN}_de.qm" || die "doins ${PN}_de.qm failed" > =C2=A0fi This should work but more convenient would be if there is some configuration switch you can use to define the installed languages. > It works. =C2=A0I assume putting linguas_de directly in IUSE is correct? > I use this for appending LINGUAS to IUSE but only because I have seen this many times in other ebuilds IUSE=3D"dbus debug kde monolithic +oxygen phonon postgres +server +ssl webk= it +X" LANGS=3D"cs da de fr hu it nb_NO ru sl tr" for l in ${LANGS}; do IUSE=3D"${IUSE} linguas_${l}" done Putting it directly in IUSE will also work. --=20 Daniel Pielmeier