1 |
commit: cd7d2ed73a9ef3c7c2834f274c799c6a727d63c2 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 24 19:10:08 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 25 15:48:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=cd7d2ed7 |
7 |
|
8 |
kde-apps/kde4-l10n: Migrate to L10N |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
kde-apps/kde4-l10n/kde4-l10n-4.11.2.ebuild | 24 ++++++++++-------------- |
14 |
1 file changed, 10 insertions(+), 14 deletions(-) |
15 |
|
16 |
diff --git a/kde-apps/kde4-l10n/kde4-l10n-4.11.2.ebuild b/kde-apps/kde4-l10n/kde4-l10n-4.11.2.ebuild |
17 |
index e89cdac9..5b6321b7 100644 |
18 |
--- a/kde-apps/kde4-l10n/kde4-l10n-4.11.2.ebuild |
19 |
+++ b/kde-apps/kde4-l10n/kde4-l10n-4.11.2.ebuild |
20 |
@@ -1,6 +1,5 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kde-l10n/kde-l10n-4.11.2.ebuild,v 1.5 2013/12/11 20:26:53 ago Exp $ |
25 |
|
26 |
EAPI=5 |
27 |
|
28 |
@@ -15,20 +14,19 @@ DEPEND=" |
29 |
RDEPEND="!<kde-apps/konq-plugins-4.6:4" |
30 |
|
31 |
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" |
32 |
-IUSE="+handbook" |
33 |
|
34 |
# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.xz::' -e 's:kde-l10n-::' |tr '\n' ' ' |
35 |
MY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB es et eu fa fi fr ga gl he |
36 |
hi hr hu ia is it ja kk km ko lt lv mr nb nds nl nn pa pl pt pt_BR ro ru sk sl |
37 |
sr sv tg tr ug uk vi wa zh_CN zh_TW" |
38 |
|
39 |
-URI_BASE="${SRC_URI/-${PV}.tar.xz/}" |
40 |
-URI_BASE="${URI_BASE/${PN}/kde-l10n}" |
41 |
+IUSE="+handbook $(printf 'l10n_%s ' ${MY_LANGS//[@_]/-})" |
42 |
+ |
43 |
+URI_BASE="mirror://kde/Attic/4.11.2/src/kde-l10n" |
44 |
SRC_URI="" |
45 |
|
46 |
for MY_LANG in ${MY_LANGS} ; do |
47 |
- IUSE="${IUSE} linguas_${MY_LANG}" |
48 |
- SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/kde-l10n-${MY_LANG}-${PV}.tar.xz )" |
49 |
+ SRC_URI="${SRC_URI} l10n_${MY_LANG/[@_]/-}? ( ${URI_BASE}/kde-l10n-${MY_LANG}-${PV}.tar.xz )" |
50 |
done |
51 |
|
52 |
S="${WORKDIR}" |
53 |
@@ -37,21 +35,19 @@ src_unpack() { |
54 |
local LNG DIR |
55 |
if [[ -z ${A} ]]; then |
56 |
elog |
57 |
- elog "You either have the LINGUAS variable unset, or it only" |
58 |
- elog "contains languages not supported by ${P}." |
59 |
- elog "You won't have any additional language support." |
60 |
+ elog "None of the requested L10N are supported by ${P}." |
61 |
elog |
62 |
elog "${P} supports these language codes:" |
63 |
- elog "${MY_LANGS}" |
64 |
+ elog "${MY_LANGS//[@_]/-}" |
65 |
elog |
66 |
fi |
67 |
|
68 |
[[ -n ${A} ]] && unpack ${A} |
69 |
cd "${S}" |
70 |
|
71 |
- # add all linguas to cmake |
72 |
+ # add all l10n to cmake |
73 |
if [[ -n ${A} ]]; then |
74 |
- for LNG in ${LINGUAS}; do |
75 |
+ for LNG in ${MY_LANGS}; do |
76 |
DIR="kde-l10n-${LNG}-${PV}" |
77 |
if [[ -d "${DIR}" ]] ; then |
78 |
echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt |
79 |
@@ -67,7 +63,7 @@ src_prepare() { |
80 |
-exec sed -i -e 's:^ *add_subdirectory( *kdepim *):# no kdepim:g' {} + |
81 |
|
82 |
# bug 481106, please remove in 4.11.1 and later |
83 |
- use linguas_pl && rm "${S}"/kde-l10n-pl-${PV}/messages/kde-runtime/{accountwizard*,akonadi_*}.po |
84 |
+ use l10n_pl && rm "${S}"/kde-l10n-pl-${PV}/messages/kde-runtime/{accountwizard*,akonadi_*}.po |
85 |
|
86 |
kde4-base_src_prepare |
87 |
} |