Gentoo Archives: gentoo-commits

From: "Andreas Proschofsky (suka)" <suka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/libreoffice-bin: ChangeLog libreoffice-bin-3.3.0.ebuild libreoffice-bin-3.3.0_rc4.ebuild
Date: Tue, 25 Jan 2011 13:39:43
Message-Id: 20110125133931.5A0B520054@flycatcher.gentoo.org
1 suka 11/01/25 13:39:31
2
3 Modified: ChangeLog
4 Added: libreoffice-bin-3.3.0.ebuild
5 Removed: libreoffice-bin-3.3.0_rc4.ebuild
6 Log:
7 Bump to final release, also fix some of the wrapper, desktop-file mess
8
9 (Portage version: 2.1.9.35/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.3 app-office/libreoffice-bin/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?r1=1.2&r2=1.3
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- ChangeLog 24 Jan 2011 20:04:27 -0000 1.2
25 +++ ChangeLog 25 Jan 2011 13:39:30 -0000 1.3
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.2 2011/01/24 20:04:27 suka Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.3 2011/01/25 13:39:30 suka Exp $
31 +
32 +*libreoffice-bin-3.3.0 (25 Jan 2011)
33 +
34 + 25 Jan 2011; Andreas Proschofsky <suka@g.o>
35 + -libreoffice-bin-3.3.0_rc4.ebuild, +libreoffice-bin-3.3.0.ebuild:
36 + Bump to final release, also fix some of the wrapper, desktop-file mess
37
38 24 Jan 2011; Andreas Proschofsky <suka@g.o>
39 libreoffice-bin-3.3.0_rc4.ebuild:
40
41
42
43 1.1 app-office/libreoffice-bin/libreoffice-bin-3.3.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libreoffice-bin-3.3.0.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.3.0.ebuild,v 1.1 2011/01/25 13:39:30 suka Exp $
53
54 EAPI="3"
55
56 inherit eutils fdo-mime gnome2-utils rpm multilib
57
58 IUSE="gnome java kde"
59
60 MY_PV="${PV/_/-}"
61 MY_PV2="${PV}rc4"
62 BVER="3.3.0-6"
63 UREVER="1.7.0-6"
64 BASIS="libobasis3.3"
65 FILEPATH="http://download.documentfoundation.org/libreoffice/stable/${PV}/rpm/"
66
67 if [ "${ARCH}" = "amd64" ] ; then
68 LOARCH="x86_64"
69 LOARCH2="x86-64"
70 else
71 LOARCH="i586"
72 LOARCH2="x86"
73 fi
74
75 S="${WORKDIR}/en-US/RPMS"
76 UP="LibO_${MY_PV2}_Linux_${LOARCH2}_install-rpm_en-US/RPMS"
77 DESCRIPTION="LibreOffice productivity suite."
78
79 SRC_URI="amd64? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz
80 ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_en-US.tar.gz )
81 x86? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_install-rpm_en-US.tar.gz
82 ${FILEPATH}/x86/LibO_${PV}_Linux_x86_helppack-rpm_en-US.tar.gz )"
83
84 LANGS="af ar as ast be_BY 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 gd gl gu he hi hr hu id is it ja ka kk km kn ko kok ks ku ky lo lt lv mai mk ml mn mni mr ms my nb ne nl nn nr ns oc om or pa_IN pap pl ps 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 ti tn tr ts ug uk uz ve vi xh zh_CN zh_TW zu"
85
86 for X in ${LANGS} ; do
87 [[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
88 amd64? ( "${FILEPATH}"/x86_64/LibO_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz
89 "${FILEPATH}"/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_${X/_/-}.tar.gz )
90 x86? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz
91 "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_helppack-rpm_${X/_/-}.tar.gz ) )"
92 IUSE="${IUSE} linguas_${X}"
93 done
94
95 HOMEPAGE="http://www.documentfoundation.org"
96
97 LICENSE="LGPL-3"
98 SLOT="0"
99 KEYWORDS="~amd64 ~x86"
100
101 RDEPEND="!app-office/libreoffice
102 !app-office/openoffice
103 !app-office/openoffice-bin
104 x11-libs/libXaw
105 sys-libs/glibc
106 >=dev-lang/perl-5.0
107 app-arch/zip
108 app-arch/unzip
109 x11-libs/libXinerama
110 >=media-libs/freetype-2.1.10-r2"
111
112 DEPEND="${RDEPEND}
113 sys-apps/findutils"
114
115 PDEPEND="java? ( >=virtual/jre-1.5 )"
116
117 PROVIDE="virtual/ooo"
118 RESTRICT="strip binchecks"
119
120 QA_EXECSTACK="usr/$(get_libdir)/libreoffice/basis3.3/program/*
121 usr/$(get_libdir)/libreoffice/ure/lib/*"
122 QA_TEXTRELS="usr/$(get_libdir)/libreoffice/ure/lib/*"
123 QA_PRESTRIPPED="usr/$(get_libdir)/libreoffice/basis3.3/program/*
124 usr/$(get_libdir)/libreoffice/basis3.3/program/python-core-2.6.1/lib/lib-dynload/*
125 usr/$(get_libdir)/libreoffice/program/*
126 usr/$(get_libdir)/libreoffice/ure/bin/*
127 usr/$(get_libdir)/libreoffice/ure/lib/*"
128
129 RESTRICT="mirror"
130
131 src_unpack() {
132
133 unpack ${A}
134
135 for i in base binfilter calc core01 core02 core03 core04 core05 core06 \
136 core07 draw graphicfilter images impress math ogltrans ooofonts \
137 ooolinguistic pyuno testtool writer xsltfilter ; do
138 rpm_unpack "./${UP}/${BASIS}-${i}-${BVER}.${LOARCH}.rpm"
139 done
140
141 rpm_unpack "./${UP}/libreoffice3-${BVER}.${LOARCH}.rpm"
142 rpm_unpack "./${UP}/libreoffice3-ure-${UREVER}.${LOARCH}.rpm"
143
144 for j in base calc draw impress math writer; do
145 rpm_unpack "./${UP}/libreoffice3-${j}-${BVER}.${LOARCH}.rpm"
146 done
147
148 rpm_unpack "./${UP}/desktop-integration/libreoffice3.3-freedesktop-menus-3.3-6.noarch.rpm"
149
150 use gnome && rpm_unpack "./${UP}/${BASIS}-gnome-integration-${BVER}.${LOARCH}.rpm"
151 use kde && rpm_unpack "./${UP}/${BASIS}-kde-integration-${BVER}.${LOARCH}.rpm"
152 use java && rpm_unpack "./${UP}/${BASIS}-javafilter-${BVER}.${LOARCH}.rpm"
153
154 # Extensions
155 for k in mediawiki-publisher nlpsolver pdf-import presentation-minimizer presenter-screen report-builder; do
156 rpm_unpack "./${UP}/${BASIS}-extension-${k}-${BVER}.${LOARCH}.rpm"
157 done
158
159 # English support installed by default
160 rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${LOARCH}.rpm"
161 rpm_unpack "./${UP}/libreoffice3-en-US-${BVER}.${LOARCH}.rpm"
162 rpm_unpack "./LibO_${MY_PV2}_Linux_${LOARCH2}_helppack-rpm_en-US/RPMS//${BASIS}-en-US-help-${BVER}.${LOARCH}.rpm"
163 for s in base binfilter calc math res writer ; do
164 rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${LOARCH}.rpm"
165 done
166
167 # Lang files
168 # TODO: Install dictionaries
169 for l in ${LINGUAS}; do
170 m="${l/_/-}"
171 if [[ ${m} != "en" ]] ; then
172 LANGDIR="LibO_${MY_PV2}_Linux_${LOARCH2}_langpack-rpm_${m}/RPMS/"
173 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${LOARCH}.rpm"
174 rpm_unpack "./${LANGDIR}/libreoffice3-${m}-${BVER}.${LOARCH}.rpm"
175 for n in base binfilter calc math res writer; do
176 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${n}-${BVER}.${LOARCH}.rpm"
177 done
178 # Help files
179 LANGDIR2="LibO_${MY_PV2}_Linux_${LOARCH2}_helppack-rpm_${m}/RPMS/"
180 rpm_unpack "./${LANGDIR2}/${BASIS}-${m}-help-${BVER}.${LOARCH}.rpm"
181 fi
182 done
183 }
184
185 src_install () {
186
187 INSTDIR="/usr/$(get_libdir)/libreoffice"
188
189 einfo "Installing OpenOffice.org into build root..."
190 dodir ${INSTDIR}
191 mv "${WORKDIR}"/opt/libreoffice/* "${ED}${INSTDIR}" || die
192
193 #Menu entries, icons and mime-types
194 cd "${ED}${INSTDIR}/share/xdg/"
195
196 for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do
197 if [ "${desk}" = "javafilter" ] ; then
198 use java || { rm javafilter.desktop; continue; }
199 fi
200 mv ${desk}.desktop libreoffice-${desk}.desktop
201 domenu libreoffice-${desk}.desktop
202 done
203 insinto /usr/share
204 doins -r "${WORKDIR}"/usr/share/icons
205 doins -r "${WORKDIR}"/usr/share/mime
206
207 # Install wrapper script
208 newbin "${FILESDIR}/wrapper.in" libreoffice
209 sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/libreoffice" || die
210
211 # Component symlinks
212 # Disabled, trouble with parallel installing openoffice
213 for app in base calc draw impress math writer; do
214 dosym ${INSTDIR}/program/s${app} /usr/bin/lo${app}
215 done
216
217 dosym ${INSTDIR}/program/spadmin /usr/bin/libreoffice-printeradmin
218 dosym ${INSTDIR}/program/soffice /usr/bin/soffice
219
220 rm -f "${ED}${INSTDIR}/basis-link" || die
221 dosym ${INSTDIR}/basis3.3 ${INSTDIR}/basis-link
222
223 # Non-java weirdness see bug #99366
224 use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx"
225
226 # prevent revdep-rebuild from attempting to rebuild all the time
227 insinto /etc/revdep-rebuild && doins "${FILESDIR}/50-libreoffice-bin"
228
229 }
230
231 pkg_preinst() {
232 use gnome && gnome2_icon_savelist
233 }
234
235 pkg_postinst() {
236
237 fdo-mime_desktop_database_update
238 fdo-mime_mime_database_update
239 use gnome && gnome2_icon_cache_update
240
241 [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/libreoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/libreoffice/program/soffice.bin
242
243 elog " libreoffice-bin does not provide integration with system spell "
244 elog " dictionaries. Please install them manually through the Extensions "
245 elog " Manager (Tools > Extensions Manager) or use the source based "
246 elog " package instead. "
247 elog
248
249 }
250
251 pkg_postrm() {
252 fdo-mime_desktop_database_update
253 use gnome && gnome2_icon_cache_update
254 }