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 1RFERL-0003WR-2M for garchives@archives.gentoo.org; Sun, 16 Oct 2011 00:18:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1077121C0A2; Sun, 16 Oct 2011 00:18:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BEFA021C0A2 for ; Sun, 16 Oct 2011 00:18:47 +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 360101B400A for ; Sun, 16 Oct 2011 00:18:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 7560180042 for ; Sun, 16 Oct 2011 00:18:46 +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: <66c4c7786370a4a09799ccccdcd3817311408483.tetromino@gentoo> 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: 66c4c7786370a4a09799ccccdcd3817311408483 Date: Sun, 16 Oct 2011 00:18:46 +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: e7ea6673aa04596b78520882c66f190f commit: 66c4c7786370a4a09799ccccdcd3817311408483 Author: Alexandre Rostovtsev gmail com> AuthorDate: Sun Oct 16 00:15:28 2011 +0000 Commit: Alexandre Restovtsev gmail com> CommitDate: Sun Oct 16 00:15:28 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gnome.git;a=3D= commit;h=3D66c4c778 gnome-extra/gnome-user-docs: do not rebuild translations Do not rebuild translations, they come with the tarball, and rebuilding them takes far too long. Since translations are rebuild on "make all", this simply amounts to skipping src_compile(). Thanks to Mart Raudsepp for pointing out that the default behavior of the package could not possibly be right. Also, since we are not rebuilding translations, we can drop some dependencies. Now, installing gnome-user-docs with all translations takes seconds instead of hours! --- .../gnome-user-docs/gnome-user-docs-3.2.0.1.ebuild | 33 ++++++++++++--= ------ 1 files changed, 20 insertions(+), 13 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 d46e619..5783a61 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 @@ -13,22 +13,21 @@ HOMEPAGE=3D"http://www.gnome.org/" 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 +IUSE=3D"test" =20 # Newer gnome-doc-utils is needed for RNGs # libxml2 needed for xmllint # scrollkeeper is referenced in gnome-user-docs.spec, but is not used RDEPEND=3D"" -DEPEND=3D">=3Dapp-text/gnome-doc-utils-0.20.5 - dev-libs/libxml2 - dev-util/itstool - sys-devel/gettext" +DEPEND=3D"test? ( + >=3Dapp-text/gnome-doc-utils-0.20.5 + dev-libs/libxml2 )" +# eautoreconf requires: +# app-text/yelp-tools +# rebuilding translations requires: +# dev-libs/libxml2 +# dev-util/gettext +# dev-util/itstool =20 # This ebuild does not install any binaries RESTRICT=3D"binchecks strip" @@ -36,6 +35,14 @@ RESTRICT=3D"binchecks strip" DOCS=3D"AUTHORS ChangeLog NEWS README" =20 pkg_setup() { - # Treat unset LINGUAS as empty (building all translations takes forever= ). - export LINGUAS=3D"${LINGUAS-}" + # itstool is only needed for rebuilding translations + G2CONF=3D"${G2CONF} ITSTOOL=3D$(type -P true)" + # xmllint is only needed for tests + use test || G2CONF=3D"${G2CONF} XMLLINT=3D$(type -P true)" +} + +src_compile() { + # Do not compile; "make all" with unset LINGUAS rebuilds all translatio= ns, + # which can takes > 2 hours on a Core i7. + return }