summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <tomka@gentoo.org>2012-03-07 16:12:39 +0000
committerThomas Kahle <tomka@gentoo.org>2012-03-07 16:12:39 +0000
commit81c517c89d04859286108b1a7c9b76c8d317b0e6 (patch)
tree5d8d9e252b13baeea3930289fa4e16cb83e9ed28 /net-misc
parentAdd missing dependency dev-util/intltool. #407247 Patch-By: Piotr Szymaniak (diff)
downloadgentoo-2-81c517c89d04859286108b1a7c9b76c8d317b0e6.tar.gz
gentoo-2-81c517c89d04859286108b1a7c9b76c8d317b0e6.tar.bz2
gentoo-2-81c517c89d04859286108b1a7c9b76c8d317b0e6.zip
Don't compile translations without USE='nls'
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/wicd/ChangeLog5
-rw-r--r--net-misc/wicd/wicd-1.7.1-r3.ebuild16
2 files changed, 13 insertions, 8 deletions
diff --git a/net-misc/wicd/ChangeLog b/net-misc/wicd/ChangeLog
index dfce54caf84e..d4f6fea8e7dc 100644
--- a/net-misc/wicd/ChangeLog
+++ b/net-misc/wicd/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-misc/wicd
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.115 2012/03/07 13:46:24 tomka Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.116 2012/03/07 16:12:39 tomka Exp $
+
+ 07 Mar 2012; Thomas Kahle <tomka@gentoo.org> wicd-1.7.1-r3.ebuild:
+ Don't compile translations without USE='nls'
*wicd-1.7.1-r3 (07 Mar 2012)
diff --git a/net-misc/wicd/wicd-1.7.1-r3.ebuild b/net-misc/wicd/wicd-1.7.1-r3.ebuild
index b3faf6e9cf65..42bc5c08ec7e 100644
--- a/net-misc/wicd/wicd-1.7.1-r3.ebuild
+++ b/net-misc/wicd/wicd-1.7.1-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/wicd-1.7.1-r3.ebuild,v 1.1 2012/03/07 13:46:24 tomka Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/wicd-1.7.1-r3.ebuild,v 1.2 2012/03/07 16:12:39 tomka Exp $
EAPI=3
@@ -23,7 +23,7 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="X ambiance +gtk ioctl libnotify mac4lin ncurses nls +pm-utils"
-DEPEND="dev-python/Babel"
+DEPEND="nls? ( dev-python/Babel )"
# Maybe virtual/dhcp would work, but there are enough problems with
# net-misc/dhcp that I want net-misc/dhcpcd to be guarenteed to be considered
# first if none are installed.
@@ -71,11 +71,13 @@ src_prepare() {
# Need to ensure that generated scripts use Python 2 at run time.
sed -e "s:self.python = '/usr/bin/python':self.python = '/usr/bin/python2':" \
-i setup.py || die "sed failed"
- # Compile the translations
- ./setup.py compile_translations || die
- # Asturian is known to fail, so we just give them japanese :)
- # (https://bugs.launchpad.net/wicd/+bug/928589)
- cp translations/ja/LC_MESSAGES/wicd.mo translations/ast/LC_MESSAGES/wicd.mo || die
+ if use nls; then
+ # Compile the translations
+ ./setup.py compile_translations || die
+ # Asturian is known to fail, so we just give them japanese :)
+ # (https://bugs.launchpad.net/wicd/+bug/928589)
+ cp translations/ja/LC_MESSAGES/wicd.mo translations/ast/LC_MESSAGES/wicd.mo || die
+ fi
python_copy_sources
}