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: libreoffice-l10n-3.5.4.ebuild ChangeLog libreoffice-l10n-3.4.5-r1.ebuild libreoffice-l10n-3.5.3.ebuild
Date: Thu, 31 May 2012 09:41:43
Message-Id: 20120531094133.987E42004B@flycatcher.gentoo.org
1 scarabeus 12/05/31 09:41:33
2
3 Modified: ChangeLog
4 Added: libreoffice-l10n-3.5.4.ebuild
5 Removed: libreoffice-l10n-3.4.5-r1.ebuild
6 libreoffice-l10n-3.5.3.ebuild
7 Log:
8 Version bump to 3.5.4 and drop older.
9
10 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.44 app-office/libreoffice-l10n/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?rev=1.44&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?rev=1.44&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?r1=1.43&r2=1.44
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v
22 retrieving revision 1.43
23 retrieving revision 1.44
24 diff -u -r1.43 -r1.44
25 --- ChangeLog 4 May 2012 10:01:03 -0000 1.43
26 +++ ChangeLog 31 May 2012 09:41:33 -0000 1.44
27 @@ -1,6 +1,13 @@
28 # ChangeLog for app-office/libreoffice-l10n
29 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v 1.43 2012/05/04 10:01:03 scarabeus Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v 1.44 2012/05/31 09:41:33 scarabeus Exp $
32 +
33 +*libreoffice-l10n-3.5.4 (31 May 2012)
34 +
35 + 31 May 2012; Tomáš Chvátal <scarabeus@g.o>
36 + +libreoffice-l10n-3.5.4.ebuild, -libreoffice-l10n-3.4.5-r1.ebuild,
37 + -libreoffice-l10n-3.5.3.ebuild:
38 + Version bump to 3.5.4 and drop older.
39
40 *libreoffice-l10n-3.5.3 (04 May 2012)
41
42
43
44
45 1.1 app-office/libreoffice-l10n/libreoffice-l10n-3.5.4.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.5.4.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.5.4.ebuild?rev=1.1&content-type=text/plain
49
50 Index: libreoffice-l10n-3.5.4.ebuild
51 ===================================================================
52 # Copyright 1999-2012 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.5.4.ebuild,v 1.1 2012/05/31 09:41:33 scarabeus Exp $
55
56 EAPI=4
57
58 MY_PV="3.5.4"
59
60 RC_VERSION="rc2" # CHECK ME WITH EVERY BUMP!
61 BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
62
63 OO_EXTENSIONS=(
64 "472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt"
65 "53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt"
66 "4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt"
67 "a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt"
68 "09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt"
69 "b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt"
70 )
71 inherit rpm eutils versionator office-ext
72
73 DESCRIPTION="Translations for the Libreoffice suite."
74 HOMEPAGE="http://www.libreoffice.org"
75
76 LICENSE="LGPL-3"
77 SLOT="0"
78 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
79 IUSE="offlinehelp templates"
80
81 LANGUAGES_HELP="bg bn bo bs ca_XV ca cs da de dz el en_GB en en_ZA eo es et eu
82 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 ru
83 si sk sl sq sv tg tr ug uk vi zh_CN zh_TW"
84 LANGUAGES="${LANGUAGES_HELP} af ar as ast be br brx cy dgo fa ga gd kk kn kok ks
85 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
86 st sw_TZ ta te th tn ts tt uz ve xh zu"
87
88 for lang in ${LANGUAGES}; do
89 helppack=""
90 langpack=""
91 if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]]; then
92 [[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
93 helppack=" offlinehelp? ( ${BASE_SRC_URI}/x86/LibO_${MY_PV}_Linux_x86_helppack-rpm_${lang2/_/-}.tar.gz ) "
94 fi
95 [[ ${lang} == en ]] \
96 || langpack=" ${BASE_SRC_URI}/x86/LibO_${MY_PV}_Linux_x86_langpack-rpm_${lang/_/-}.tar.gz "
97 SRC_URI+=" linguas_${lang}? (
98 ${langpack}
99 ${helppack}
100 )"
101 IUSE+=" linguas_${lang}"
102 done
103 unset lang helppack langpack lang2
104
105 # dictionaries
106 SPELL_DICTS="af bg ca cs cy da de el en eo es et fr ga gl he hr hu it ku lt mk
107 nb nl nn pl pt ru sk sl sv tn zu"
108 for X in ${SPELL_DICTS} ; do
109 SPELL_DICTS_DEPEND+=" linguas_${X}? ( app-dicts/myspell-${X} )"
110 done
111 RDEPEND="${SPELL_DICTS_DEPEND}"
112 unset X SPELL_DICTS SPELL_DICTS_DEPEND
113
114 # no need for iuse here as this needs to be written out and is subset
115 # of lignuas anyway
116 EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
117 TDEPEND=""
118 for i in ${OO_EXTENSIONS[@]}; do
119 lingua=${i/_*.oxt/}
120 lingua=${lingua/*Pack-/}
121 if [[ ${lingua} == en-US ]]; then
122 TDEPEND+=" ${EXT_URI}/${i}"
123 else
124 TDEPEND+=" linguas_${lingua}? ( ${EXT_URI}/${i} )"
125 fi
126 done
127 SRC_URI+=" templates? ( ${TDEPEND} )"
128 unset i lingua TDEPEND EXT_URI
129
130 # blockers for old libreoffice with bundled linguas
131 RDEPEND+="
132 !=app-office/libreoffice-3.4.9999-r1
133 !=app-office/libreoffice-9999-r1
134 || (
135 >=app-office/libreoffice-3.4.4.2-r1
136 >=app-office/libreoffice-bin-3.4.4.2-r1
137 )
138 "
139
140 RESTRICT="strip"
141
142 S="${WORKDIR}"
143
144 src_unpack() {
145 default
146
147 local lang dir rpmdir i
148 local ooextused=()
149
150 for lang in ${LANGUAGES}; do
151 # break away if not enabled; paludis support
152 use_if_iuse linguas_${lang} || continue
153
154 dir=${lang/_/-}
155
156 # for english we provide just helppack, as translation is always there
157 if [[ ${lang} != en ]]; then
158 rpmdir="LibO_${MY_PV}${RC_VERSION}_Linux_x86_langpack-rpm_${dir}/RPMS/"
159 [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
160 # First remove dictionaries, we want to use system ones.
161 rm -rf "${S}/${rpmdir}/"*dict*.rpm
162 rpm_unpack "./${rpmdir}/"*.rpm
163 fi
164 if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]] && use offlinehelp; then
165 [[ ${lang} == en ]] && dir="en-US"
166 rpmdir="LibO_${MY_PV}${RC_VERSION}_Linux_x86_helppack-rpm_${dir}/RPMS/"
167 [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
168 rpm_unpack ./"${rpmdir}/"*.rpm
169 fi
170 if use templates; then
171 for i in ${OO_EXTENSIONS[@]}; do
172 lingua=${i/_*.oxt/}
173 lingua=${lingua/*Pack-/}
174 if [[ ${lang} == ${lingua} || ${lingua} == en-US ]]; then
175 if [[ ! -f "${S}/${i}" ]]; then
176 cp -v "${DISTDIR}/${i}" "${S}"
177 ooextused+=( "${i}" )
178 fi
179 fi
180 done
181 fi
182 done
183 OO_EXTENSIONS=()
184 for i in ${ooextused[@]}; do
185 OO_EXTENSIONS+=( ${i} )
186 done
187 }
188
189 src_prepare() { :; }
190 src_configure() { :; }
191 src_compile() { :; }
192
193 src_install() {
194 local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2 ${MY_PV})/
195 # Condition required for people that do not install anything eg no linguas
196 # or just english with no offlinehelp.
197 if [[ -d "${dir}" ]] ; then
198 insinto /usr/$(get_libdir)/${PN/-l10n/}/
199 doins -r "${dir}"/*
200 fi
201 # remove extensions that are in the l10n for some weird reason
202 rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/
203
204 echo "${OO_EXTENSIONS[@]}"
205 office-ext_src_install
206 }
207
208 pkg_postinst() {
209 office-ext_pkg_postinst
210 }
211 pkg_prerm() {
212 office-ext_pkg_prerm
213 }