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 1M50Nx-0004o2-DQ for garchives@archives.gentoo.org; Fri, 15 May 2009 16:35:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73C91E0609; Fri, 15 May 2009 16:35:48 +0000 (UTC) Received: from mail-bw0-f175.google.com (mail-bw0-f175.google.com [209.85.218.175]) by pigeon.gentoo.org (Postfix) with ESMTP id 2E53FE0609 for ; Fri, 15 May 2009 16:35:48 +0000 (UTC) Received: by bwz23 with SMTP id 23so1940983bwz.34 for ; Fri, 15 May 2009 09:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type; bh=g2DvBgAeME1gW6wqB6YRwMxsJp2B0VVozGVMU59CHJ0=; b=qsAP4C1edprczo4l7ne2jh+VTR90BnxuEcwKwwycA8CaMiwI8VjeI7tYAJsN9vSJoW +Mewf52gYD7r20Rnqxge/ldZDSP2ooYcsf832Oh/JhCzYCRSNQIxfkncfhW4kF4Jrbm0 mn3RQ0Qcok/xQfY7SNgOrAey4jJWZzEPUZPe8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:openpgp:content-type; b=dAEDSKc3NLYeDt4mEsDvln6yCuX/HXq+l5V/j+d4Gl3I/0LBwseCy1n40+cKp2sRsC 0he5vCy5Oi0sCTt9/i80fskHmYnVtVYvmRbN46c4/HmjSbyXQ1nxcGj7d1ULvbM8bsGY /1RFLULxn2Ni/LvuWdfurzYgstgfHi34Uy+DM= Received: by 10.223.126.145 with SMTP id c17mr2669630fas.102.1242405347247; Fri, 15 May 2009 09:35:47 -0700 (PDT) Received: from ?192.168.0.2? (dslb-094-218-235-074.pools.arcor-ip.net [94.218.235.74]) by mx.google.com with ESMTPS id 3sm1727045fxm.36.2009.05.15.09.35.46 (version=SSLv3 cipher=RC4-MD5); Fri, 15 May 2009 09:35:46 -0700 (PDT) Message-ID: <4A0D99DC.1090502@googlemail.com> Date: Fri, 15 May 2009 18:35:40 +0200 From: Daniel Pielmeier User-Agent: Thunderbird 2.0.0.21 (X11/20090429) 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 To: gentoo-devhelp@lists.gentoo.org Subject: Re: [gentoo-devhelp] LINGUAS vs LANGUAGES References: <6142e6140905150705n3db6e281g43439abe11eb1fb7@mail.gmail.com> <4A0D8068.3090304@arcor.de> <6142e6140905150801y7d9a6698obe04cb1c1dd01ca@mail.gmail.com> In-Reply-To: <6142e6140905150801y7d9a6698obe04cb1c1dd01ca@mail.gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=215AD14D Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig48BEF251BAC5E4DF7D6175C2" X-Archives-Salt: 14a454b2-f5e6-405f-a9ad-74fe5dbb9142 X-Archives-Hash: b3ccebb8a4c2ce0d1050ad943f395dbe This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig48BEF251BAC5E4DF7D6175C2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Daniel Pielmeier schrieb am 15.05.2009 17:01: > 2009/5/15 Nikos Chantziaras : >> >> # Install everything except documentation and i18n. >> emake INSTALL_ROOT=3D"${D}" install_target install_charmaps \ >> || die "make install failed" >> # Install i18n files. >> if use linguas_de; then >> insinto "${GAMES_DATADIR}/${PN}/i18n" >> doins "${PN}_de.qm" || die "doins ${PN}_de.qm failed" >> fi You also might consider using a loop for installing the linguas else you have to add the same almost identical block for every new language introduced. This way the intermediate variable LANGS used for IUSE injection comes handy. # IUSE definition: IUSE=3D"flags" LANGS=3D"de en" for i in ${LANGS}; do IUSE=3D"${IUSE} linguas_${i}" done # in src_install: local my_langs for j in ${LINGUAS}; do if has ${j} ${LANGS}; then my_langs=3D"${j} ${my_langs}" fi done insinto "${GAMES_DATADIR}/${PN}/i18n" for k in ${my_langs}; do doins "${PN}_${k}.qm" || die "doins ${PN}_${k}.qm failed" done --=20 Daniel Pielmeier --------------enig48BEF251BAC5E4DF7D6175C2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoNmeEACgkQlcuUeyFa0U34LwCgmSzLp0QrO2BmH21/k/pDT2Jk gqEAoL1ugPEyeeI+GSKg7yauDPP9Gsjv =UlFa -----END PGP SIGNATURE----- --------------enig48BEF251BAC5E4DF7D6175C2--