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: libreoffice-bin-4.2.3.3-r1.ebuild ChangeLog
Date: Fri, 23 May 2014 22:12:30
Message-Id: 20140523221227.31BC62004C@flycatcher.gentoo.org
1 dilfridge 14/05/23 22:12:27
2
3 Modified: ChangeLog
4 Added: libreoffice-bin-4.2.3.3-r1.ebuild
5 Log:
6 Version bump for icu-52 and libreoffice-4.2
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EBE6A336BE19039C!)
9
10 Revision Changes Path
11 1.138 app-office/libreoffice-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.138&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?rev=1.138&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/ChangeLog?r1=1.137&r2=1.138
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v
20 retrieving revision 1.137
21 retrieving revision 1.138
22 diff -u -r1.137 -r1.138
23 --- ChangeLog 27 Mar 2014 09:09:51 -0000 1.137
24 +++ ChangeLog 23 May 2014 22:12:27 -0000 1.138
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.137 2014/03/27 09:09:51 scarabeus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.138 2014/05/23 22:12:27 dilfridge Exp $
30 +
31 +*libreoffice-bin-4.2.3.3-r1 (23 May 2014)
32 +
33 + 23 May 2014; Andreas K. Huettel <dilfridge@g.o>
34 + +libreoffice-bin-4.2.3.3-r1.ebuild:
35 + Version bump for icu-52 and libreoffice-4.2
36
37 27 Mar 2014; Tomáš Chvátal <scarabeus@g.o>
38 -libreoffice-bin-4.1.3.2-r3.ebuild:
39
40
41
42 1.1 app-office/libreoffice-bin/libreoffice-bin-4.2.3.3-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-4.2.3.3-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-4.2.3.3-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libreoffice-bin-4.2.3.3-r1.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.3.3-r1.ebuild,v 1.1 2014/05/23 22:12:27 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/poppler:0/44
111 dev-libs/boost:0/1.52
112 dev-libs/icu:0/52
113 =media-gfx/graphite2-1.2*
114 media-libs/harfbuzz:0/0.9.18[icu]
115 media-libs/libpng:0/16
116 >=sys-libs/glibc-2.17
117 virtual/jpeg:62
118 kde? ( >=kde-base/kdelibs-4.12.5:4 >=dev-qt/qtcore-4.8.5-r1:4 )
119 "
120
121 # PLEASE place any restrictions that are specific to the binary builds
122 # into the BIN_COMMON_DEPEND block above.
123 # All dependencies below this point should remain identical to those in
124 # the source ebuilds.
125
126 COMMON_DEPEND="
127 ${BIN_COMMON_DEPEND}
128 ${PYTHON_DEPS}
129 app-arch/zip
130 app-arch/unzip
131 >=app-text/hunspell-1.3.2-r3
132 app-text/mythes
133 app-text/libabw
134 >=app-text/libexttextcat-3.2
135 app-text/libebook
136 app-text/libetonyek
137 app-text/liblangtag
138 app-text/libmspub
139 >=app-text/libmwaw-0.2
140 >=app-text/libodfgen-0.0.3
141 app-text/libwpd:0.9[tools]
142 app-text/libwpg:0.2
143 >=app-text/libwps-0.2.2
144 >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
145 >=dev-cpp/clucene-2.3.3.4-r2
146 dev-cpp/libcmis:0.4
147 dev-db/unixODBC
148 >=dev-libs/boost-1.46:=
149 dev-libs/expat
150 >=dev-libs/hyphen-2.7.1
151 >=dev-libs/icu-4.8.1.1:=
152 >=dev-libs/libatomic_ops-7.2d
153 =dev-libs/liborcus-0.5*:=
154 >=dev-libs/nspr-4.8.8
155 >=dev-libs/nss-3.12.9
156 >=dev-lang/perl-5.0
157 >=dev-libs/openssl-1.0.0d
158 >=dev-libs/redland-1.0.16[ssl]
159 media-gfx/graphite2
160 >=media-libs/fontconfig-2.8.0
161 media-libs/freetype:2
162 >=media-libs/harfbuzz-0.9.18:=[icu(+)]
163 media-libs/lcms:2
164 >=media-libs/libpng-1.4
165 >=media-libs/libcdr-0.0.5
166 media-libs/libfreehand
167 media-libs/libvisio
168 >=net-misc/curl-7.21.4
169 net-nds/openldap
170 sci-mathematics/lpsolve
171 virtual/jpeg:0
172 >=x11-libs/cairo-1.10.0[X]
173 x11-libs/libXinerama
174 x11-libs/libXrandr
175 x11-libs/libXrender
176 net-print/cups
177 >=dev-libs/dbus-glib-0.92
178 gnome? ( gnome-extra/evolution-data-server )
179 gnome? ( gnome-base/gconf:2 )
180 x11-libs/gdk-pixbuf[X]
181 >=x11-libs/gtk+-2.24:2
182 media-libs/gstreamer:1.0
183 media-libs/gst-plugins-base:1.0
184 virtual/glu
185 virtual/opengl
186 net-libs/neon
187 "
188
189 RDEPEND="${COMMON_DEPEND}
190 !app-office/libreoffice
191 !<app-office/openoffice-bin-3.4.0-r1
192 !app-office/openoffice
193 media-fonts/libertine-ttf
194 media-fonts/liberation-fonts
195 media-fonts/urw-fonts
196 java? ( >=virtual/jre-1.6 )
197 "
198
199 PDEPEND="
200 =app-office/libreoffice-l10n-${PV}*
201 "
202
203 DEPEND="dev-util/xdelta:3"
204
205 # only one flavor at a time
206 REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
207
208 RESTRICT="test strip"
209
210 S="${WORKDIR}"
211
212 PYTHON_UPDATER_IGNORE="1"
213
214 pkg_pretend() {
215 [[ $(gcc-major-version) -lt 4 ]] || \
216 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
217 && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
218 }
219
220 pkg_setup() {
221 kde4-base_pkg_setup
222 }
223
224 src_unpack() {
225 einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
226 xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
227
228 local patchname
229 use kde && patchname="-kde"
230 use gnome && patchname="-gnome"
231 use java && patchname="${patchname}-java"
232
233 if [ -n "${patchname}" ]; then
234 einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
235 xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
236 mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
237 fi
238
239 einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
240 unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
241 }
242
243 src_prepare() {
244 cp "${FILESDIR}"/50-${PN} "${T}"
245 eprefixify "${T}"/50-${PN}
246 }
247
248 src_configure() { :; }
249
250 src_compile() { :; }
251
252 src_install() {
253 dodir /usr
254 cp -aR "${S}"/usr/* "${ED}"/usr/
255
256 # prevent revdep-rebuild from attempting to rebuild all the time
257 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
258 }
259
260 pkg_preinst() {
261 # Cache updates - all handled by kde eclass for all environments
262 kde4-base_pkg_preinst
263 }
264
265 pkg_postinst() {
266 kde4-base_pkg_postinst
267
268 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
269 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
270
271 use java || \
272 ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
273 }
274
275 pkg_postrm() {
276 kde4-base_pkg_postrm
277 }