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