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 1RFCp8-000866-55 for garchives@archives.gentoo.org; Sat, 15 Oct 2011 22:35:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B79A421C081; Sat, 15 Oct 2011 22:35:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7260821C081 for ; Sat, 15 Oct 2011 22:35:14 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DC18F1B4014 for ; Sat, 15 Oct 2011 22:35:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 4237880042 for ; Sat, 15 Oct 2011 22:35:13 +0000 (UTC) From: "Alexandre Restovtsev" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexandre Restovtsev" Message-ID: Subject: [gentoo-commits] proj/gnome:master commit in: gnome-extra/gnome-user-docs/ X-VCS-Repository: proj/gnome X-VCS-Files: gnome-extra/gnome-user-docs/gnome-user-docs-3.2.0.1.ebuild X-VCS-Directories: gnome-extra/gnome-user-docs/ X-VCS-Committer: tetromino X-VCS-Committer-Name: Alexandre Restovtsev X-VCS-Revision: f29599179000b84bef002962b319b205c5f01127 Date: Sat, 15 Oct 2011 22:35:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 4efff7850ca96aaf5db1d79ac534a667 commit: f29599179000b84bef002962b319b205c5f01127 Author: Alexandre Rostovtsev gmail com> AuthorDate: Sat Oct 15 22:29:46 2011 +0000 Commit: Alexandre Restovtsev gmail com> CommitDate: Sat Oct 15 22:29:46 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gnome.git;a=3D= commit;h=3Df2959917 gnome-extra/gnome-user-docs: add explicit linguas_ handling Building all translations of all help files takes an extremely long time. Thus, unlike in most other gnome packages, we default to treating an unset LINGUAS as empty (i.e. install only "C" locale). Add explicit linguas_* use-expand variables to indicate to the user that this non-standard behavior is the case. --- .../gnome-user-docs/gnome-user-docs-3.2.0.1.ebuild | 20 +++++++++-----= ------ 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/gnome-extra/gnome-user-docs/gnome-user-docs-3.2.0.1.ebuild b= /gnome-extra/gnome-user-docs/gnome-user-docs-3.2.0.1.ebuild index 6f9af76..d46e619 100644 --- a/gnome-extra/gnome-user-docs/gnome-user-docs-3.2.0.1.ebuild +++ b/gnome-extra/gnome-user-docs/gnome-user-docs-3.2.0.1.ebuild @@ -14,6 +14,12 @@ LICENSE=3D"CC-Attribution-3.0" SLOT=3D"0" KEYWORDS=3D"~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE=3D"" +# Explicit linguas_ handling since building all translations takes forev= er +# XXX: keep LANGS list in sync with package! ("C" is always installed) +LANGS=3D"ca de es fi fr gl hi hu nl ru sl sv vi" +for x in ${LANGS}; do + IUSE=3D"${IUSE} linguas_${x}" +done =20 # Newer gnome-doc-utils is needed for RNGs # libxml2 needed for xmllint @@ -29,15 +35,7 @@ RESTRICT=3D"binchecks strip" =20 DOCS=3D"AUTHORS ChangeLog NEWS README" =20 -pkg_pretend() { - if [[ -z ${LINGUAS} ]]; then - ewarn "You are building ${PN} with LINGUAS unset, so help files" - ewarn "in all languages supported by the package will be built." - ewarn - ewarn "To decrease build time, it is recommended that you set LINGUAS" - ewarn "in /etc/make.conf to the set of language codes that are needed" - ewarn "for your system. For example," - ewarn "LINGUAS=3D\"en es\"" - ewarn "ensures that only English and Spanish translations are built." - fi +pkg_setup() { + # Treat unset LINGUAS as empty (building all translations takes forever= ). + export LINGUAS=3D"${LINGUAS-}" }