1 |
scarabeus 11/09/02 10:53:52 |
2 |
|
3 |
Modified: libreoffice-bin-3.3.4.ebuild ChangeLog |
4 |
Added: libreoffice-bin-3.4.3-r1.ebuild |
5 |
Removed: libreoffice-bin-3.4.3.ebuild |
6 |
Log: |
7 |
Add symlink to unopkg to bin. Fixes bug #381009. |
8 |
|
9 |
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.3 app-office/libreoffice-bin/libreoffice-bin-3.3.4.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.4.ebuild?rev=1.3&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.4.ebuild?rev=1.3&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.4.ebuild?r1=1.2&r2=1.3 |
17 |
|
18 |
Index: libreoffice-bin-3.3.4.ebuild |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.4.ebuild,v |
21 |
retrieving revision 1.2 |
22 |
retrieving revision 1.3 |
23 |
diff -u -r1.2 -r1.3 |
24 |
--- libreoffice-bin-3.3.4.ebuild 18 Aug 2011 09:06:30 -0000 1.2 |
25 |
+++ libreoffice-bin-3.3.4.ebuild 2 Sep 2011 10:53:52 -0000 1.3 |
26 |
@@ -1,6 +1,6 @@ |
27 |
# Copyright 1999-2011 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.4.ebuild,v 1.2 2011/08/18 09:06:30 patrick Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.4.ebuild,v 1.3 2011/09/02 10:53:52 scarabeus Exp $ |
31 |
|
32 |
EAPI="3" |
33 |
|
34 |
@@ -184,6 +184,9 @@ |
35 |
# Non-java weirdness see bug #99366 |
36 |
use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx" |
37 |
|
38 |
+ # install the unopkg binary |
39 |
+ dosym ${INSTDIR}/program/unopkg /usr/bin/unopkg |
40 |
+ |
41 |
# prevent revdep-rebuild from attempting to rebuild all the time |
42 |
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}" |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
1.32 app-office/libreoffice-bin/ChangeLog |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.32&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.32&content-type=text/plain |
51 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?r1=1.31&r2=1.32 |
52 |
|
53 |
Index: ChangeLog |
54 |
=================================================================== |
55 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v |
56 |
retrieving revision 1.31 |
57 |
retrieving revision 1.32 |
58 |
diff -u -r1.31 -r1.32 |
59 |
--- ChangeLog 1 Sep 2011 19:17:06 -0000 1.31 |
60 |
+++ ChangeLog 2 Sep 2011 10:53:52 -0000 1.32 |
61 |
@@ -1,6 +1,13 @@ |
62 |
# ChangeLog for app-office/libreoffice-bin |
63 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
64 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.31 2011/09/01 19:17:06 jlec Exp $ |
65 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.32 2011/09/02 10:53:52 scarabeus Exp $ |
66 |
+ |
67 |
+*libreoffice-bin-3.4.3-r1 (02 Sep 2011) |
68 |
+ |
69 |
+ 02 Sep 2011; Tomáš Chvátal <scarabeus@g.o> |
70 |
+ libreoffice-bin-3.3.4.ebuild, -libreoffice-bin-3.4.3.ebuild, |
71 |
+ +libreoffice-bin-3.4.3-r1.ebuild: |
72 |
+ Add symlink to unopkg to bin. Fixes bug #381009. |
73 |
|
74 |
01 Sep 2011; Justin Lecher <jlec@g.o> libreoffice-bin-3.4.3.ebuild, |
75 |
metadata.xml: |
76 |
|
77 |
|
78 |
|
79 |
1.1 app-office/libreoffice-bin/libreoffice-bin-3.4.3-r1.ebuild |
80 |
|
81 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.3-r1.ebuild?rev=1.1&view=markup |
82 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.3-r1.ebuild?rev=1.1&content-type=text/plain |
83 |
|
84 |
Index: libreoffice-bin-3.4.3-r1.ebuild |
85 |
=================================================================== |
86 |
# Copyright 1999-2011 Gentoo Foundation |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.3-r1.ebuild,v 1.1 2011/09/02 10:53:52 scarabeus Exp $ |
89 |
|
90 |
EAPI="3" |
91 |
|
92 |
inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib |
93 |
|
94 |
IUSE="gnome java offlinehelp" |
95 |
|
96 |
MY_PV="${PV/_/-}" |
97 |
MY_PV2="${PV}rc2" |
98 |
BVER="3.4.3-302" |
99 |
BVER2="3.4-302" |
100 |
BASIS="libobasis3.4" |
101 |
BASIS2="basis3.4" |
102 |
NM="libreoffice" |
103 |
NM1="${NM}" |
104 |
NM2="${NM1}3.4" |
105 |
FILEPATH="http://download.documentfoundation.org/${NM}/stable/${PV}/rpm/" |
106 |
if [ "${ARCH}" = "amd64" ] ; then |
107 |
XARCH="x86_64" |
108 |
PACKED="LibO_${MY_PV2}_Linux_x86-64" |
109 |
else |
110 |
XARCH="i586" |
111 |
PACKED="LibO_${MY_PV2}_Linux_x86" |
112 |
fi |
113 |
UP="${PACKED}_install-rpm_en-US/RPMS" |
114 |
|
115 |
DESCRIPTION="LibreOffice productivity suite." |
116 |
HOMEPAGE="http://www.libreoffice.org" |
117 |
SRC_URI="amd64? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz |
118 |
offlinehelp? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_en-US.tar.gz ) ) |
119 |
x86? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_install-rpm_en-US.tar.gz |
120 |
offlinehelp? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_helppack-rpm_en-US.tar.gz ) )" |
121 |
|
122 |
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" |
123 |
|
124 |
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 om pl pt pt_BR ru si sk sl sq sv tg tr ug uk vi zh_CN zh_TW" |
125 |
|
126 |
for X in ${LANGS} ; do |
127 |
[[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? ( |
128 |
amd64? ( "${FILEPATH}"/x86_64/LibO_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz ) |
129 |
x86? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz ) )" |
130 |
IUSE="${IUSE} linguas_${X}" |
131 |
done |
132 |
|
133 |
for Y in ${LANGS2} ; do |
134 |
[[ ${Y} != "en" ]] && SRC_URI="${SRC_URI} linguas_${Y}? ( |
135 |
amd64? ( offlinehelp? ( "${FILEPATH}"/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_${Y/_/-}.tar.gz ) ) |
136 |
x86? ( offlinehelp? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_helppack-rpm_${Y/_/-}.tar.gz ) ) )" |
137 |
done |
138 |
|
139 |
LICENSE="LGPL-3" |
140 |
SLOT="0" |
141 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
142 |
|
143 |
RDEPEND="!app-office/libreoffice |
144 |
!app-office/openoffice |
145 |
!app-office/openoffice-bin |
146 |
!prefix? ( sys-libs/glibc ) |
147 |
app-arch/unzip |
148 |
app-arch/zip |
149 |
>=dev-lang/perl-5.0 |
150 |
>=media-libs/freetype-2.1.10-r2 |
151 |
x11-libs/libXaw |
152 |
x11-libs/libXinerama" |
153 |
|
154 |
DEPEND="${RDEPEND} |
155 |
sys-apps/findutils" |
156 |
|
157 |
PDEPEND="java? ( >=virtual/jre-1.5 )" |
158 |
|
159 |
RESTRICT="strip" |
160 |
|
161 |
QA_EXECSTACK="usr/$(get_libdir)/${NM}/${BASIS2}/program/* |
162 |
usr/$(get_libdir)/${NM}/ure/lib/*" |
163 |
QA_TEXTRELS="usr/$(get_libdir)/${NM}/ure/lib/*" |
164 |
QA_PRESTRIPPED="usr/$(get_libdir)/${NM}/${BASIS2}/program/* |
165 |
usr/$(get_libdir)/${NM}/${BASIS2}/program/python-core-2.6.1/lib/lib-dynload/* |
166 |
usr/$(get_libdir)/${NM}/program/* |
167 |
usr/$(get_libdir)/${NM}/ure/bin/* |
168 |
usr/$(get_libdir)/${NM}/ure/lib/*" |
169 |
|
170 |
src_unpack() { |
171 |
|
172 |
unpack ${A} |
173 |
|
174 |
cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}" |
175 |
eprefixify "${T}"/{50-${PN},wrapper.in} |
176 |
|
177 |
for i in base binfilter calc core01 core02 core03 core04 core05 core06 \ |
178 |
core07 draw graphicfilter images impress math ogltrans ooofonts \ |
179 |
ooolinguistic pyuno testtool writer xsltfilter ; do |
180 |
rpm_unpack "./${UP}/${BASIS}-${i}-${BVER}.${XARCH}.rpm" |
181 |
done |
182 |
|
183 |
rpm_unpack "./${UP}/${NM2}-${BVER}.${XARCH}.rpm" |
184 |
rpm_unpack "./${UP}/${NM2}-ure-${BVER}.${XARCH}.rpm" |
185 |
|
186 |
for j in base calc draw impress math writer; do |
187 |
rpm_unpack "./${UP}/${NM2}-${j}-${BVER}.${XARCH}.rpm" |
188 |
done |
189 |
|
190 |
rpm_unpack "./${UP}/desktop-integration/${NM2}-freedesktop-menus-${BVER2}.noarch.rpm" |
191 |
|
192 |
use gnome && rpm_unpack "./${UP}/${BASIS}-gnome-integration-${BVER}.${XARCH}.rpm" |
193 |
use java && rpm_unpack "./${UP}/${BASIS}-javafilter-${BVER}.${XARCH}.rpm" |
194 |
|
195 |
# Extensions |
196 |
for k in beanshell-script-provider javascript-script-provider mediawiki-publisher nlpsolver pdf-import presentation-minimizer presenter-screen python-script-provider report-builder; do |
197 |
rpm_unpack "./${UP}/${BASIS}-extension-${k}-${BVER}.${XARCH}.rpm" |
198 |
done |
199 |
|
200 |
# English support installed by default |
201 |
rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${XARCH}.rpm" |
202 |
rpm_unpack "./${UP}/${NM2}-en-US-${BVER}.${XARCH}.rpm" |
203 |
rpm_unpack "./${UP}/${NM2}-dict-en-${BVER}.${XARCH}.rpm" |
204 |
use offlinehelp && rpm_unpack "./${PACKED}_helppack-rpm_en-US/RPMS//${BASIS}-en-US-help-${BVER}.${XARCH}.rpm" |
205 |
for s in base binfilter calc math res writer ; do |
206 |
rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${XARCH}.rpm" |
207 |
done |
208 |
|
209 |
# Localization |
210 |
strip-linguas ${LANGS} |
211 |
for l in ${LINGUAS}; do |
212 |
m="${l/_/-}" |
213 |
if [[ ${m} != "en" ]] ; then |
214 |
LANGDIR="${PACKED}_langpack-rpm_${m}/RPMS/" |
215 |
rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${XARCH}.rpm" |
216 |
rpm_unpack "./${LANGDIR}/${NM2}-${m}-${BVER}.${XARCH}.rpm" |
217 |
for n in base binfilter calc math res writer; do |
218 |
rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${n}-${BVER}.${XARCH}.rpm" |
219 |
done |
220 |
|
221 |
for DICT_FILE in `find "./${LANGDIR}" -name "${NM2}-dict-*-${BVER}.${XARCH}.rpm"`; do |
222 |
DICT_REGEX="s/${NM2}-dict-(.*?)-${BVER}.${XARCH}.rpm/\1/" |
223 |
DICT_LOCALE=`basename "$DICT_FILE" | sed -E "${DICT_REGEX}"` |
224 |
if [[ -n "${DICT_LOCALE}" && ! -d "${WORKDIR}/opt/${NM1}/share/extensions/dict-${DICT_LOCALE}" ]] ; then |
225 |
rpm_unpack "${DICT_FILE}" |
226 |
fi |
227 |
done |
228 |
|
229 |
# Help files |
230 |
if use offlinehelp; then |
231 |
LANGDIR2="${PACKED}_helppack-rpm_${m}/RPMS/" |
232 |
rpm_unpack "./${LANGDIR2}/${BASIS}-${m}-help-${BVER}.${XARCH}.rpm" |
233 |
fi |
234 |
fi |
235 |
done |
236 |
|
237 |
} |
238 |
|
239 |
src_install () { |
240 |
|
241 |
INSTDIR="/usr/$(get_libdir)/${NM}" |
242 |
dodir ${INSTDIR} |
243 |
mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die |
244 |
|
245 |
#Menu entries, icons and mime-types |
246 |
cd "${ED}${INSTDIR}/share/xdg/" |
247 |
for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do |
248 |
if [ "${desk}" = "javafilter" ] ; then |
249 |
use java || { rm -f javafilter.desktop; continue; } |
250 |
fi |
251 |
mv ${desk}.desktop ${NM1}-${desk}.desktop |
252 |
sed -i -e s/${NM2}/${NM}/g ${NM1}-${desk}.desktop || die |
253 |
domenu ${NM1}-${desk}.desktop |
254 |
done |
255 |
insinto /usr/share |
256 |
doins -r "${WORKDIR}"/usr/share/icons |
257 |
doins -r "${WORKDIR}"/usr/share/mime |
258 |
|
259 |
# Install wrapper script |
260 |
newbin "${T}/wrapper.in" ${NM1} |
261 |
sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/${NM1}" || die |
262 |
|
263 |
dosym ${INSTDIR}/program/spadmin /usr/bin/${NM1}-printeradmin |
264 |
|
265 |
rm -f "${ED}${INSTDIR}/basis-link" || die |
266 |
dosym ${INSTDIR}/${BASIS2} ${INSTDIR}/basis-link |
267 |
|
268 |
# Non-java weirdness see bug #99366 |
269 |
use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx" |
270 |
|
271 |
# install the unopkg binary |
272 |
dosym ${INSTDIR}/program/unopkg /usr/bin/unopkg |
273 |
|
274 |
# prevent revdep-rebuild from attempting to rebuild all the time |
275 |
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}" |
276 |
|
277 |
} |
278 |
|
279 |
pkg_preinst() { |
280 |
|
281 |
use gnome && gnome2_icon_savelist |
282 |
|
283 |
} |
284 |
|
285 |
pkg_postinst() { |
286 |
|
287 |
fdo-mime_desktop_database_update |
288 |
fdo-mime_mime_database_update |
289 |
use gnome && gnome2_icon_cache_update |
290 |
|
291 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin |
292 |
|
293 |
} |
294 |
|
295 |
pkg_postrm() { |
296 |
|
297 |
fdo-mime_desktop_database_update |
298 |
use gnome && gnome2_icon_cache_update |
299 |
|
300 |
} |