Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/libreoffice-bin: ChangeLog libreoffice-bin-4.2.5.2.ebuild
Date: Sat, 28 Jun 2014 12:38:52
Message-Id: 20140628123848.5B7772004E@flycatcher.gentoo.org
1 dilfridge 14/06/28 12:38:48
2
3 Modified: ChangeLog
4 Added: libreoffice-bin-4.2.5.2.ebuild
5 Log:
6 Version bump for bug 514886
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EBE6A336BE19039C!)
9
10 Revision Changes Path
11 1.141 app-office/libreoffice-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.141&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.141&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?r1=1.140&r2=1.141
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v
20 retrieving revision 1.140
21 retrieving revision 1.141
22 diff -u -r1.140 -r1.141
23 --- ChangeLog 7 Jun 2014 14:10:39 -0000 1.140
24 +++ ChangeLog 28 Jun 2014 12:38:48 -0000 1.141
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-office/libreoffice-bin
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.140 2014/06/07 14:10:39 dilfridge Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.141 2014/06/28 12:38:48 dilfridge Exp $
30 +
31 +*libreoffice-bin-4.2.5.2 (28 Jun 2014)
32 +
33 + 28 Jun 2014; Andreas K. Huettel <dilfridge@g.o>
34 + +libreoffice-bin-4.2.5.2.ebuild:
35 + Version bump for bug 514886
36
37 07 Jun 2014; Andreas K. Huettel <dilfridge@g.o>
38 libreoffice-bin-4.1.4.2.ebuild, libreoffice-bin-4.2.3.3-r1.ebuild:
39
40
41
42 1.1 app-office/libreoffice-bin/libreoffice-bin-4.2.5.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-4.2.5.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-4.2.5.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libreoffice-bin-4.2.5.2.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-4.2.5.2.ebuild,v 1.1 2014/06/28 12:38:48 dilfridge Exp $
52
53 EAPI=5
54
55 KDE_REQUIRED="optional"
56 CMAKE_REQUIRED="never"
57
58 BASE_PACKAGENAME="bin"
59 BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
60 BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
61
62 PYTHON_COMPAT=( python2_7 python3_3 )
63 PYTHON_REQ_USE="threads,xml"
64
65 inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
66
67 DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
68 HOMEPAGE="http://www.libreoffice.org"
69 SRC_URI_AMD64="
70 ${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
71 kde? (
72 !java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
73 java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
74 )
75 gnome? (
76 !java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
77 java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
78 )
79 !kde? ( !gnome? (
80 java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
81 ) )
82 "
83 SRC_URI_X86="
84 ${BASE_X86_URI}libreoffice-${PVR}.tar.xz
85 kde? (
86 !java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
87 java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
88 )
89 gnome? (
90 !java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
91 java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
92 )
93 !kde? ( !gnome? (
94 java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
95 ) )
96 "
97
98 SRC_URI="
99 amd64? ( ${SRC_URI_AMD64} )
100 x86? ( ${SRC_URI_X86} )
101 "
102
103 IUSE="gnome java kde"
104 LICENSE="LGPL-3"
105 SLOT="0"
106 KEYWORDS="-* ~amd64 ~x86"
107
108 BIN_COMMON_DEPEND="
109 =app-text/libexttextcat-3.4*
110 =app-text/libmwaw-0.2*
111 app-text/poppler:0/44
112 dev-libs/boost:0/1.52
113 dev-libs/icu:0/52
114 =media-gfx/graphite2-1.2*
115 media-libs/harfbuzz:0/0.9.18[icu]
116 media-libs/libpng:0/16
117 >=sys-libs/glibc-2.17
118 virtual/jpeg:62
119 kde? ( >=kde-base/kdelibs-4.12.5-r1:4 >=dev-qt/qtcore-4.8.5-r1:4 )
120 "
121
122 # PLEASE place any restrictions that are specific to the binary builds
123 # into the BIN_COMMON_DEPEND block above.
124 # All dependencies below this point should remain identical to those in
125 # the source ebuilds.
126
127 COMMON_DEPEND="
128 ${BIN_COMMON_DEPEND}
129 ${PYTHON_DEPS}
130 app-arch/zip
131 app-arch/unzip
132 >=app-text/hunspell-1.3.2-r3
133 app-text/mythes
134 app-text/libabw
135 >=app-text/libexttextcat-3.2
136 app-text/libebook
137 app-text/libetonyek
138 app-text/liblangtag
139 app-text/libmspub
140 >=app-text/libmwaw-0.2
141 >=app-text/libodfgen-0.0.3
142 app-text/libwpd:0.9[tools]
143 app-text/libwpg:0.2
144 >=app-text/libwps-0.2.2
145 >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
146 >=dev-cpp/clucene-2.3.3.4-r2
147 dev-cpp/libcmis:0.4
148 dev-db/unixODBC
149 >=dev-libs/boost-1.46:=
150 dev-libs/expat
151 >=dev-libs/hyphen-2.7.1
152 >=dev-libs/icu-4.8.1.1:=
153 >=dev-libs/libatomic_ops-7.2d
154 =dev-libs/liborcus-0.5*:=
155 >=dev-libs/nspr-4.8.8
156 >=dev-libs/nss-3.12.9
157 >=dev-lang/perl-5.0
158 >=dev-libs/openssl-1.0.0d
159 >=dev-libs/redland-1.0.16[ssl]
160 media-gfx/graphite2
161 >=media-libs/fontconfig-2.8.0
162 media-libs/freetype:2
163 >=media-libs/harfbuzz-0.9.18:=[icu(+)]
164 media-libs/lcms:2
165 >=media-libs/libpng-1.4
166 >=media-libs/libcdr-0.0.5
167 media-libs/libfreehand
168 media-libs/libvisio
169 >=net-misc/curl-7.21.4
170 net-nds/openldap
171 sci-mathematics/lpsolve
172 virtual/jpeg:0
173 >=x11-libs/cairo-1.10.0[X]
174 x11-libs/libXinerama
175 x11-libs/libXrandr
176 x11-libs/libXrender
177 net-print/cups
178 >=dev-libs/dbus-glib-0.92
179 gnome? ( gnome-extra/evolution-data-server )
180 gnome? ( gnome-base/gconf:2 )
181 x11-libs/gdk-pixbuf[X]
182 >=x11-libs/gtk+-2.24:2
183 media-libs/gstreamer:1.0
184 media-libs/gst-plugins-base:1.0
185 virtual/glu
186 virtual/opengl
187 net-libs/neon
188 "
189
190 RDEPEND="${COMMON_DEPEND}
191 !app-office/libreoffice
192 !<app-office/openoffice-bin-3.4.0-r1
193 !app-office/openoffice
194 media-fonts/libertine-ttf
195 media-fonts/liberation-fonts
196 media-fonts/urw-fonts
197 java? ( >=virtual/jre-1.6 )
198 "
199
200 PDEPEND="
201 =app-office/libreoffice-l10n-${PV}*
202 "
203
204 DEPEND="dev-util/xdelta:3"
205
206 # only one flavor at a time
207 REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
208
209 RESTRICT="test strip"
210
211 S="${WORKDIR}"
212
213 PYTHON_UPDATER_IGNORE="1"
214
215 pkg_pretend() {
216 [[ $(gcc-major-version) -lt 4 ]] || \
217 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
218 && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
219 }
220
221 pkg_setup() {
222 kde4-base_pkg_setup
223 }
224
225 src_unpack() {
226 einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
227 xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
228
229 local patchname
230 use kde && patchname="-kde"
231 use gnome && patchname="-gnome"
232 use java && patchname="${patchname}-java"
233
234 if [ -n "${patchname}" ]; then
235 einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
236 xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
237 mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
238 fi
239
240 einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
241 unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
242 }
243
244 src_prepare() {
245 cp "${FILESDIR}"/50-${PN} "${T}"
246 eprefixify "${T}"/50-${PN}
247 }
248
249 src_configure() { :; }
250
251 src_compile() { :; }
252
253 src_install() {
254 dodir /usr
255 cp -aR "${S}"/usr/* "${ED}"/usr/
256
257 # prevent revdep-rebuild from attempting to rebuild all the time
258 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
259 }
260
261 pkg_preinst() {
262 # Cache updates - all handled by kde eclass for all environments
263 kde4-base_pkg_preinst
264 }
265
266 pkg_postinst() {
267 kde4-base_pkg_postinst
268
269 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
270 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
271
272 use java || \
273 ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
274 }
275
276 pkg_postrm() {
277 kde4-base_pkg_postrm
278 }