1 |
commit: c7c68b0ef24b4a08e9ab2a2267aa3e4cd9e57f27 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 6 12:06:18 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 6 12:22:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c68b0e |
7 |
|
8 |
mail-client/mail-notification: Remove linguas_* from IUSE. |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
.../mail-notification-5.4-r10.ebuild | 23 +++++++++++----------- |
13 |
1 file changed, 11 insertions(+), 12 deletions(-) |
14 |
|
15 |
diff --git a/mail-client/mail-notification/mail-notification-5.4-r10.ebuild b/mail-client/mail-notification/mail-notification-5.4-r10.ebuild |
16 |
index 6a021824142..4c0b026eefa 100644 |
17 |
--- a/mail-client/mail-notification/mail-notification-5.4-r10.ebuild |
18 |
+++ b/mail-client/mail-notification/mail-notification-5.4-r10.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2017 Gentoo Foundation |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=6 |
25 |
@@ -17,9 +17,6 @@ LICENSE="GPL-3" |
26 |
IUSE="+gnome-keyring libressl sasl ssl sylpheed" |
27 |
|
28 |
LANGS="bg ca cs de es fr ja nl pl pt pt_BR ru sr sr@Latn sv" |
29 |
-for lang in ${LANGS}; do |
30 |
- IUSE+=" linguas_${lang}" |
31 |
-done |
32 |
|
33 |
# gmime is actually optional, but it's used by so much of the package |
34 |
# it's pointless making it optional. gnome-keyring is required for |
35 |
@@ -100,12 +97,14 @@ src_install() { |
36 |
einstalldocs |
37 |
rm -rf "${ED}/var/lib/scrollkeeper" |
38 |
|
39 |
- einfo "Cleaning up locales..." |
40 |
- for lang in ${LANGS}; do |
41 |
- use "linguas_${lang}" && { |
42 |
- einfo "- keeping ${lang}" |
43 |
- continue |
44 |
- } |
45 |
- rm -Rf "${D}"/usr/share/locale/"${lang}" || die |
46 |
- done |
47 |
+ if [[ -n ${LINGUAS+set} ]]; then |
48 |
+ einfo "Cleaning up locales..." |
49 |
+ for lang in ${LANGS}; do |
50 |
+ if has ${lang} ${LINGUAS}; then |
51 |
+ einfo "- keeping ${lang}" |
52 |
+ else |
53 |
+ rm -Rf "${D}"/usr/share/locale/"${lang}" || die |
54 |
+ fi |
55 |
+ done |
56 |
+ fi |
57 |
} |