Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/libreoffice-l10n: ChangeLog libreoffice-l10n-3.5.0-r2.ebuild libreoffice-l10n-3.4.5-r1.ebuild libreoffice-l10n-3.4.5.ebuild libreoffice-l10n-3.5.0-r1.ebuild
Date: Wed, 11 Jan 2012 12:06:41
Message-Id: 20120111120626.6C8152001D@flycatcher.gentoo.org
1 scarabeus 12/01/11 12:06:26
2
3 Modified: ChangeLog
4 Added: libreoffice-l10n-3.5.0-r2.ebuild
5 libreoffice-l10n-3.4.5-r1.ebuild
6 Removed: libreoffice-l10n-3.4.5.ebuild
7 libreoffice-l10n-3.5.0-r1.ebuild
8 Log:
9 Revsion bump to use updated rpms.
10
11 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
12
13 Revision Changes Path
14 1.27 app-office/libreoffice-l10n/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?rev=1.27&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?rev=1.27&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?r1=1.26&r2=1.27
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v
23 retrieving revision 1.26
24 retrieving revision 1.27
25 diff -u -r1.26 -r1.27
26 --- ChangeLog 3 Jan 2012 21:04:21 -0000 1.26
27 +++ ChangeLog 11 Jan 2012 12:06:26 -0000 1.27
28 @@ -1,6 +1,15 @@
29 # ChangeLog for app-office/libreoffice-l10n
30 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v 1.26 2012/01/03 21:04:21 scarabeus Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v 1.27 2012/01/11 12:06:26 scarabeus Exp $
33 +
34 +*libreoffice-l10n-3.5.0-r2 (11 Jan 2012)
35 +*libreoffice-l10n-3.4.5-r1 (11 Jan 2012)
36 +
37 + 11 Jan 2012; Tomáš Chvátal <scarabeus@g.o>
38 + -libreoffice-l10n-3.4.5.ebuild, +libreoffice-l10n-3.4.5-r1.ebuild,
39 + -libreoffice-l10n-3.5.0-r1.ebuild, +libreoffice-l10n-3.5.0-r2.ebuild,
40 + files/lo_gen_langs.sh:
41 + Revsion bump to use updated rpms.
42
43 *libreoffice-l10n-3.4.5 (03 Jan 2012)
44
45
46
47
48 1.1 app-office/libreoffice-l10n/libreoffice-l10n-3.5.0-r2.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.5.0-r2.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.5.0-r2.ebuild?rev=1.1&content-type=text/plain
52
53 Index: libreoffice-l10n-3.5.0-r2.ebuild
54 ===================================================================
55 # Copyright 1999-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.5.0-r2.ebuild,v 1.1 2012/01/11 12:06:26 scarabeus Exp $
58
59 EAPI=4
60
61 MY_PV="3.5.0beta2"
62
63 RC_VERSION="" # CHECK ME WITH EVERY BUMP!
64 BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/testing/3.5.0-beta2/rpm"
65
66 OO_EXTENSIONS=(
67 "472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt"
68 "53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt"
69 "4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt"
70 "a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt"
71 "09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt"
72 "b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt"
73 )
74 inherit rpm eutils versionator office-ext
75
76 DESCRIPTION="Translations for the Libreoffice suite."
77 HOMEPAGE="http://www.libreoffice.org"
78
79 LICENSE="LGPL-3"
80 SLOT="0"
81 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
82 IUSE="offlinehelp templates"
83
84 LANGUAGES_HELP="bg bn bo bs ca_XV ca cs da de dz el en_GB en en_ZA eo es et eu
85 fi fr gl gu he hi hr hu id is it ja ka km ko lb mk nb ne nl nn om pl pt_BR pt
86 ru si sk sl sq sv tg tr ug uk vi zh_CN zh_TW"
87 LANGUAGES="${LANGUAGES_HELP} af ar as ast be br brx cy dgo fa ga gd kk kn kok ks
88 ku lo lt lv mai ml mn mni mr my nr nso oc or pa_IN ro rw sa_IN sat sd sh sr ss
89 st sw_TZ ta te th tn ts uz ve xh zu"
90
91 for lang in ${LANGUAGES}; do
92 helppack=""
93 langpack=""
94 if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]]; then
95 [[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
96 helppack=" offlinehelp? ( ${BASE_SRC_URI}/x86/LibO-Dev_${MY_PV}_Linux_x86_helppack-rpm_${lang2/_/-}.tar.gz ) "
97 fi
98 [[ ${lang} == en ]] \
99 || langpack=" ${BASE_SRC_URI}/x86/LibO-Dev_${MY_PV}_Linux_x86_langpack-rpm_${lang/_/-}.tar.gz "
100 SRC_URI+=" linguas_${lang}? (
101 ${langpack}
102 ${helppack}
103 )"
104 IUSE+=" linguas_${lang}"
105 done
106 unset lang helppack langpack lang2
107
108 # dictionaries
109 SPELL_DICTS="af bg ca cs cy da de el en eo es et fr ga gl he hr hu it ku lt mk
110 nb nl nn pl pt ru sk sl sv tn zu"
111 for X in ${SPELL_DICTS} ; do
112 SPELL_DICTS_DEPEND+=" linguas_${X}? ( app-dicts/myspell-${X} )"
113 done
114 RDEPEND="${SPELL_DICTS_DEPEND}"
115 unset X SPELL_DICTS SPELL_DICTS_DEPEND
116
117 # no need for iuse here as this needs to be written out and is subset
118 # of lignuas anyway
119 EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
120 TDEPEND=""
121 for i in ${OO_EXTENSIONS[@]}; do
122 lingua=${i/_*.oxt/}
123 lingua=${lingua/*Pack-/}
124 if [[ ${lingua} == en-US ]]; then
125 TDEPEND+=" ${EXT_URI}/${i}"
126 else
127 TDEPEND+=" linguas_${lingua}? ( ${EXT_URI}/${i} )"
128 fi
129 done
130 SRC_URI+=" templates? ( ${TDEPEND} )"
131 unset i lingua TDEPEND EXT_URI
132
133 # blockers for old libreoffice with bundled linguas
134 RDEPEND+="
135 !=app-office/libreoffice-3.4.9999-r1
136 !=app-office/libreoffice-9999-r1
137 || (
138 >=app-office/libreoffice-3.4.4.2-r1
139 >=app-office/libreoffice-bin-3.4.4.2-r1
140 )
141 "
142
143 RESTRICT="strip"
144
145 S="${WORKDIR}"
146
147 src_unpack() {
148 default
149
150 local lang dir rpmdir i
151 local ooextused=()
152
153 for lang in ${LANGUAGES}; do
154 # break away if not enabled; paludis support
155 use_if_iuse linguas_${lang} || continue
156
157 dir=${lang/_/-}
158
159 # for english we provide just helppack, as translation is always there
160 if [[ ${lang} != en ]]; then
161 rpmdir="LibO-Dev_${MY_PV}${RC_VERSION}_Linux_x86_langpack-rpm_${dir}/RPMS/"
162 [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
163 # First remove dictionaries, we want to use system ones.
164 rm -rf "${S}/${rpmdir}/"*dict*.rpm
165 rpm_unpack "./${rpmdir}/"*.rpm
166 fi
167 if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]] && use offlinehelp; then
168 [[ ${lang} == en ]] && dir="en-US"
169 rpmdir="LibO-Dev_${MY_PV}${RC_VERSION}_Linux_x86_helppack-rpm_${dir}/RPMS/"
170 [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
171 rpm_unpack ./"${rpmdir}/"*.rpm
172 fi
173 if use templates; then
174 for i in ${OO_EXTENSIONS[@]}; do
175 lingua=${i/_*.oxt/}
176 lingua=${lingua/*Pack-/}
177 if [[ ${lang} == ${lingua} || ${lingua} == en-US ]]; then
178 if [[ ! -f "${S}/${i}" ]]; then
179 cp -v "${DISTDIR}/${i}" "${S}"
180 ooextused+=( "${i}" )
181 fi
182 fi
183 done
184 fi
185 done
186 OO_EXTENSIONS=()
187 for i in ${ooextused[@]}; do
188 OO_EXTENSIONS+=( ${i} )
189 done
190 }
191
192 src_prepare() { :; }
193 src_configure() { :; }
194 src_compile() { :; }
195
196 src_install() {
197 local dir="${S}"/opt/lodev$(get_version_component_range 1-2 ${MY_PV})/
198 # Condition required for people that do not install anything eg no linguas
199 # or just english with no offlinehelp.
200 if [[ -d "${dir}" ]] ; then
201 insinto /usr/$(get_libdir)/${PN/-l10n/}/
202 doins -r "${dir}"/*
203 fi
204
205 echo "${OO_EXTENSIONS[@]}"
206 office-ext_src_install
207 }
208
209 pkg_postinst() {
210 office-ext_pkg_postinst
211 }
212 pkg_prerm() {
213 office-ext_pkg_prerm
214 }
215
216
217
218 1.1 app-office/libreoffice-l10n/libreoffice-l10n-3.4.5-r1.ebuild
219
220 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.4.5-r1.ebuild?rev=1.1&view=markup
221 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.4.5-r1.ebuild?rev=1.1&content-type=text/plain
222
223 Index: libreoffice-l10n-3.4.5-r1.ebuild
224 ===================================================================
225 # Copyright 1999-2012 Gentoo Foundation
226 # Distributed under the terms of the GNU General Public License v2
227 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.4.5-r1.ebuild,v 1.1 2012/01/11 12:06:26 scarabeus Exp $
228
229 EAPI=4
230
231 MY_PV="3.4.5rc2"
232
233 RC_VERSION="rc2" # CHECK ME WITH EVERY BUMP!
234 BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/testing/3.4.5-rc2/rpm/"
235
236 OO_EXTENSIONS=(
237 "472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt"
238 "53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt"
239 "4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt"
240 "a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt"
241 "09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt"
242 "b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt"
243 )
244 inherit rpm eutils versionator office-ext
245
246 DESCRIPTION="Translations for the Libreoffice suite."
247 HOMEPAGE="http://www.libreoffice.org"
248
249 LICENSE="LGPL-3"
250 SLOT="0"
251 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
252 IUSE="offlinehelp templates"
253
254 LANGUAGES_HELP="bg bn bo bs ca_XV ca cs da de dz el en_GB en en_ZA eo es et eu
255 fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt_BR pt ru si
256 sk sl sq sv tg tr ug uk vi zh_CN zh_TW"
257 LANGUAGES="${LANGUAGES_HELP} af ar as ast be br brx cy dgo fa ga gd kk kn kok ks
258 ku lo lt lv mai ml mn mni mr my nr nso oc or pa_IN ro rw sa_IN sat sd sh sr ss
259 st sw_TZ ta te th tn ts uz ve xh zu"
260
261 for lang in ${LANGUAGES}; do
262 helppack=""
263 langpack=""
264 if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]]; then
265 [[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
266 helppack=" offlinehelp? ( ${BASE_SRC_URI}/x86/LibO_${MY_PV}_Linux_x86_helppack-rpm_${lang2/_/-}.tar.gz ) "
267 fi
268 [[ ${lang} == en ]] \
269 || langpack=" ${BASE_SRC_URI}/x86/LibO_${MY_PV}_Linux_x86_langpack-rpm_${lang/_/-}.tar.gz "
270 SRC_URI+=" linguas_${lang}? (
271 ${langpack}
272 ${helppack}
273 )"
274 IUSE+=" linguas_${lang}"
275 done
276 unset lang helppack langpack lang2
277
278 # dictionaries
279 SPELL_DICTS="af bg ca cs cy da de el en eo es et fr ga gl he hr hu it ku lt mk
280 nb nl nn pl pt ru sk sl sv tn zu"
281 for X in ${SPELL_DICTS} ; do
282 SPELL_DICTS_DEPEND+=" linguas_${X}? ( app-dicts/myspell-${X} )"
283 done
284 RDEPEND="${SPELL_DICTS_DEPEND}"
285 unset X SPELL_DICTS SPELL_DICTS_DEPEND
286
287 # no need for iuse here as this needs to be written out and is subset
288 # of lignuas anyway
289 EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
290 TDEPEND=""
291 for i in ${OO_EXTENSIONS[@]}; do
292 lingua=${i/_*.oxt/}
293 lingua=${lingua/*Pack-/}
294 if [[ ${lingua} == en-US ]]; then
295 TDEPEND+=" ${EXT_URI}/${i}"
296 else
297 TDEPEND+=" linguas_${lingua}? ( ${EXT_URI}/${i} )"
298 fi
299 done
300 SRC_URI+=" templates? ( ${TDEPEND} )"
301 unset i lingua TDEPEND EXT_URI
302
303 # blockers for old libreoffice with bundled linguas
304 RDEPEND+="
305 !=app-office/libreoffice-3.4.9999-r1
306 !=app-office/libreoffice-9999-r1
307 || (
308 >=app-office/libreoffice-3.4.4.2-r1
309 >=app-office/libreoffice-bin-3.4.4.2-r1
310 )
311 "
312
313 RESTRICT="strip"
314
315 S="${WORKDIR}"
316
317 src_unpack() {
318 default
319
320 local lang dir rpmdir i
321 local ooextused=()
322
323 for lang in ${LANGUAGES}; do
324 # break away if not enabled; paludis support
325 use_if_iuse linguas_${lang} || continue
326
327 dir=${lang/_/-}
328
329 # for english we provide just helppack, as translation is always there
330 if [[ ${lang} != en ]]; then
331 rpmdir="LibO_${MY_PV}${RC_VERSION}_Linux_x86_langpack-rpm_${dir}/RPMS/"
332 [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
333 # First remove dictionaries, we want to use system ones.
334 rm -rf "${S}/${rpmdir}/"*dict*.rpm
335 rpm_unpack "./${rpmdir}/"*.rpm
336 fi
337 if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]] && use offlinehelp; then
338 [[ ${lang} == en ]] && dir="en-US"
339 rpmdir="LibO_${MY_PV}${RC_VERSION}_Linux_x86_helppack-rpm_${dir}/RPMS/"
340 [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
341 rpm_unpack ./"${rpmdir}/"*.rpm
342 fi
343 if use templates; then
344 for i in ${OO_EXTENSIONS[@]}; do
345 lingua=${i/_*.oxt/}
346 lingua=${lingua/*Pack-/}
347 if [[ ${lang} == ${lingua} || ${lingua} == en-US ]]; then
348 if [[ ! -f "${S}/${i}" ]]; then
349 cp -v "${DISTDIR}/${i}" "${S}"
350 ooextused+=( "${i}" )
351 fi
352 fi
353 done
354 fi
355 done
356 OO_EXTENSIONS=()
357 for i in ${ooextused[@]}; do
358 OO_EXTENSIONS+=( ${i} )
359 done
360 }
361
362 src_prepare() { :; }
363 src_configure() { :; }
364 src_compile() { :; }
365
366 src_install() {
367 local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2 ${MY_PV})/basis$(get_version_component_range 1-2 ${MY_PV})/
368 # Condition required for people that do not install anything eg no linguas
369 # or just english with no offlinehelp.
370 if [[ -d "${dir}" ]] ; then
371 if [[ ${PV} == 9999 ]]; then
372 # starting with 3.5 this is in common dir
373 insinto /usr/$(get_libdir)/${PN/-l10n/}/
374 else
375 insinto /usr/$(get_libdir)/${PN/-l10n/}/basis$(get_version_component_range 1-2)/
376 fi
377 doins -r "${dir}"/*
378 fi
379
380 echo "${OO_EXTENSIONS[@]}"
381 office-ext_src_install
382 }
383
384 pkg_postinst() {
385 office-ext_pkg_postinst
386 }
387 pkg_prerm() {
388 office-ext_pkg_prerm
389 }