summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/weechat')
-rw-r--r--net-irc/weechat/ChangeLog6
-rw-r--r--net-irc/weechat/weechat-0.3.7.ebuild18
-rw-r--r--net-irc/weechat/weechat-9999.ebuild18
3 files changed, 39 insertions, 3 deletions
diff --git a/net-irc/weechat/ChangeLog b/net-irc/weechat/ChangeLog
index b5e8abf350ae..35cc19d40286 100644
--- a/net-irc/weechat/ChangeLog
+++ b/net-irc/weechat/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-irc/weechat
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/weechat/ChangeLog,v 1.102 2012/03/31 11:30:06 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/weechat/ChangeLog,v 1.103 2012/03/31 11:41:05 scarabeus Exp $
+
+ 31 Mar 2012; Tomáš Chvátal <scarabeus@gentoo.org> weechat-0.3.7.ebuild,
+ weechat-9999.ebuild:
+ Add support for linguas switching. Fixes bug#402297.
31 Mar 2012; Tomáš Chvátal <scarabeus@gentoo.org> weechat-0.3.7.ebuild,
weechat-9999.ebuild:
diff --git a/net-irc/weechat/weechat-0.3.7.ebuild b/net-irc/weechat/weechat-0.3.7.ebuild
index 202450bd1e6f..fa4c05ee1224 100644
--- a/net-irc/weechat/weechat-0.3.7.ebuild
+++ b/net-irc/weechat/weechat-0.3.7.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-irc/weechat/weechat-0.3.7.ebuild,v 1.2 2012/03/31 11:30:06 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/weechat/weechat-0.3.7.ebuild,v 1.3 2012/03/31 11:41:05 scarabeus Exp $
EAPI=4
@@ -55,17 +55,33 @@ DOCS="AUTHORS ChangeLog NEWS README"
#REQUIRED_USE=" || ( ncurses gtk )"
+LANGS=( cs de es fr hu it ja pl pt_BR ru )
+for X in "${LANGS[@]}" ; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
pkg_setup() {
python_pkg_setup
ruby-ng_pkg_setup
}
src_prepare() {
+ local i
+
# fix libdir placement
sed -i \
-e "s:lib/:$(get_libdir)/:g" \
-e "s:lib\":$(get_libdir)\":g" \
CMakeLists.txt || die "sed failed"
+
+ # install only required translations
+ for i in "${LANGS[@]}" ; do
+ if ! use linguas_${i} ; then
+ sed -i \
+ -e "/${i}.po/d" \
+ po/CMakeLists.txt || die
+ fi
+ done
}
# alias, rmodifier, xfer
diff --git a/net-irc/weechat/weechat-9999.ebuild b/net-irc/weechat/weechat-9999.ebuild
index 6bda802eab0b..ebed3e220f3a 100644
--- a/net-irc/weechat/weechat-9999.ebuild
+++ b/net-irc/weechat/weechat-9999.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-irc/weechat/weechat-9999.ebuild,v 1.14 2012/03/31 11:30:06 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/weechat/weechat-9999.ebuild,v 1.15 2012/03/31 11:41:05 scarabeus Exp $
EAPI=4
@@ -53,17 +53,33 @@ DOCS="AUTHORS ChangeLog NEWS README"
#REQUIRED_USE=" || ( ncurses gtk )"
+LANGS=( cs de es fr hu it ja pl pt_BR ru )
+for X in "${LANGS[@]}" ; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
pkg_setup() {
python_pkg_setup
ruby-ng_pkg_setup
}
src_prepare() {
+ local i
+
# fix libdir placement
sed -i \
-e "s:lib/:$(get_libdir)/:g" \
-e "s:lib\":$(get_libdir)\":g" \
CMakeLists.txt || die "sed failed"
+
+ # install only required translations
+ for i in "${LANGS[@]}" ; do
+ if ! use linguas_${i} ; then
+ sed -i \
+ -e "/${i}.po/d" \
+ po/CMakeLists.txt || die
+ fi
+ done
}
# alias, rmodifier, xfer