Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kdepim-l10n/, kde-base/kde-l10n/
Date: Sat, 03 Nov 2012 15:49:02
Message-Id: 1351957575.7c7b60356ce0fae92e020a4c5824b633cbf19871.kensington@gentoo
1 commit: 7c7b60356ce0fae92e020a4c5824b633cbf19871
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 3 15:46:15 2012 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 3 15:46:15 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=7c7b6035
7
8 [kde-l10n] Add 4.9.3.
9
10 Package-Manager: portage-2.1.11.31
11
12 ---
13 kde-base/kde-l10n/kde-l10n-4.9.3.ebuild | 87 +++++++++++++++++++
14 kde-base/kdepim-l10n/kdepim-l10n-4.9.3.ebuild | 110 +++++++++++++++++++++++++
15 2 files changed, 197 insertions(+), 0 deletions(-)
16
17 diff --git a/kde-base/kde-l10n/kde-l10n-4.9.3.ebuild b/kde-base/kde-l10n/kde-l10n-4.9.3.ebuild
18 new file mode 100644
19 index 0000000..779f799
20 --- /dev/null
21 +++ b/kde-base/kde-l10n/kde-l10n-4.9.3.ebuild
22 @@ -0,0 +1,87 @@
23 +# Copyright 1999-2012 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Header: $
26 +
27 +EAPI=4
28 +
29 +inherit kde4-base
30 +
31 +DESCRIPTION="KDE internationalization package"
32 +
33 +DEPEND="
34 + sys-devel/gettext
35 +"
36 +RDEPEND="!<kde-misc/konq-plugins-4.6"
37 +
38 +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
39 +IUSE="+handbook"
40 +
41 +# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.xz::' -e 's:kde-l10n-::' |tr '\n' ' '
42 +MY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB es et eu fa fi fr ga gl he
43 +hi hr hu ia is it ja kk km ko lt lv nb nds nl nn pa pl pt pt_BR ro ru si sk sl
44 +sr sv tg th tr ug uk vi wa zh_CN zh_TW"
45 +
46 +URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
47 +SRC_URI=""
48 +
49 +for MY_LANG in ${MY_LANGS} ; do
50 + IUSE="${IUSE} linguas_${MY_LANG}"
51 + SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.xz )"
52 +done
53 +
54 +S="${WORKDIR}"
55 +
56 +src_unpack() {
57 + local LNG DIR
58 + if [[ -z ${A} ]]; then
59 + elog
60 + elog "You either have the LINGUAS variable unset, or it only"
61 + elog "contains languages not supported by ${P}."
62 + elog "You won't have any additional language support."
63 + elog
64 + elog "${P} supports these language codes:"
65 + elog "${MY_LANGS}"
66 + elog
67 + fi
68 +
69 + [[ -n ${A} ]] && unpack ${A}
70 + cd "${S}"
71 +
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 + fi
79 + done
80 + fi
81 +}
82 +
83 +src_prepare() {
84 + find "${S}" -name CMakeLists.txt -type f \
85 + -exec sed -i -e 's:^ *add_subdirectory( *kdepim-runtime *):# no kdepim-runtime:g' {} +
86 + find "${S}" -name CMakeLists.txt -type f \
87 + -exec sed -i -e 's:^ *add_subdirectory( *kdepim *):# no kdepim:g' {} +
88 +
89 + kde4-base_src_prepare
90 +}
91 +
92 +src_configure() {
93 + mycmakeargs=(
94 + $(cmake-utils_use_build handbook docs)
95 + )
96 + [[ -n ${A} ]] && kde4-base_src_configure
97 +}
98 +
99 +src_compile() {
100 + [[ -n ${A} ]] && kde4-base_src_compile
101 +}
102 +
103 +src_test() {
104 + [[ -n ${A} ]] && kde4-base_src_test
105 +}
106 +
107 +src_install() {
108 + [[ -n ${A} ]] && kde4-base_src_install
109 +}
110
111 diff --git a/kde-base/kdepim-l10n/kdepim-l10n-4.9.3.ebuild b/kde-base/kdepim-l10n/kdepim-l10n-4.9.3.ebuild
112 new file mode 100644
113 index 0000000..2f3e009
114 --- /dev/null
115 +++ b/kde-base/kdepim-l10n/kdepim-l10n-4.9.3.ebuild
116 @@ -0,0 +1,110 @@
117 +# Copyright 1999-2012 Gentoo Foundation
118 +# Distributed under the terms of the GNU General Public License v2
119 +# $Header: $
120 +
121 +EAPI=4
122 +
123 +KDE_HANDBOOK=optional
124 +inherit kde4-base
125 +
126 +DESCRIPTION="KDE PIM internationalization package"
127 +
128 +DEPEND="
129 + sys-devel/gettext
130 +"
131 +RDEPEND=""
132 +
133 +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
134 +IUSE=""
135 +
136 +MY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB es et eu fa fi fr ga gl he
137 +hi hr hu ia is it ja kk km ko lt lv nb nds nl nn pa pl pt pt_BR ro ru si sk sl
138 +sr sv tg th tr ug uk vi wa zh_CN zh_TW"
139 +
140 +URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
141 +SRC_URI=""
142 +
143 +for MY_LANG in ${MY_LANGS} ; do
144 + IUSE="${IUSE} linguas_${MY_LANG}"
145 + SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE/kdepim/kde}/kde-l10n-${MY_LANG}-${PV}.tar.xz )"
146 +done
147 +
148 +S="${WORKDIR}"
149 +
150 +src_unpack() {
151 + local LNG DIR
152 + if [[ -z ${A} ]]; then
153 + elog
154 + elog "You either have the LINGUAS variable unset, or it only"
155 + elog "contains languages not supported by ${P}."
156 + elog "You won't have any additional language support."
157 + elog
158 + elog "${P} supports these language codes:"
159 + elog "${MY_LANGS}"
160 + elog
161 + fi
162 +
163 + # For EAPI >= 3, or if not using .tar.xz archives:
164 + [[ -n ${A} ]] && unpack ${A}
165 + cd "${S}"
166 +
167 + # add all linguas to cmake
168 + if [[ -n ${A} ]]; then
169 + for LNG in ${LINGUAS}; do
170 + DIR="kde-l10n-${LNG}-${PV}"
171 + if [[ -d "${DIR}" ]] ; then
172 + echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
173 + fi
174 +
175 + # remove everything except kdepim and kdepim-runtime
176 + for SUBDIR in data docs messages scripts ; do
177 + if [[ -d "${S}/${DIR}/${SUBDIR}" ]] ; then
178 + einfo " ${SUBDIR} subdirectory"
179 + echo > "${S}/${DIR}/${SUBDIR}/CMakeLists.txt"
180 + [[ -d "${S}/${DIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" )
181 + [[ -d "${S}/${DIR}/${SUBDIR}/kdepim-runtime" ]] && ( echo "add_subdirectory(kdepim-runtime)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" )
182 + fi
183 + done
184 +
185 + # in some cases we may have sub-lingua subdirs, e.g. sr :(
186 + for XSUBDIR in "${S}/${DIR}/${LNG}"@* ; do
187 + XLNG=$(echo ${XSUBDIR}|sed -e 's:^.*/::')
188 + if [[ -d "${XSUBDIR}" ]] ; then
189 + einfo " ${XLNG} variant"
190 + # remove everything except kdepim and kdepim-runtime
191 + for SUBDIR in data docs messages scripts ; do
192 + if [[ -d "${XSUBDIR}/${SUBDIR}" ]] ; then
193 + einfo " ${SUBDIR} subdirectory"
194 + echo > "${XSUBDIR}/${SUBDIR}/CMakeLists.txt"
195 + [[ -d "${XSUBDIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" )
196 + [[ -d "${XSUBDIR}/${SUBDIR}/kdepim-runtime" ]] && ( echo "add_subdirectory(kdepim-runtime)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" )
197 + fi
198 + done
199 + fi
200 + done
201 + done
202 + fi
203 +}
204 +
205 +src_prepare() {
206 + [[ -n ${A} ]] && kde4-base_src_prepare
207 +}
208 +
209 +src_configure() {
210 + mycmakeargs=(
211 + $(cmake-utils_use_build handbook docs)
212 + )
213 + [[ -n ${A} ]] && kde4-base_src_configure
214 +}
215 +
216 +src_compile() {
217 + [[ -n ${A} ]] && kde4-base_src_compile
218 +}
219 +
220 +src_test() {
221 + [[ -n ${A} ]] && kde4-base_src_test
222 +}
223 +
224 +src_install() {
225 + [[ -n ${A} ]] && kde4-base_src_install
226 +}