1 |
scarabeus 12/11/02 12:22:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libreoffice-3.5.7.2.ebuild |
5 |
libreoffice-3.6.3.2.ebuild |
6 |
Removed: libreoffice-3.6.2.2.ebuild |
7 |
libreoffice-3.5.6.2.ebuild |
8 |
Log: |
9 |
Bump to latest to fix sec issue #440922, 3.5 straing to stable, not much stuff else to break shit up. Also fix the poppler crash with pdf import filter #430670. |
10 |
|
11 |
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 8EEE3BE8) |
12 |
|
13 |
Revision Changes Path |
14 |
1.384 app-office/libreoffice/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.384&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.384&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?r1=1.383&r2=1.384 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v |
23 |
retrieving revision 1.383 |
24 |
retrieving revision 1.384 |
25 |
diff -u -r1.383 -r1.384 |
26 |
--- ChangeLog 30 Oct 2012 21:00:29 -0000 1.383 |
27 |
+++ ChangeLog 2 Nov 2012 12:22:25 -0000 1.384 |
28 |
@@ -1,6 +1,17 @@ |
29 |
# ChangeLog for app-office/libreoffice |
30 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.383 2012/10/30 21:00:29 scarabeus Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.384 2012/11/02 12:22:25 scarabeus Exp $ |
33 |
+ |
34 |
+*libreoffice-3.6.3.2 (02 Nov 2012) |
35 |
+*libreoffice-3.5.7.2 (02 Nov 2012) |
36 |
+ |
37 |
+ 02 Nov 2012; Tomáš Chvátal <scarabeus@g.o> |
38 |
+ +files/libreoffice-3.6.3.2-fix-poppler.patch, +libreoffice-3.5.7.2.ebuild, |
39 |
+ +libreoffice-3.6.3.2.ebuild, -libreoffice-3.5.6.2.ebuild, |
40 |
+ -libreoffice-3.6.2.2.ebuild: |
41 |
+ Bump to latest to fix sec issue #440922, 3.5 straing to stable, not much stuff |
42 |
+ else to break shit up. Also fix the poppler crash with pdf import filter |
43 |
+ #430670. |
44 |
|
45 |
30 Oct 2012; Tomáš Chvátal <scarabeus@g.o> libreoffice-9999-r2.ebuild: |
46 |
Use new switch for paralel jobs count. Solves quite few bugs we had on gentoo |
47 |
|
48 |
|
49 |
|
50 |
1.1 app-office/libreoffice/libreoffice-3.5.7.2.ebuild |
51 |
|
52 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.7.2.ebuild?rev=1.1&view=markup |
53 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.7.2.ebuild?rev=1.1&content-type=text/plain |
54 |
|
55 |
Index: libreoffice-3.5.7.2.ebuild |
56 |
=================================================================== |
57 |
# Copyright 1999-2012 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.7.2.ebuild,v 1.1 2012/11/02 12:22:25 scarabeus Exp $ |
60 |
|
61 |
EAPI=4 |
62 |
|
63 |
KDE_REQUIRED="optional" |
64 |
QT_MINIMAL="4.7.4" |
65 |
KDE_SCM="git" |
66 |
CMAKE_REQUIRED="never" |
67 |
|
68 |
PYTHON_DEPEND="2" |
69 |
PYTHON_USE_WITH="threads,xml" |
70 |
|
71 |
# experimental ; release ; old |
72 |
# Usually the tarballs are moved a lot so this should make |
73 |
# everyone happy. |
74 |
DEV_URI=" |
75 |
http://dev-builds.libreoffice.org/pre-releases/src |
76 |
http://download.documentfoundation.org/libreoffice/src/3.5.7/ |
77 |
http://download.documentfoundation.org/libreoffice/old/src |
78 |
" |
79 |
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice" |
80 |
ADDONS_URI="http://dev-www.libreoffice.org/src/" |
81 |
|
82 |
BRANDING="${PN}-branding-gentoo-0.5.tar.xz" |
83 |
# PATCHSET="${P}-patchset-01.tar.xz" |
84 |
|
85 |
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2" |
86 |
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS} |
87 |
unset SCM_ECLASS |
88 |
|
89 |
DESCRIPTION="LibreOffice, a full office productivity suite." |
90 |
HOMEPAGE="http://www.libreoffice.org" |
91 |
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
92 |
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" |
93 |
|
94 |
# Split modules following git/tarballs |
95 |
# Core MUST be first! |
96 |
MODULES="core binfilter help" |
97 |
# Only release has the tarballs |
98 |
if [[ ${PV} != *9999* ]]; then |
99 |
for i in ${DEV_URI}; do |
100 |
for mod in ${MODULES}; do |
101 |
if [[ ${mod} == binfilter ]]; then |
102 |
SRC_URI+=" binfilter? ( ${i}/${PN}-${mod}-${PV}.tar.xz )" |
103 |
else |
104 |
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz" |
105 |
fi |
106 |
done |
107 |
unset mod |
108 |
done |
109 |
unset i |
110 |
fi |
111 |
unset DEV_URI |
112 |
|
113 |
# Really required addons |
114 |
# These are bundles that can't be removed for now due to huge patchsets. |
115 |
# If you want them gone, patches are welcome. |
116 |
ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz" |
117 |
ADDONS_SRC+=" xmlsec? ( ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz )" |
118 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
119 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
120 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
121 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip )" |
122 |
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
123 |
SRC_URI+=" ${ADDONS_SRC}" |
124 |
|
125 |
unset ADDONS_URI |
126 |
unset EXT_URI |
127 |
unset ADDONS_SRC |
128 |
|
129 |
IUSE="binfilter binfilterdebug +branding +cups dbus eds gnome +graphite gstreamer +gtk |
130 |
jemalloc kde mysql nlpsolver +nsplugin odk opengl pdfimport postgres svg test |
131 |
+vba +webdav +xmlsec" |
132 |
LICENSE="LGPL-3" |
133 |
SLOT="0" |
134 |
[[ ${PV} == *9999* ]] || KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" |
135 |
|
136 |
NSS_DEPEND=" |
137 |
>=dev-libs/nspr-4.8.8 |
138 |
>=dev-libs/nss-3.12.9 |
139 |
" |
140 |
|
141 |
COMMON_DEPEND=" |
142 |
app-arch/zip |
143 |
app-arch/unzip |
144 |
>=app-text/hunspell-1.3.2-r3 |
145 |
app-text/mythes |
146 |
>=app-text/libexttextcat-3.2 |
147 |
app-text/libwpd:0.9[tools] |
148 |
app-text/libwpg:0.2 |
149 |
>=app-text/libwps-0.2.2 |
150 |
<dev-cpp/libcmis-0.2 |
151 |
dev-db/unixODBC |
152 |
dev-libs/expat |
153 |
>=dev-libs/glib-2.28 |
154 |
>=dev-libs/hyphen-2.7.1 |
155 |
>=dev-libs/icu-49 |
156 |
>=dev-lang/perl-5.0 |
157 |
>=dev-libs/openssl-1.0.0d |
158 |
>=dev-libs/redland-1.0.14[ssl] |
159 |
>=media-libs/fontconfig-2.8.0 |
160 |
media-libs/freetype:2 |
161 |
>=media-libs/libpng-1.4 |
162 |
media-libs/libvisio |
163 |
>=net-misc/curl-7.21.4 |
164 |
sci-mathematics/lpsolve |
165 |
>=sys-libs/db-4.8 |
166 |
virtual/jpeg |
167 |
>=x11-libs/cairo-1.10.0[X] |
168 |
x11-libs/libXinerama |
169 |
x11-libs/libXrandr |
170 |
x11-libs/libXrender |
171 |
dbus? ( >=dev-libs/dbus-glib-0.92 ) |
172 |
eds? ( gnome-extra/evolution-data-server ) |
173 |
gnome? ( gnome-base/gconf:2 ) |
174 |
gtk? ( >=x11-libs/gtk+-2.24:2 ) |
175 |
graphite? ( media-gfx/graphite2 ) |
176 |
gstreamer? ( |
177 |
>=media-libs/gstreamer-0.10 |
178 |
>=media-libs/gst-plugins-base-0.10 |
179 |
) |
180 |
java? ( |
181 |
>=dev-java/bsh-2.0_beta4 |
182 |
dev-java/lucene:2.9 |
183 |
dev-java/lucene-analyzers:2.3 |
184 |
) |
185 |
jemalloc? ( dev-libs/jemalloc ) |
186 |
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) |
187 |
opengl? ( virtual/opengl ) |
188 |
pdfimport? ( >=app-text/poppler-0.16[xpdf-headers(+),cxx] ) |
189 |
postgres? ( >=dev-db/postgresql-base-8.4.0 ) |
190 |
svg? ( gnome-base/librsvg ) |
191 |
webdav? ( net-libs/neon ) |
192 |
xmlsec? ( ${NSS_DEPEND} ) |
193 |
" |
194 |
|
195 |
RDEPEND="${COMMON_DEPEND} |
196 |
!app-office/libreoffice-bin |
197 |
!app-office/libreoffice-bin-debug |
198 |
!<app-openoffice/openoffice-bin-3.4.0-r1 |
199 |
!app-office/openoffice |
200 |
media-fonts/libertine-ttf |
201 |
media-fonts/liberation-fonts |
202 |
media-fonts/urw-fonts |
203 |
cups? ( net-print/cups ) |
204 |
java? ( >=virtual/jre-1.6 ) |
205 |
" |
206 |
|
207 |
PDEPEND=" |
208 |
>=app-office/libreoffice-l10n-3.5.0 |
209 |
" |
210 |
|
211 |
# FIXME: cppunit should be moved to test conditional |
212 |
# after everything upstream is under gbuild |
213 |
# as dmake execute tests right away |
214 |
DEPEND="${COMMON_DEPEND} |
215 |
>=dev-libs/boost-1.46 |
216 |
>=dev-libs/libxml2-2.7.8 |
217 |
dev-libs/libxslt |
218 |
dev-perl/Archive-Zip |
219 |
dev-util/cppunit |
220 |
>=dev-util/gperf-3 |
221 |
dev-util/intltool |
222 |
dev-util/mdds |
223 |
virtual/pkgconfig |
224 |
media-libs/sampleicc |
225 |
net-misc/npapi-sdk |
226 |
net-print/cups |
227 |
>=sys-apps/findutils-4.4.2 |
228 |
sys-devel/bison |
229 |
sys-apps/coreutils |
230 |
sys-devel/flex |
231 |
sys-devel/gettext |
232 |
>=sys-devel/make-3.82 |
233 |
sys-libs/zlib |
234 |
x11-libs/libXt |
235 |
x11-libs/libXtst |
236 |
x11-proto/randrproto |
237 |
x11-proto/xextproto |
238 |
x11-proto/xineramaproto |
239 |
x11-proto/xproto |
240 |
java? ( |
241 |
>=virtual/jdk-1.6 |
242 |
>=dev-java/ant-core-1.7 |
243 |
test? ( dev-java/junit:4 ) |
244 |
) |
245 |
" |
246 |
|
247 |
PATCHES=( |
248 |
"${FILESDIR}/${PN}-system-pyuno.patch" |
249 |
"${FILESDIR}/${PN}-3.5-propagate-gb_FULLDEPS.patch" |
250 |
"${FILESDIR}/${PN}-3.5-doublebuild.patch" |
251 |
"${FILESDIR}/${PN}-3.5-hebrew-icu49.patch" |
252 |
) |
253 |
|
254 |
REQUIRED_USE=" |
255 |
nsplugin? ( gtk ) |
256 |
gnome? ( gtk ) |
257 |
eds? ( gnome ) |
258 |
nlpsolver? ( java ) |
259 |
" |
260 |
|
261 |
S="${WORKDIR}/${PN}-core-${PV}" |
262 |
|
263 |
RESTRICT="test" |
264 |
|
265 |
pkg_pretend() { |
266 |
local pgslot |
267 |
|
268 |
if [[ ${MERGE_TYPE} != binary ]]; then |
269 |
CHECKREQS_MEMORY="512M" |
270 |
CHECKREQS_DISK_BUILD="6G" |
271 |
check-reqs_pkg_pretend |
272 |
|
273 |
if [[ $(gcc-major-version) -lt 4 ]] || \ |
274 |
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 5 ]] ) \ |
275 |
; then |
276 |
eerror "Compilation with gcc older than 4.5 is not supported" |
277 |
die "Too old gcc found." |
278 |
fi |
279 |
fi |
280 |
|
281 |
# ensure pg version |
282 |
if use postgres; then |
283 |
pgslot=$(postgresql-config show) |
284 |
if [[ ${pgslot//.} < 90 ]] ; then |
285 |
eerror "PostgreSQL slot must be set to 9.0 or higher." |
286 |
eerror " postgresql-config set 9.0" |
287 |
die "PostgreSQL slot is not set to 9.0 or higher." |
288 |
fi |
289 |
fi |
290 |
} |
291 |
|
292 |
pkg_setup() { |
293 |
java-pkg-opt-2_pkg_setup |
294 |
kde4-base_pkg_setup |
295 |
|
296 |
python_set_active_version 2 |
297 |
python_pkg_setup |
298 |
|
299 |
if [[ ${MERGE_TYPE} != binary ]]; then |
300 |
CHECKREQS_MEMORY="512M" |
301 |
CHECKREQS_DISK_BUILD="6G" |
302 |
check-reqs_pkg_pretend |
303 |
fi |
304 |
} |
305 |
|
306 |
src_unpack() { |
307 |
local mod dest tmplfile tmplname mypv |
308 |
|
309 |
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET} |
310 |
if use branding; then |
311 |
unpack "${BRANDING}" |
312 |
fi |
313 |
|
314 |
if [[ ${PV} != *9999* ]]; then |
315 |
for mod in ${MODULES}; do |
316 |
if [[ ${mod} == binfilter ]] && ! use binfilter; then |
317 |
continue |
318 |
fi |
319 |
unpack "${PN}-${mod}-${PV}.tar.xz" |
320 |
if [[ ${mod} != core ]]; then |
321 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
322 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
323 |
fi |
324 |
done |
325 |
else |
326 |
for mod in ${MODULES}; do |
327 |
if [[ ${mod} == binfilter ]] && ! use binfilter; then |
328 |
continue |
329 |
fi |
330 |
mypv=${PV/.9999} |
331 |
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" |
332 |
EGIT_PROJECT="${PN}/${mod}" |
333 |
EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}" |
334 |
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" |
335 |
EGIT_NOUNPACK="true" |
336 |
git-2_src_unpack |
337 |
if [[ ${mod} != core ]]; then |
338 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
339 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
340 |
fi |
341 |
done |
342 |
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH |
343 |
fi |
344 |
} |
345 |
|
346 |
src_prepare() { |
347 |
# optimization flags |
348 |
export ARCH_FLAGS="${CXXFLAGS}" |
349 |
export LINKFLAGSOPTIMIZE="${LDFLAGS}" |
350 |
|
351 |
# patchset |
352 |
if [[ -n ${PATCHSET} ]]; then |
353 |
EPATCH_FORCE="yes" \ |
354 |
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \ |
355 |
EPATCH_SUFFIX="patch" \ |
356 |
epatch |
357 |
fi |
358 |
|
359 |
base_src_prepare |
360 |
|
361 |
# please no debug in binfilter, it blows up things insanely |
362 |
if use binfilter && ! use binfilterdebug ; then |
363 |
for name in $(find "${S}/binfilter" -name makefile.mk) ; do |
364 |
sed -i -e '1i\CFLAGS+= -g0' $name || die |
365 |
done |
366 |
fi |
367 |
|
368 |
eautoreconf |
369 |
# hack in the autogen.sh |
370 |
touch autogen.lastrun |
371 |
# system pyuno mess |
372 |
sed \ |
373 |
-e "s:%eprefix%:${EPREFIX}:g" \ |
374 |
-e "s:%libdir%:$(get_libdir):g" \ |
375 |
-i pyuno/source/module/uno.py \ |
376 |
-i scripting/source/pyprov/officehelper.py || die |
377 |
|
378 |
} |
379 |
|
380 |
src_configure() { |
381 |
local java_opts |
382 |
local internal_libs |
383 |
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") |
384 |
|
385 |
# recheck that there is some value in jobs |
386 |
[[ -z ${jbs} ]] && jbs="1" |
387 |
|
388 |
# sane: just sane.h header that is used for scan in writer, not |
389 |
# linked or anything else, worthless to depend on |
390 |
# vigra: just uses templates from there |
391 |
# it is serious pain in the ass for packaging |
392 |
# should be replaced by boost::gil if someone interested |
393 |
internal_libs+=" |
394 |
--without-system-sane |
395 |
--without-system-vigra |
396 |
" |
397 |
|
398 |
if use java; then |
399 |
# hsqldb: system one is too new |
400 |
# saxon: system one does not work properly |
401 |
java_opts=" |
402 |
--without-system-hsqldb |
403 |
--without-system-saxon |
404 |
--with-ant-home="${ANT_HOME}" |
405 |
--with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
406 |
--with-java-target-version=$(java-pkg_get-target) |
407 |
--with-jvm-path="${EPREFIX}/usr/$(get_libdir)/" |
408 |
--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) |
409 |
--with-lucene-core-jar=$(java-pkg_getjar lucene-2.9 lucene-core.jar) |
410 |
--with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar) |
411 |
" |
412 |
if use test; then |
413 |
java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)" |
414 |
else |
415 |
java_opts+=" --without-junit" |
416 |
fi |
417 |
fi |
418 |
|
419 |
if use branding; then |
420 |
internal_libs+=" |
421 |
--with-about-bitmap="${WORKDIR}/branding-about.png" |
422 |
--with-intro-bitmap="${WORKDIR}/branding-intro.png" |
423 |
" |
424 |
fi |
425 |
|
426 |
# system headers/libs/...: enforce using system packages |
427 |
# --enable-unix-qstart-libpng: use libpng splashscreen that is faster |
428 |
# --enable-cairo: ensure that cairo is always required |
429 |
# --enable-*-link: link to the library rather than just dlopen on runtime |
430 |
# --enable-release-build: build the libreoffice as release |
431 |
# --disable-fetch-external: prevent dowloading during compile phase |
432 |
# --disable-gnome-vfs: old gnome virtual fs support |
433 |
# --disable-kdeab: kde3 adressbook |
434 |
# --disable-kde: kde3 support |
435 |
# --disable-ldap: ldap requires internal mozilla stuff, same like mozab |
436 |
# --disable-mozilla: disable mozilla build that is used for adresbook, not |
437 |
# affecting the nsplugin that is always ON |
438 |
# --disable-pch: precompiled headers cause build crashes |
439 |
# --disable-rpath: relative runtime path is not desired |
440 |
# --disable-static-gtk: ensure that gtk is linked dynamically |
441 |
# --disable-ugly: disable ugly pieces of code |
442 |
# --disable-zenity: disable build icon |
443 |
# --enable-extension-integration: enable any extension integration support |
444 |
# --with-{max-jobs,num-cpus}: ensuring parallel building |
445 |
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
446 |
# --without-stlport: disable deprecated extensions framework |
447 |
# --disable-ext-report-builder: too much java packages pulled in |
448 |
econf \ |
449 |
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \ |
450 |
--with-system-headers \ |
451 |
--with-system-libs \ |
452 |
--with-system-jars \ |
453 |
--with-system-dicts \ |
454 |
--enable-cairo-canvas \ |
455 |
--enable-largefile \ |
456 |
--enable-python=system \ |
457 |
--enable-randr \ |
458 |
--enable-randr-link \ |
459 |
--enable-release-build \ |
460 |
--enable-unix-qstart-libpng \ |
461 |
--enable-mergelibs \ |
462 |
--disable-ccache \ |
463 |
--disable-crashdump \ |
464 |
--disable-dependency-tracking \ |
465 |
--disable-epm \ |
466 |
--disable-fetch-external \ |
467 |
--disable-gnome-vfs \ |
468 |
--disable-ext-report-builder \ |
469 |
--disable-kdeab \ |
470 |
--disable-kde \ |
471 |
--disable-ldap \ |
472 |
--disable-mozilla \ |
473 |
--disable-online-update \ |
474 |
--disable-pch \ |
475 |
--disable-rpath \ |
476 |
--disable-systray \ |
477 |
--disable-static-gtk \ |
478 |
--disable-strip-solver \ |
479 |
--disable-ugly \ |
480 |
--disable-zenity \ |
481 |
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ |
482 |
--with-build-version="Gentoo official package" \ |
483 |
--enable-extension-integration \ |
484 |
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
485 |
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
486 |
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
487 |
--with-external-tar="${DISTDIR}" \ |
488 |
--with-lang="" \ |
489 |
--with-max-jobs=${jbs} \ |
490 |
--with-num-cpus=2 \ |
491 |
--with-unix-wrapper=libreoffice \ |
492 |
--with-vendor="Gentoo Foundation" \ |
493 |
--with-x \ |
494 |
--without-afms \ |
495 |
--without-fonts \ |
496 |
--without-myspell-dicts \ |
497 |
--without-stlport \ |
498 |
--without-system-mozilla \ |
499 |
--without-help \ |
500 |
--with-helppack-integration \ |
501 |
--without-sun-templates \ |
502 |
$(use_enable binfilter) \ |
503 |
$(use_enable dbus) \ |
504 |
$(use_enable eds evolution2) \ |
505 |
$(use_enable gnome gconf) \ |
506 |
$(use_enable gnome gio) \ |
507 |
$(use_enable gnome lockdown) \ |
508 |
$(use_enable graphite) \ |
509 |
$(use_enable gstreamer) \ |
510 |
$(use_enable gtk) \ |
511 |
--disable-gtk3 \ |
512 |
$(use_enable java ext-scripting-beanshell) \ |
513 |
$(use_enable kde kde4) \ |
514 |
$(use_enable mysql ext-mysql-connector) \ |
515 |
$(use_enable nlpsolver ext-nlpsolver) \ |
516 |
$(use_enable nsplugin) \ |
517 |
$(use_enable odk) \ |
518 |
$(use_enable opengl) \ |
519 |
$(use_enable pdfimport ext-pdfimport) \ |
520 |
$(use_enable postgres postgresql-sdbc) \ |
521 |
$(use_enable svg librsvg system) \ |
522 |
$(use_enable test linkoo) \ |
523 |
$(use_enable vba) \ |
524 |
$(use_enable vba activex-component) \ |
525 |
$(use_enable webdav neon) \ |
526 |
$(use_enable xmlsec) \ |
527 |
$(use_with java) \ |
528 |
$(use_with mysql system-mysql-cppconn) \ |
529 |
${internal_libs} \ |
530 |
${java_opts} |
531 |
} |
532 |
|
533 |
src_compile() { |
534 |
# hack for offlinehelp, this needs fixing upstream at some point |
535 |
# it is broken because we send --without-help |
536 |
# https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
537 |
( |
538 |
source "${S}/Env.Host.sh" 2&> /dev/null |
539 |
|
540 |
local path="${SOLARVER}/${INPATH}/res/img" |
541 |
mkdir -p "${path}" || die |
542 |
|
543 |
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=default_images/res/helpimg > \"${path}/helpimg.ilst\"" |
544 |
perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
545 |
-dir=default_images/res/helpimg \ |
546 |
> "${path}/helpimg.ilst" |
547 |
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug." |
548 |
) |
549 |
|
550 |
# not a proper make script |
551 |
make build || die |
552 |
} |
553 |
|
554 |
src_test() { |
555 |
make check || die |
556 |
} |
557 |
|
558 |
src_install() { |
559 |
# This is not Makefile so no buildserver |
560 |
make DESTDIR="${D}" distro-pack-install -o build -o check || die |
561 |
|
562 |
# Fix bash completion placement |
563 |
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN} |
564 |
rm -rf "${ED}"/etc/ |
565 |
|
566 |
# symlink the nsplugin to system location |
567 |
if use nsplugin; then |
568 |
inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so |
569 |
fi |
570 |
|
571 |
if use branding; then |
572 |
insinto /usr/$(get_libdir)/${PN}/program |
573 |
newins "${WORKDIR}/branding-sofficerc" sofficerc |
574 |
fi |
575 |
|
576 |
# Hack for offlinehelp, this needs fixing upstream at some point. |
577 |
# It is broken because we send --without-help |
578 |
# https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
579 |
insinto /usr/$(get_libdir)/libreoffice/help |
580 |
doins xmlhelp/util/*.xsl |
581 |
} |
582 |
|
583 |
pkg_preinst() { |
584 |
# Cache updates - all handled by kde eclass for all environments |
585 |
kde4-base_pkg_preinst |
586 |
} |
587 |
|
588 |
pkg_postinst() { |
589 |
kde4-base_pkg_postinst |
590 |
|
591 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin |
592 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin |
593 |
|
594 |
use cups || \ |
595 |
ewarn 'You will need net-print/cups to be able to print and export to PDF with libreoffice.' |
596 |
|
597 |
use java || \ |
598 |
ewarn 'If you plan to use lbase aplication you should enable java or you will get various crashes.' |
599 |
} |
600 |
|
601 |
pkg_postrm() { |
602 |
kde4-base_pkg_postrm |
603 |
} |
604 |
|
605 |
|
606 |
|
607 |
1.1 app-office/libreoffice/libreoffice-3.6.3.2.ebuild |
608 |
|
609 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.6.3.2.ebuild?rev=1.1&view=markup |
610 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.6.3.2.ebuild?rev=1.1&content-type=text/plain |
611 |
|
612 |
Index: libreoffice-3.6.3.2.ebuild |
613 |
=================================================================== |
614 |
# Copyright 1999-2012 Gentoo Foundation |
615 |
# Distributed under the terms of the GNU General Public License v2 |
616 |
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.6.3.2.ebuild,v 1.1 2012/11/02 12:22:25 scarabeus Exp $ |
617 |
|
618 |
EAPI=4 |
619 |
|
620 |
KDE_REQUIRED="optional" |
621 |
QT_MINIMAL="4.7.4" |
622 |
KDE_SCM="git" |
623 |
CMAKE_REQUIRED="never" |
624 |
|
625 |
PYTHON_DEPEND="2" |
626 |
PYTHON_USE_WITH="threads,xml" |
627 |
|
628 |
# experimental ; release ; old |
629 |
# Usually the tarballs are moved a lot so this should make |
630 |
# everyone happy. |
631 |
DEV_URI=" |
632 |
http://dev-builds.libreoffice.org/pre-releases/src |
633 |
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/ |
634 |
http://download.documentfoundation.org/libreoffice/old/${PV}/ |
635 |
" |
636 |
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice" |
637 |
ADDONS_URI="http://dev-www.libreoffice.org/src/" |
638 |
|
639 |
BRANDING="${PN}-branding-gentoo-0.6.tar.xz" |
640 |
# PATCHSET="${P}-patchset-01.tar.xz" |
641 |
|
642 |
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2" |
643 |
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python multilib toolchain-funcs flag-o-matic ${SCM_ECLASS} |
644 |
unset SCM_ECLASS |
645 |
|
646 |
DESCRIPTION="LibreOffice, a full office productivity suite." |
647 |
HOMEPAGE="http://www.libreoffice.org" |
648 |
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
649 |
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" |
650 |
|
651 |
# Split modules following git/tarballs |
652 |
# Core MUST be first! |
653 |
# Help is used for the image generator |
654 |
MODULES="core binfilter help" |
655 |
# Only release has the tarballs |
656 |
if [[ ${PV} != *9999* ]]; then |
657 |
for i in ${DEV_URI}; do |
658 |
for mod in ${MODULES}; do |
659 |
if [[ ${mod} == binfilter ]]; then |
660 |
SRC_URI+=" binfilter? ( ${i}/${PN}-${mod}-${PV}.tar.xz )" |
661 |
else |
662 |
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz" |
663 |
fi |
664 |
done |
665 |
unset mod |
666 |
done |
667 |
unset i |
668 |
fi |
669 |
unset DEV_URI |
670 |
|
671 |
# Really required addons |
672 |
# These are bundles that can't be removed for now due to huge patchsets. |
673 |
# If you want them gone, patches are welcome. |
674 |
ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz" |
675 |
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code |
676 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
677 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip )" |
678 |
ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it? |
679 |
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all |
680 |
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino |
681 |
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable |
682 |
SRC_URI+=" ${ADDONS_SRC}" |
683 |
|
684 |
unset ADDONS_URI |
685 |
unset EXT_URI |
686 |
unset ADDONS_SRC |
687 |
|
688 |
IUSE="binfilter binfilterdebug +branding +cups dbus eds gnome gstreamer +gtk |
689 |
jemalloc kde mysql odk opengl postgres svg test +vba +webdav" |
690 |
|
691 |
LO_EXTS="nlpsolver pdfimport presenter-console presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher" |
692 |
# Unpackaged separate extensions: |
693 |
# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf? |
694 |
# hunart: only on ooo extensions -> fubared download path somewhere on sf |
695 |
# numbertext, typo, validator, watch-window: ^^ |
696 |
# oooblogger: no homepage or anything |
697 |
# Extensions that need extra work: |
698 |
# report-builder: missing java packages |
699 |
for lo_xt in ${LO_EXTS}; do |
700 |
IUSE+=" libreoffice_extensions_${lo_xt}" |
701 |
done |
702 |
unset lo_xt |
703 |
|
704 |
LICENSE="|| ( LGPL-3 MPL-1.1 )" |
705 |
SLOT="0" |
706 |
[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
707 |
|
708 |
COMMON_DEPEND=" |
709 |
app-arch/zip |
710 |
app-arch/unzip |
711 |
>=app-text/hunspell-1.3.2-r3 |
712 |
app-text/mythes |
713 |
>=app-text/libexttextcat-3.2 |
714 |
app-text/libwpd:0.9[tools] |
715 |
app-text/libwpg:0.2 |
716 |
>=app-text/libwps-0.2.2 |
717 |
>=dev-cpp/clucene-2.3.3.4-r2 |
718 |
>=dev-cpp/libcmis-0.2:0.2 |
719 |
dev-db/unixODBC |
720 |
dev-libs/expat |
721 |
>=dev-libs/glib-2.28 |
722 |
>=dev-libs/hyphen-2.7.1 |
723 |
>=dev-libs/icu-4.8.1.1 |
724 |
>=dev-libs/nspr-4.8.8 |
725 |
>=dev-libs/nss-3.12.9 |
726 |
>=dev-lang/perl-5.0 |
727 |
>=dev-libs/openssl-1.0.0d |
728 |
>=dev-libs/redland-1.0.14[ssl] |
729 |
media-gfx/graphite2 |
730 |
>=media-libs/fontconfig-2.8.0 |
731 |
media-libs/freetype:2 |
732 |
media-libs/lcms:2 |
733 |
>=media-libs/libpng-1.4 |
734 |
>=media-libs/libcdr-0.0.5 |
735 |
media-libs/libvisio |
736 |
>=net-misc/curl-7.21.4 |
737 |
sci-mathematics/lpsolve |
738 |
>=sys-libs/db-4.8 |
739 |
virtual/jpeg |
740 |
>=x11-libs/cairo-1.10.0[X] |
741 |
x11-libs/libXinerama |
742 |
x11-libs/libXrandr |
743 |
x11-libs/libXrender |
744 |
cups? ( net-print/cups ) |
745 |
dbus? ( >=dev-libs/dbus-glib-0.92 ) |
746 |
eds? ( gnome-extra/evolution-data-server ) |
747 |
gnome? ( gnome-base/gconf:2 ) |
748 |
gtk? ( |
749 |
x11-libs/gdk-pixbuf[X] |
750 |
>=x11-libs/gtk+-2.24:2 |
751 |
) |
752 |
gstreamer? ( |
753 |
>=media-libs/gstreamer-0.10 |
754 |
>=media-libs/gst-plugins-base-0.10 |
755 |
) |
756 |
jemalloc? ( dev-libs/jemalloc ) |
757 |
libreoffice_extensions_pdfimport? ( >=app-text/poppler-0.16[xpdf-headers(+),cxx] ) |
758 |
libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 ) |
759 |
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
760 |
libreoffice_extensions_wiki-publisher? ( |
761 |
dev-java/commons-codec:0 |
762 |
dev-java/commons-httpclient:3 |
763 |
dev-java/commons-lang:2.1 |
764 |
dev-java/commons-logging:0 |
765 |
dev-java/tomcat-servlet-api:3.0 |
766 |
) |
767 |
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) |
768 |
opengl? ( |
769 |
virtual/glu |
770 |
virtual/opengl |
771 |
) |
772 |
postgres? ( >=dev-db/postgresql-base-9.0[kerberos] ) |
773 |
svg? ( gnome-base/librsvg ) |
774 |
webdav? ( net-libs/neon ) |
775 |
" |
776 |
|
777 |
RDEPEND="${COMMON_DEPEND} |
778 |
!app-office/libreoffice-bin |
779 |
!app-office/libreoffice-bin-debug |
780 |
!<app-openoffice/openoffice-bin-3.4.0-r1 |
781 |
!app-office/openoffice |
782 |
media-fonts/libertine-ttf |
783 |
media-fonts/liberation-fonts |
784 |
media-fonts/urw-fonts |
785 |
java? ( >=virtual/jre-1.6 ) |
786 |
" |
787 |
|
788 |
PDEPEND=" |
789 |
=app-office/libreoffice-l10n-3.6* |
790 |
" |
791 |
|
792 |
# FIXME: cppunit should be moved to test conditional |
793 |
# after everything upstream is under gbuild |
794 |
# as dmake execute tests right away |
795 |
DEPEND="${COMMON_DEPEND} |
796 |
>=dev-libs/boost-1.46 |
797 |
>=dev-libs/libxml2-2.7.8 |
798 |
dev-libs/libxslt |
799 |
dev-perl/Archive-Zip |
800 |
dev-util/cppunit |
801 |
>=dev-util/gperf-3 |
802 |
dev-util/intltool |
803 |
dev-util/mdds |
804 |
virtual/pkgconfig |
805 |
net-misc/npapi-sdk |
806 |
>=sys-apps/findutils-4.4.2 |
807 |
sys-devel/bison |
808 |
sys-apps/coreutils |
809 |
sys-devel/flex |
810 |
sys-devel/gettext |
811 |
>=sys-devel/make-3.82 |
812 |
sys-libs/zlib |
813 |
x11-libs/libXt |
814 |
x11-libs/libXtst |
815 |
x11-proto/randrproto |
816 |
x11-proto/xextproto |
817 |
x11-proto/xineramaproto |
818 |
x11-proto/xproto |
819 |
java? ( |
820 |
>=virtual/jdk-1.6 |
821 |
>=dev-java/ant-core-1.7 |
822 |
test? ( dev-java/junit:4 ) |
823 |
) |
824 |
odk? ( app-doc/doxygen ) |
825 |
test? ( dev-util/cppunit ) |
826 |
" |
827 |
|
828 |
PATCHES=( |
829 |
# not upstreamable stuff |
830 |
"${FILESDIR}/${PN}-3.6-system-pyuno.patch" |
831 |
"${FILESDIR}/${PN}-3.6-separate-checks.patch" |
832 |
"${FILESDIR}/${P}-fix-poppler.patch" |
833 |
) |
834 |
|
835 |
REQUIRED_USE=" |
836 |
gnome? ( gtk ) |
837 |
eds? ( gnome ) |
838 |
libreoffice_extensions_nlpsolver? ( java ) |
839 |
libreoffice_extensions_scripting-beanshell? ( java ) |
840 |
libreoffice_extensions_scripting-javascript? ( java ) |
841 |
libreoffice_extensions_wiki-publisher? ( java ) |
842 |
" |
843 |
|
844 |
S="${WORKDIR}/${PN}-core-${PV}" |
845 |
|
846 |
CHECKREQS_MEMORY="512M" |
847 |
CHECKREQS_DISK_BUILD="6G" |
848 |
|
849 |
pkg_pretend() { |
850 |
local pgslot |
851 |
|
852 |
if [[ ${MERGE_TYPE} != binary ]]; then |
853 |
check-reqs_pkg_pretend |
854 |
|
855 |
if [[ $(gcc-major-version) -lt 4 ]] || \ |
856 |
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 5 ]] ) \ |
857 |
; then |
858 |
eerror "Compilation with gcc older than 4.5 is not supported" |
859 |
die "Too old gcc found." |
860 |
fi |
861 |
fi |
862 |
|
863 |
# ensure pg version |
864 |
if use postgres; then |
865 |
pgslot=$(postgresql-config show) |
866 |
if [[ ${pgslot//.} < 90 ]] ; then |
867 |
eerror "PostgreSQL slot must be set to 9.0 or higher." |
868 |
eerror " postgresql-config set 9.0" |
869 |
die "PostgreSQL slot is not set to 9.0 or higher." |
870 |
fi |
871 |
fi |
872 |
} |
873 |
|
874 |
pkg_setup() { |
875 |
java-pkg-opt-2_pkg_setup |
876 |
kde4-base_pkg_setup |
877 |
|
878 |
python_set_active_version 2 |
879 |
python_pkg_setup |
880 |
|
881 |
[[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup |
882 |
} |
883 |
|
884 |
src_unpack() { |
885 |
local mod dest tmplfile tmplname mypv |
886 |
|
887 |
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET} |
888 |
if use branding; then |
889 |
unpack "${BRANDING}" |
890 |
fi |
891 |
|
892 |
if [[ ${PV} != *9999* ]]; then |
893 |
for mod in ${MODULES}; do |
894 |
if [[ ${mod} == binfilter ]] && ! use binfilter; then |
895 |
continue |
896 |
fi |
897 |
unpack "${PN}-${mod}-${PV}.tar.xz" |
898 |
if [[ ${mod} != core ]]; then |
899 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
900 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
901 |
fi |
902 |
done |
903 |
else |
904 |
for mod in ${MODULES}; do |
905 |
if [[ ${mod} == binfilter ]] && ! use binfilter; then |
906 |
continue |
907 |
fi |
908 |
mypv=${PV/.9999} |
909 |
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" |
910 |
EGIT_PROJECT="${PN}/${mod}" |
911 |
EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}" |
912 |
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" |
913 |
EGIT_NOUNPACK="true" |
914 |
git-2_src_unpack |
915 |
if [[ ${mod} != core ]]; then |
916 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
917 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
918 |
fi |
919 |
done |
920 |
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH |
921 |
fi |
922 |
} |
923 |
|
924 |
src_prepare() { |
925 |
# optimization flags |
926 |
export ARCH_FLAGS="${CXXFLAGS}" |
927 |
export LINKFLAGSOPTIMIZE="${LDFLAGS}" |
928 |
export GMAKE_OPTIONS="${MAKEOPTS}" |
929 |
|
930 |
# patchset |
931 |
if [[ -n ${PATCHSET} ]]; then |
932 |
EPATCH_FORCE="yes" \ |
933 |
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \ |
934 |
EPATCH_SUFFIX="patch" \ |
935 |
epatch |
936 |
fi |
937 |
|
938 |
base_src_prepare |
939 |
|
940 |
# please no debug in binfilter, it blows up things insanely |
941 |
if use binfilter && ! use binfilterdebug ; then |
942 |
for name in $(find "${S}/binfilter" -name makefile.mk) ; do |
943 |
sed -i -e '1i\CFLAGS+= -g0' $name || die |
944 |
done |
945 |
fi |
946 |
|
947 |
AT_M4DIR="m4" |
948 |
eautoreconf |
949 |
# hack in the autogen.sh |
950 |
touch autogen.lastrun |
951 |
|
952 |
# system pyuno mess |
953 |
sed \ |
954 |
-e "s:%eprefix%:${EPREFIX}:g" \ |
955 |
-e "s:%libdir%:$(get_libdir):g" \ |
956 |
-i pyuno/source/module/uno.py \ |
957 |
-i scripting/source/pyprov/officehelper.py || die |
958 |
} |
959 |
|
960 |
src_configure() { |
961 |
local java_opts |
962 |
local internal_libs |
963 |
local lo_ext |
964 |
local ext_opts |
965 |
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") |
966 |
|
967 |
# recheck that there is some value in jobs |
968 |
[[ -z ${jbs} ]] && jbs="1" |
969 |
|
970 |
# sane: just sane.h header that is used for scan in writer, not |
971 |
# linked or anything else, worthless to depend on |
972 |
# vigra: just uses templates from there |
973 |
# it is serious pain in the ass for packaging |
974 |
# should be replaced by boost::gil if someone interested |
975 |
internal_libs+=" |
976 |
--without-system-sane |
977 |
--without-system-vigra |
978 |
" |
979 |
|
980 |
# libreoffice extensions handling |
981 |
for lo_xt in ${LO_EXTS}; do |
982 |
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})" |
983 |
done |
984 |
|
985 |
if use java; then |
986 |
# hsqldb: system one is too new |
987 |
# saxon: system one does not work properly |
988 |
java_opts=" |
989 |
--without-system-hsqldb |
990 |
--without-system-saxon |
991 |
--with-ant-home="${ANT_HOME}" |
992 |
--with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
993 |
--with-java-target-version=$(java-pkg_get-target) |
994 |
--with-jvm-path="${EPREFIX}/usr/$(get_libdir)/" |
995 |
" |
996 |
|
997 |
use libreoffice_extensions_scripting-beanshell && \ |
998 |
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" |
999 |
|
1000 |
use libreoffice_extensions_scripting-javascript && \ |
1001 |
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)" |
1002 |
|
1003 |
if use libreoffice_extensions_wiki-publisher; then |
1004 |
java_opts+=" |
1005 |
--with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar) |
1006 |
--with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar) |
1007 |
--with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar) |
1008 |
--with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar) |
1009 |
--with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar) |
1010 |
" |
1011 |
fi |
1012 |
|
1013 |
if use test; then |
1014 |
java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)" |
1015 |
else |
1016 |
java_opts+=" --without-junit" |
1017 |
fi |
1018 |
fi |
1019 |
|
1020 |
if use branding; then |
1021 |
# hack... |
1022 |
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die |
1023 |
fi |
1024 |
|
1025 |
# system headers/libs/...: enforce using system packages |
1026 |
# --enable-unix-qstart-libpng: use libpng splashscreen that is faster |
1027 |
# --enable-cairo: ensure that cairo is always required |
1028 |
# --enable-*-link: link to the library rather than just dlopen on runtime |
1029 |
# --enable-release-build: build the libreoffice as release |
1030 |
# --disable-fetch-external: prevent dowloading during compile phase |
1031 |
# --disable-gnome-vfs: old gnome virtual fs support |
1032 |
# --disable-kdeab: kde3 adressbook |
1033 |
# --disable-kde: kde3 support |
1034 |
# --disable-ldap: ldap requires internal mozilla stuff, same like mozab |
1035 |
# --disable-mozilla: disable mozilla build that is used for adresbook, not |
1036 |
# affecting the nsplugin that is always ON |
1037 |
# --disable-pch: precompiled headers cause build crashes |
1038 |
# --disable-rpath: relative runtime path is not desired |
1039 |
# --disable-systray: quickstarter does not actually work at all so do not |
1040 |
# promote it |
1041 |
# --disable-zenity: disable build icon |
1042 |
# --enable-extension-integration: enable any extension integration support |
1043 |
# --with-{max-jobs,num-cpus}: ensuring parallel building |
1044 |
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
1045 |
# --without-stlport: disable deprecated extensions framework |
1046 |
# --disable-ext-report-builder: too much java packages pulled in |
1047 |
econf \ |
1048 |
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \ |
1049 |
--with-system-headers \ |
1050 |
--with-system-libs \ |
1051 |
--with-system-jars \ |
1052 |
--with-system-dicts \ |
1053 |
--enable-graphite \ |
1054 |
--enable-cairo-canvas \ |
1055 |
--enable-largefile \ |
1056 |
--enable-mergelibs \ |
1057 |
--enable-python=system \ |
1058 |
--enable-randr \ |
1059 |
--enable-randr-link \ |
1060 |
--enable-release-build \ |
1061 |
--enable-unix-qstart-libpng \ |
1062 |
--enable-xmlsec \ |
1063 |
--disable-ccache \ |
1064 |
--disable-crashdump \ |
1065 |
--disable-dependency-tracking \ |
1066 |
--disable-epm \ |
1067 |
--disable-fetch-external \ |
1068 |
--disable-gnome-vfs \ |
1069 |
--disable-ext-report-builder \ |
1070 |
--disable-kdeab \ |
1071 |
--disable-kde \ |
1072 |
--disable-ldap \ |
1073 |
--disable-mozilla \ |
1074 |
--disable-nsplugin \ |
1075 |
--disable-online-update \ |
1076 |
--disable-pch \ |
1077 |
--disable-rpath \ |
1078 |
--disable-systray \ |
1079 |
--disable-zenity \ |
1080 |
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ |
1081 |
--with-build-version="Gentoo official package" \ |
1082 |
--enable-extension-integration \ |
1083 |
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
1084 |
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
1085 |
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
1086 |
--with-external-tar="${DISTDIR}" \ |
1087 |
--with-lang="" \ |
1088 |
--with-max-jobs=${jbs} \ |
1089 |
--with-num-cpus=${jbs} \ |
1090 |
--with-unix-wrapper=libreoffice \ |
1091 |
--with-vendor="Gentoo Foundation" \ |
1092 |
--with-x \ |
1093 |
--without-afms \ |
1094 |
--without-fonts \ |
1095 |
--without-myspell-dicts \ |
1096 |
--without-stlport \ |
1097 |
--without-system-mozilla \ |
1098 |
--without-help \ |
1099 |
--with-helppack-integration \ |
1100 |
--without-sun-templates \ |
1101 |
--disable-gtk3 \ |
1102 |
$(use_enable binfilter) \ |
1103 |
$(use_enable cups) \ |
1104 |
$(use_enable dbus) \ |
1105 |
$(use_enable eds evolution2) \ |
1106 |
$(use_enable gnome gconf) \ |
1107 |
$(use_enable gnome gio) \ |
1108 |
$(use_enable gnome lockdown) \ |
1109 |
$(use_enable gstreamer) \ |
1110 |
$(use_enable gtk) \ |
1111 |
$(use_enable kde kde4) \ |
1112 |
$(use_enable mysql ext-mysql-connector) \ |
1113 |
$(use_enable odk) \ |
1114 |
$(use_enable opengl) \ |
1115 |
$(use_enable postgres postgresql-sdbc) \ |
1116 |
$(use_enable svg librsvg system) \ |
1117 |
$(use_enable test linkoo) \ |
1118 |
$(use_enable vba) \ |
1119 |
$(use_enable webdav neon) \ |
1120 |
$(use_with java) \ |
1121 |
$(use_with mysql system-mysql-cppconn) \ |
1122 |
$(use_with odk doxygen) \ |
1123 |
${internal_libs} \ |
1124 |
${java_opts} \ |
1125 |
${ext_opts} |
1126 |
} |
1127 |
|
1128 |
src_compile() { |
1129 |
# hack for offlinehelp, this needs fixing upstream at some point |
1130 |
# it is broken because we send --without-help |
1131 |
# https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
1132 |
( |
1133 |
source "${S}/config_host.mk" 2&> /dev/null |
1134 |
|
1135 |
local path="${SOLARVER}/${INPATH}/res/img" |
1136 |
mkdir -p "${path}" || die |
1137 |
|
1138 |
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\"" |
1139 |
perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
1140 |
-dir=icon-themes/galaxy/res/helpimg \ |
1141 |
> "${path}/helpimg.ilst" |
1142 |
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug." |
1143 |
) |
1144 |
|
1145 |
# this is not a proper make script |
1146 |
make build || die |
1147 |
} |
1148 |
|
1149 |
src_test() { |
1150 |
make unitcheck || die |
1151 |
make slowcheck || die |
1152 |
} |
1153 |
|
1154 |
src_install() { |
1155 |
# This is not Makefile so no buildserver |
1156 |
make DESTDIR="${D}" distro-pack-install -o build -o check || die |
1157 |
|
1158 |
# Fix bash completion placement |
1159 |
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN} |
1160 |
rm -rf "${ED}"/etc/ |
1161 |
|
1162 |
if use branding; then |
1163 |
insinto /usr/$(get_libdir)/${PN}/program |
1164 |
newins "${WORKDIR}/branding-sofficerc" sofficerc |
1165 |
fi |
1166 |
|
1167 |
# Hack for offlinehelp, this needs fixing upstream at some point. |
1168 |
# It is broken because we send --without-help |
1169 |
# https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
1170 |
insinto /usr/$(get_libdir)/libreoffice/help |
1171 |
doins xmlhelp/util/*.xsl |
1172 |
|
1173 |
# Remove desktop files for support to old installs that can't parse mime |
1174 |
rm -rf "${ED}"/usr/share/mimelnk/ |
1175 |
} |
1176 |
|
1177 |
pkg_preinst() { |
1178 |
# Cache updates - all handled by kde eclass for all environments |
1179 |
kde4-base_pkg_preinst |
1180 |
} |
1181 |
|
1182 |
pkg_postinst() { |
1183 |
kde4-base_pkg_postinst |
1184 |
|
1185 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin |
1186 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin |
1187 |
|
1188 |
use java || \ |
1189 |
ewarn 'If you plan to use lbase aplication you should enable java or you will get various crashes.' |
1190 |
} |
1191 |
|
1192 |
pkg_postrm() { |
1193 |
kde4-base_pkg_postrm |
1194 |
} |