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