Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kde-l10n/
Date: Sat, 27 Jun 2015 13:53:46
Message-Id: 1435413209.a096036fc7c2b5f23b92d87c3e89ff389ec64753.mrueg@gentoo
1 commit: a096036fc7c2b5f23b92d87c3e89ff389ec64753
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 27 13:53:29 2015 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 27 13:53:29 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a096036f
7
8 [kde-apps/kde-l10n] Version bump.
9
10 Package-Manager: portage-2.2.20
11
12 kde-apps/kde-l10n/kde-l10n-15.04.3.ebuild | 98 +++++++++++++++++++++++++++++++
13 1 file changed, 98 insertions(+)
14
15 diff --git a/kde-apps/kde-l10n/kde-l10n-15.04.3.ebuild b/kde-apps/kde-l10n/kde-l10n-15.04.3.ebuild
16 new file mode 100644
17 index 0000000..890095b
18 --- /dev/null
19 +++ b/kde-apps/kde-l10n/kde-l10n-15.04.3.ebuild
20 @@ -0,0 +1,98 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Header: $
24 +
25 +EAPI=5
26 +
27 +KDE_HANDBOOK="true"
28 +inherit kde5
29 +
30 +DESCRIPTION="KDE internationalization package"
31 +HOMEPAGE="http://l10n.kde.org"
32 +
33 +DEPEND="
34 + sys-devel/gettext
35 +"
36 +
37 +KEYWORDS=" ~amd64 ~x86"
38 +IUSE=""
39 +
40 +# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.xz::' -e 's:kde-l10n-::' |tr '\n' ' '
41 +MY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB eo es et eu fa fi fr ga gl
42 +he hi hr hu ia id is it ja kk km ko lt lv mr nb nds nl nn pa pl pt pt_BR ro ru
43 +sk sl sr sv tr ug uk wa zh_CN zh_TW"
44 +
45 +URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
46 +SRC_URI=""
47 +
48 +for MY_LANG in ${MY_LANGS} ; do
49 + IUSE="${IUSE} linguas_${MY_LANG}"
50 + SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.xz )"
51 +done
52 +
53 +S="${WORKDIR}"
54 +
55 +src_unpack() {
56 + if [[ -z ${A} ]]; then
57 + elog
58 + elog "You either have the LINGUAS variable unset, or it only"
59 + elog "contains languages not supported by ${P}."
60 + elog "You won't have any additional language support."
61 + elog
62 + elog "${P} supports these language codes:"
63 + elog "${MY_LANGS}"
64 + elog
65 + fi
66 +
67 + [[ -n ${A} ]] && unpack ${A}
68 +}
69 +
70 +src_prepare() {
71 + local LNG DIR
72 + # add all linguas to cmake
73 + if [[ -n ${A} ]]; then
74 + for LNG in ${LINGUAS}; do
75 + DIR="${PN}-${LNG}-${PV}"
76 + if [[ -d "${DIR}" ]] ; then
77 + echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
78 +
79 + # Drop KDE4-based part
80 + sed -e '/add_subdirectory(4)/ s/^/#/'\
81 + -i "${S}"/${DIR}/CMakeLists.txt || die
82 +
83 + # Handbook optional
84 + sed -e '/KF5DocTools/ s/ REQUIRED//'\
85 + -i "${S}"/${DIR}/5/${LNG}/CMakeLists.txt || die
86 + if ! use handbook ; then
87 + sed -e '/add_subdirectory(docs)/ s/^/#/'\
88 + -i "${S}"/${DIR}/5/${LNG}/CMakeLists.txt || die
89 + fi
90 +
91 + # Fix broken LINGUAS=sr (KDE4 leftover)
92 + if [[ ${LNG} = "sr" ]] ; then
93 + sed -e '/add_subdirectory(lokalize)/ s/^/#/'\
94 + -i "${S}"/${DIR}/5/${LNG}/data/kdesdk/CMakeLists.txt || die
95 + fi
96 + fi
97 + done
98 + fi
99 +}
100 +
101 +src_configure() {
102 + mycmakeargs=(
103 + $(cmake-utils_use_find_package handbook KF5DocTools)
104 + )
105 + [[ -n ${A} ]] && kde5_src_configure
106 +}
107 +
108 +src_compile() {
109 + [[ -n ${A} ]] && kde5_src_compile
110 +}
111 +
112 +src_test() {
113 + [[ -n ${A} ]] && kde5_src_test
114 +}
115 +
116 +src_install() {
117 + [[ -n ${A} ]] && kde5_src_install
118 +}