diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-03-31 11:41:05 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-03-31 11:41:05 +0000 |
commit | c8dc1fd99811796f59da97f6bdb65e25a543418f (patch) | |
tree | 5f9d121719027797757dc22bec41fb336e3bfe41 | |
parent | Add new dependencies. Fixes bug#401547. Thanks to Marco Paolone for the patch. (diff) | |
download | historical-c8dc1fd99811796f59da97f6bdb65e25a543418f.tar.gz historical-c8dc1fd99811796f59da97f6bdb65e25a543418f.tar.bz2 historical-c8dc1fd99811796f59da97f6bdb65e25a543418f.zip |
Add support for linguas switching. Fixes bug#402297.
Package-Manager: portage-2.2.0_alpha96/cvs/Linux x86_64
-rw-r--r-- | net-irc/weechat/ChangeLog | 6 | ||||
-rw-r--r-- | net-irc/weechat/Manifest | 32 | ||||
-rw-r--r-- | net-irc/weechat/weechat-0.3.7.ebuild | 18 | ||||
-rw-r--r-- | net-irc/weechat/weechat-9999.ebuild | 18 |
4 files changed, 55 insertions, 19 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/Manifest b/net-irc/weechat/Manifest index bceb32905314..ec4f9df08a73 100644 --- a/net-irc/weechat/Manifest +++ b/net-irc/weechat/Manifest @@ -4,24 +4,24 @@ Hash: SHA1 DIST weechat-0.3.5.tar.bz2 2053043 RMD160 4a590f22a97618cf101314df4ca3e2ecb2a1a5e4 SHA1 d963b408ec69b69a73e081414ece981804060975 SHA256 c8f86ed75bd57a498702aba7f9c96a99fc1581c6a034bf9a7761d8d578b4e154 DIST weechat-0.3.7.tar.bz2 2444611 RMD160 9f830136eccf6d4c61bbd09ceb7b9b5aab22e947 SHA1 897b79e18bbe947e4b78857ff1d428d17441d412 SHA256 8ef5e3daf49e75669e36093c1df852e65b51d512073c6e6b935a7fa90f6b7bca EBUILD weechat-0.3.5.ebuild 2723 RMD160 ca20a42a3e1ae958c0f76220a5015187a3c47633 SHA1 ad5be0be587e629a9286a7f1056b2adac6f5c89b SHA256 4d3bb816d101d6c19182ab8abad81f84bf8b42123f8e01dc642a4e2b4c46a590 -EBUILD weechat-0.3.7.ebuild 2837 RMD160 64ac65110978f1c2447d9332eeaf62623698d82c SHA1 873f51e0ba667c4aa394fff46c4e0821ac417008 SHA256 7a2ea589531e1cb8a0aa4589b3080dba527c84dce32665340b7c8504b9fc237f -EBUILD weechat-9999.ebuild 2760 RMD160 ec3a006414a2737f369f8384c40100963238e75e SHA1 1eea57bb2a47309a8fe461b1a4591bc943bac124 SHA256 32d1d5bea848f2f9cab3bb51ccc1af1dce6915aeec946a64d6f91ea10d5f891a -MISC ChangeLog 13908 RMD160 6b1e950b3c24ceae2fec7835bfd4985106012488 SHA1 eb38f7ddb3e7f6b53a91b332de3c35427defcf0b SHA256 48c22dbdf195a00cc141f275c91cbefce1ca05d3d678ae3f29d02aa7ed3b2526 +EBUILD weechat-0.3.7.ebuild 3126 RMD160 783dd5629f2382106f56bbbfab7590904f1c1763 SHA1 8cbc198e6711a6c1be7608ad336a89e97e1354a2 SHA256 3fc3a92f322e7d0f02dd394ed44467edba45f753b9c7e7173a982a2b524f0e2d +EBUILD weechat-9999.ebuild 3049 RMD160 57a21af3170ed3e3b10ca40383442d3cd7790384 SHA1 3931462a9aac97c780c411166fd15563b10376d8 SHA256 79762a66c68f07925b6425aff0b64f310bdb0925aba2c77ef0703c3ff1f66919 +MISC ChangeLog 14064 RMD160 b87e02968257a8d3cd40dd4b9d74dd4b976a6187 SHA1 da54a0a4a8045eb5432552f793e4a468fcd9685f SHA256 9f2eea23d62fd36f80426a859baac8e3bb92c33b21d9beea50c2f3605df70fa8 MISC metadata.xml 775 RMD160 ef36438a7f202b6510ef55fd90feaa96973aea50 SHA1 3baa683f3123029a1c83677634c6f5f281941d4a SHA256 baddf6a8f9e77502d45119a96455031b564e19a864c8540e5c44500aeb1ddc54 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iQIcBAEBAgAGBQJPdurDAAoJEOSiRoyO7jvoRHoP/3C/tNoO65dqHdy5T+a2zHdq -OvTGzRZ/83qQtRCdyVo33mq1LZqcacgzkHqfDkYaG8EydYsBBoEp9eKSldYmQ0mw -W6Vc251NsVCnYzIT4JvlUW6Ps8ySM2RQ4hjlW7ZhKIH7h77nvKGGRYZXGxJK/qJF -N/V9ghoS8ikNYyMchG7bFgL4Kv8ctd7cpxezGZVC3mx7OD+Ux7eIT+XzUBD1r/S/ -Xff2R0g12SeN2SpgBWJcxDVgwkbrk0oKKD6I352tNijX3rMoIa6QCUoEiSpTTIAF -Xr06L4OblbRDYq/8rel+K5e0BK4u0EzVcVuo0BMgtDGQ0pRyLjoLNxGQKsh3OZsg -yycnxFCydqO0BqciR+qd8X1ndac471S7072yzI4lsVW8tBcBrgRinkeC2pOwiEZm -doTV9G243q0sJaQ8k39P7uMNTEfGCC4La8aqQxKOmQVjC6acO8t+rQ3xRJpVgrpv -Ck5o9tA8rxuYy3F4CSTBQfMmTNfjGfCDX6JQKKw2tn8y5zDxQDsq2yjchonoqvZC -tZQlMXaTSAlEpjELH6YMUAbG1BpPA5WK0laR/OVCxvtqIMcleN1rKCYV/X1oXK+c -4SF1l0JpvKEPdOfYAnaYCqFrQcmEEBHAnF5oTu2IGl/H+w1bWJ0nn0P8bO0E2h0K -20oEBz8ZLegoSPrhVyib -=4AJy +iQIcBAEBAgAGBQJPdu1XAAoJEOSiRoyO7jvoRWYP/3DBkiXG1JjTjuEgIjaEUuXv +NTTawv/6acKK4cxL1H/u7MF1Sx2hxVKv21JzBthPW3464xzlj8zeG5Ig/zr22ZjX +1GFwiBwPGeHjXocejWjLaKtIwJAYZkH4CaL6Ibc2gUbsxBJ9HmCO0NsVFqhzlZ+x +NJLS5rjP32IU8r7L4oSPKj4KFKaiFWZnQvn828OGYgzVsUg4qH4Xq2jGkIXsGjRw +9OJcHIRgTAPCtQnXM9lKpxMmJu1dUiP8q3DvLOXpilaHZ2msRgE/scUD4Gzo1H4Z +etL2BcUdloOhaWzRT+chKnC/3CiIQlAMxlBAoJx+7VxNuS57B0/6s3XOBmY52csD +1S8vkZhW61IS6TWkLfJLxuCyJVz6bjl2PxBv+nPxMX24/INL4fnJ3SXh5Q2UE+to +E1h+i+3LRYocxohctcqXrK7fCNJU6eFA1r51S1F9QyruZgnJBOzxOIgC201tvIY7 +xoTjWtSf6S2QBLxTu+p0tSvwEtWykJ83f5FvUhRBsdmXAokiu6x7ny/b5MrgPrKy +IhLxKf2kAd389FX0Khk/NmTjvNNuoJqgxGTKEmmZ3Ejx+8nLH5/rgZP1OXcX2NcP +jmoEVBt5AN+8QWsQx7Z0zQPz4YXXQLKxADGIuuTwyCFdaWmpUMphNrLhXwD6Ee5j +9r6byTw6SVrlUD9jdiyb +=7nba -----END PGP SIGNATURE----- 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 |