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