1 |
suka 11/08/02 11:30:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libreoffice-bin-3.4.2.ebuild |
5 |
Removed: libreoffice-bin-3.4.1.ebuild |
6 |
Log: |
7 |
Bump to LibreOffice 3.4.2 |
8 |
|
9 |
(Portage version: 2.2.0_alpha49/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.27 app-office/libreoffice-bin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.27&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.27&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?r1=1.26&r2=1.27 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v |
21 |
retrieving revision 1.26 |
22 |
retrieving revision 1.27 |
23 |
diff -u -r1.26 -r1.27 |
24 |
--- ChangeLog 6 Jul 2011 08:40:13 -0000 1.26 |
25 |
+++ ChangeLog 2 Aug 2011 11:30:34 -0000 1.27 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for app-office/libreoffice-bin |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.26 2011/07/06 08:40:13 suka Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.27 2011/08/02 11:30:34 suka Exp $ |
31 |
+ |
32 |
+*libreoffice-bin-3.4.2 (02 Aug 2011) |
33 |
+ |
34 |
+ 02 Aug 2011; Andreas Proschofsky <suka@g.o> |
35 |
+ -libreoffice-bin-3.4.1.ebuild, +libreoffice-bin-3.4.2.ebuild: |
36 |
+ Bump to LibreOffice 3.4.2 |
37 |
|
38 |
*libreoffice-bin-3.4.1 (06 Jul 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 app-office/libreoffice-bin/libreoffice-bin-3.4.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: libreoffice-bin-3.4.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.2.ebuild,v 1.1 2011/08/02 11:30:34 suka Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
|
56 |
inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib |
57 |
|
58 |
IUSE="gnome java offlinehelp" |
59 |
|
60 |
MY_PV="${PV/_/-}" |
61 |
MY_PV2="${PV}rc3" |
62 |
BVER="3.4.2-203" |
63 |
BVER2="3.4-203" |
64 |
BASIS="libobasis3.4" |
65 |
BASIS2="basis3.4" |
66 |
NM="libreoffice" |
67 |
NM1="${NM}" |
68 |
NM2="${NM1}3.4" |
69 |
FILEPATH="http://download.documentfoundation.org/${NM}/stable/${PV}/rpm/" |
70 |
if [ "${ARCH}" = "amd64" ] ; then |
71 |
XARCH="x86_64" |
72 |
PACKED="LibO_${MY_PV2}_Linux_x86-64" |
73 |
else |
74 |
XARCH="i586" |
75 |
PACKED="LibO_${MY_PV2}_Linux_x86" |
76 |
fi |
77 |
UP="${PACKED}_install-rpm_en-US/RPMS" |
78 |
|
79 |
DESCRIPTION="LibreOffice productivity suite." |
80 |
HOMEPAGE="http://www.libreoffice.org" |
81 |
SRC_URI="amd64? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz |
82 |
offlinehelp? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_en-US.tar.gz ) ) |
83 |
x86? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_install-rpm_en-US.tar.gz |
84 |
offlinehelp? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_helppack-rpm_en-US.tar.gz ) )" |
85 |
|
86 |
LANGS="af ar as ast be bg bn bo br brx bs ca ca_XV cs cy da de dgo dz el en en_GB en_ZA eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko kok ks ku lo lt lv mai mk ml mn mni mr my nb ne nl nn nr nso oc om or pa_IN pl pt pt_BR ro ru rw sa_IN sat sd sh si sk sl sq sr ss st sv sw_TZ ta te tg th tn tr ts ug uk uz ve vi xh zh_CN zh_TW zu" |
87 |
|
88 |
LANGS2="bg bn bo bs ca ca_XV cs da de dz el en en_GB en_ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn nso om pl pt pt_BR ru si sk sl sq sv tg tr ug uk vi zh_CN zh_TW" |
89 |
|
90 |
for X in ${LANGS} ; do |
91 |
[[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? ( |
92 |
amd64? ( "${FILEPATH}"/x86_64/LibO_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz ) |
93 |
x86? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz ) )" |
94 |
IUSE="${IUSE} linguas_${X}" |
95 |
done |
96 |
|
97 |
for Y in ${LANGS2} ; do |
98 |
[[ ${Y} != "en" ]] && SRC_URI="${SRC_URI} linguas_${Y}? ( |
99 |
amd64? ( offlinehelp? ( "${FILEPATH}"/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_${Y/_/-}.tar.gz ) ) |
100 |
x86? ( offlinehelp? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_helppack-rpm_${Y/_/-}.tar.gz ) ) )" |
101 |
done |
102 |
|
103 |
LICENSE="LGPL-3" |
104 |
SLOT="0" |
105 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
106 |
|
107 |
RDEPEND="!app-office/libreoffice |
108 |
!app-office/openoffice |
109 |
!app-office/openoffice-bin |
110 |
!prefix? ( sys-libs/glibc ) |
111 |
app-arch/unzip |
112 |
app-arch/zip |
113 |
>=dev-lang/perl-5.0 |
114 |
>=media-libs/freetype-2.1.10-r2 |
115 |
x11-libs/libXaw |
116 |
x11-libs/libXinerama" |
117 |
|
118 |
DEPEND="${RDEPEND} |
119 |
sys-apps/findutils" |
120 |
|
121 |
PDEPEND="java? ( >=virtual/jre-1.5 )" |
122 |
|
123 |
RESTRICT="strip" |
124 |
|
125 |
QA_EXECSTACK="usr/$(get_libdir)/${NM}/${BASIS2}/program/* |
126 |
usr/$(get_libdir)/${NM}/ure/lib/*" |
127 |
QA_TEXTRELS="usr/$(get_libdir)/${NM}/ure/lib/*" |
128 |
QA_PRESTRIPPED="usr/$(get_libdir)/${NM}/${BASIS2}/program/* |
129 |
usr/$(get_libdir)/${NM}/${BASIS2}/program/python-core-2.6.1/lib/lib-dynload/* |
130 |
usr/$(get_libdir)/${NM}/program/* |
131 |
usr/$(get_libdir)/${NM}/ure/bin/* |
132 |
usr/$(get_libdir)/${NM}/ure/lib/*" |
133 |
|
134 |
src_unpack() { |
135 |
|
136 |
unpack ${A} |
137 |
|
138 |
cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}" |
139 |
eprefixify "${T}"/{50-${PN},wrapper.in} |
140 |
|
141 |
for i in base binfilter calc core01 core02 core03 core04 core05 core06 \ |
142 |
core07 draw graphicfilter images impress math ogltrans ooofonts \ |
143 |
ooolinguistic pyuno testtool writer xsltfilter ; do |
144 |
rpm_unpack "./${UP}/${BASIS}-${i}-${BVER}.${XARCH}.rpm" |
145 |
done |
146 |
|
147 |
rpm_unpack "./${UP}/${NM2}-${BVER}.${XARCH}.rpm" |
148 |
rpm_unpack "./${UP}/${NM2}-ure-${BVER}.${XARCH}.rpm" |
149 |
|
150 |
for j in base calc draw impress math writer; do |
151 |
rpm_unpack "./${UP}/${NM2}-${j}-${BVER}.${XARCH}.rpm" |
152 |
done |
153 |
|
154 |
rpm_unpack "./${UP}/desktop-integration/${NM2}-freedesktop-menus-${BVER2}.noarch.rpm" |
155 |
|
156 |
use gnome && rpm_unpack "./${UP}/${BASIS}-gnome-integration-${BVER}.${XARCH}.rpm" |
157 |
use java && rpm_unpack "./${UP}/${BASIS}-javafilter-${BVER}.${XARCH}.rpm" |
158 |
|
159 |
# Extensions |
160 |
for k in beanshell-script-provider javascript-script-provider mediawiki-publisher nlpsolver pdf-import presentation-minimizer presenter-screen python-script-provider report-builder; do |
161 |
rpm_unpack "./${UP}/${BASIS}-extension-${k}-${BVER}.${XARCH}.rpm" |
162 |
done |
163 |
|
164 |
# English support installed by default |
165 |
rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${XARCH}.rpm" |
166 |
rpm_unpack "./${UP}/${NM2}-en-US-${BVER}.${XARCH}.rpm" |
167 |
rpm_unpack "./${UP}/${NM2}-dict-en-${BVER}.${XARCH}.rpm" |
168 |
use offlinehelp && rpm_unpack "./${PACKED}_helppack-rpm_en-US/RPMS//${BASIS}-en-US-help-${BVER}.${XARCH}.rpm" |
169 |
for s in base binfilter calc math res writer ; do |
170 |
rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${XARCH}.rpm" |
171 |
done |
172 |
|
173 |
# Localization |
174 |
strip-linguas ${LANGS} |
175 |
for l in ${LINGUAS}; do |
176 |
m="${l/_/-}" |
177 |
if [[ ${m} != "en" ]] ; then |
178 |
LANGDIR="${PACKED}_langpack-rpm_${m}/RPMS/" |
179 |
rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${XARCH}.rpm" |
180 |
rpm_unpack "./${LANGDIR}/${NM2}-${m}-${BVER}.${XARCH}.rpm" |
181 |
for n in base binfilter calc math res writer; do |
182 |
rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${n}-${BVER}.${XARCH}.rpm" |
183 |
done |
184 |
|
185 |
for DICT_FILE in `find "./${LANGDIR}" -name "${NM2}-dict-*-${BVER}.${XARCH}.rpm"`; do |
186 |
DICT_REGEX="s/${NM2}-dict-(.*?)-${BVER}.${XARCH}.rpm/\1/" |
187 |
DICT_LOCALE=`basename "$DICT_FILE" | sed -E "${DICT_REGEX}"` |
188 |
if [[ -n "${DICT_LOCALE}" && ! -d "${WORKDIR}/opt/${NM1}/share/extensions/dict-${DICT_LOCALE}" ]] ; then |
189 |
rpm_unpack "${DICT_FILE}" |
190 |
fi |
191 |
done |
192 |
|
193 |
# Help files |
194 |
if use offlinehelp; then |
195 |
LANGDIR2="${PACKED}_helppack-rpm_${m}/RPMS/" |
196 |
rpm_unpack "./${LANGDIR2}/${BASIS}-${m}-help-${BVER}.${XARCH}.rpm" |
197 |
fi |
198 |
fi |
199 |
done |
200 |
|
201 |
} |
202 |
|
203 |
src_install () { |
204 |
|
205 |
INSTDIR="/usr/$(get_libdir)/${NM}" |
206 |
dodir ${INSTDIR} |
207 |
mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die |
208 |
|
209 |
#Menu entries, icons and mime-types |
210 |
cd "${ED}${INSTDIR}/share/xdg/" |
211 |
for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do |
212 |
if [ "${desk}" = "javafilter" ] ; then |
213 |
use java || { rm javafilter.desktop; continue; } |
214 |
fi |
215 |
mv ${desk}.desktop ${NM1}-${desk}.desktop |
216 |
sed -i -e s/${NM2}/${NM}/g ${NM1}-${desk}.desktop || die |
217 |
domenu ${NM1}-${desk}.desktop |
218 |
done |
219 |
insinto /usr/share |
220 |
doins -r "${WORKDIR}"/usr/share/icons |
221 |
doins -r "${WORKDIR}"/usr/share/mime |
222 |
|
223 |
# Install wrapper script |
224 |
newbin "${T}/wrapper.in" ${NM1} |
225 |
sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/${NM1}" || die |
226 |
|
227 |
dosym ${INSTDIR}/program/spadmin /usr/bin/${NM1}-printeradmin |
228 |
|
229 |
rm -f "${ED}${INSTDIR}/basis-link" || die |
230 |
dosym ${INSTDIR}/${BASIS2} ${INSTDIR}/basis-link |
231 |
|
232 |
# Non-java weirdness see bug #99366 |
233 |
use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx" |
234 |
|
235 |
# prevent revdep-rebuild from attempting to rebuild all the time |
236 |
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}" |
237 |
|
238 |
} |
239 |
|
240 |
pkg_preinst() { |
241 |
|
242 |
use gnome && gnome2_icon_savelist |
243 |
|
244 |
} |
245 |
|
246 |
pkg_postinst() { |
247 |
|
248 |
fdo-mime_desktop_database_update |
249 |
fdo-mime_mime_database_update |
250 |
use gnome && gnome2_icon_cache_update |
251 |
|
252 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin |
253 |
|
254 |
} |
255 |
|
256 |
pkg_postrm() { |
257 |
|
258 |
fdo-mime_desktop_database_update |
259 |
use gnome && gnome2_icon_cache_update |
260 |
|
261 |
} |