1 |
scarabeus 12/08/31 14:08:52 |
2 |
|
3 |
Modified: libreoffice-3.5.6.2.ebuild ChangeLog |
4 |
Added: libreoffice-3.6.1.2.ebuild |
5 |
Removed: libreoffice-3.5.5.3.ebuild |
6 |
libreoffice-3.6.0.4.ebuild |
7 |
libreoffice-3.5.9999.ebuild |
8 |
Log: |
9 |
Version bump to 3.6.1. Drop older. Stabilise 3.5.6 on amd64 x86 and ppc. Remove live 3.5 branch ebuild. |
10 |
|
11 |
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64) |
12 |
|
13 |
Revision Changes Path |
14 |
1.3 app-office/libreoffice/libreoffice-3.5.6.2.ebuild |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.6.2.ebuild?rev=1.3&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.6.2.ebuild?rev=1.3&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.6.2.ebuild?r1=1.2&r2=1.3 |
19 |
|
20 |
Index: libreoffice-3.5.6.2.ebuild |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.6.2.ebuild,v |
23 |
retrieving revision 1.2 |
24 |
retrieving revision 1.3 |
25 |
diff -u -r1.2 -r1.3 |
26 |
--- libreoffice-3.5.6.2.ebuild 21 Aug 2012 10:17:38 -0000 1.2 |
27 |
+++ libreoffice-3.5.6.2.ebuild 31 Aug 2012 14:08:51 -0000 1.3 |
28 |
@@ -1,6 +1,6 @@ |
29 |
# Copyright 1999-2012 Gentoo Foundation |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.6.2.ebuild,v 1.2 2012/08/21 10:17:38 scarabeus Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.6.2.ebuild,v 1.3 2012/08/31 14:08:51 scarabeus Exp $ |
33 |
|
34 |
EAPI=4 |
35 |
|
36 |
@@ -75,7 +75,7 @@ |
37 |
+vba +webdav +xmlsec" |
38 |
LICENSE="LGPL-3" |
39 |
SLOT="0" |
40 |
-[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
41 |
+[[ ${PV} == *9999* ]] || KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" |
42 |
|
43 |
NSS_DEPEND=" |
44 |
>=dev-libs/nspr-4.8.8 |
45 |
|
46 |
|
47 |
|
48 |
1.366 app-office/libreoffice/ChangeLog |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.366&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.366&content-type=text/plain |
52 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?r1=1.365&r2=1.366 |
53 |
|
54 |
Index: ChangeLog |
55 |
=================================================================== |
56 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v |
57 |
retrieving revision 1.365 |
58 |
retrieving revision 1.366 |
59 |
diff -u -r1.365 -r1.366 |
60 |
--- ChangeLog 25 Aug 2012 08:43:24 -0000 1.365 |
61 |
+++ ChangeLog 31 Aug 2012 14:08:51 -0000 1.366 |
62 |
@@ -1,6 +1,16 @@ |
63 |
# ChangeLog for app-office/libreoffice |
64 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
65 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.365 2012/08/25 08:43:24 scarabeus Exp $ |
66 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.366 2012/08/31 14:08:51 scarabeus Exp $ |
67 |
+ |
68 |
+*libreoffice-3.6.1.2 (31 Aug 2012) |
69 |
+ |
70 |
+ 31 Aug 2012; Tomáš Chvátal <scarabeus@g.o> +libreoffice-3.6.1.2.ebuild, |
71 |
+ -files/libreoffice-3.6.0-kde-fpicker.patch, |
72 |
+ -files/libreoffice-3.6.0-mysql-as-needed.patch, -libreoffice-3.5.5.3.ebuild, |
73 |
+ -libreoffice-3.5.9999.ebuild, -libreoffice-3.6.0.4.ebuild, |
74 |
+ libreoffice-3.5.6.2.ebuild: |
75 |
+ Version bump to 3.6.1. Drop older. Stabilise 3.5.6 on amd64 x86 and ppc. |
76 |
+ Remove live 3.5 branch ebuild. |
77 |
|
78 |
25 Aug 2012; Tomáš Chvátal <scarabeus@g.o> libreoffice-3.6.9999.ebuild, |
79 |
libreoffice-9999-r2.ebuild: |
80 |
|
81 |
|
82 |
|
83 |
1.1 app-office/libreoffice/libreoffice-3.6.1.2.ebuild |
84 |
|
85 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.6.1.2.ebuild?rev=1.1&view=markup |
86 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.6.1.2.ebuild?rev=1.1&content-type=text/plain |
87 |
|
88 |
Index: libreoffice-3.6.1.2.ebuild |
89 |
=================================================================== |
90 |
# Copyright 1999-2012 Gentoo Foundation |
91 |
# Distributed under the terms of the GNU General Public License v2 |
92 |
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.6.1.2.ebuild,v 1.1 2012/08/31 14:08:51 scarabeus Exp $ |
93 |
|
94 |
EAPI=4 |
95 |
|
96 |
KDE_REQUIRED="optional" |
97 |
QT_MINIMAL="4.7.4" |
98 |
KDE_SCM="git" |
99 |
CMAKE_REQUIRED="never" |
100 |
|
101 |
PYTHON_DEPEND="2" |
102 |
PYTHON_USE_WITH="threads,xml" |
103 |
|
104 |
# experimental ; release ; old |
105 |
# Usually the tarballs are moved a lot so this should make |
106 |
# everyone happy. |
107 |
DEV_URI=" |
108 |
http://dev-builds.libreoffice.org/pre-releases/src |
109 |
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/ |
110 |
http://download.documentfoundation.org/libreoffice/old/${PV}/ |
111 |
" |
112 |
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice" |
113 |
ADDONS_URI="http://dev-www.libreoffice.org/src/" |
114 |
|
115 |
BRANDING="${PN}-branding-gentoo-0.6.tar.xz" |
116 |
# PATCHSET="${P}-patchset-01.tar.xz" |
117 |
|
118 |
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2" |
119 |
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} |
120 |
unset SCM_ECLASS |
121 |
|
122 |
DESCRIPTION="LibreOffice, a full office productivity suite." |
123 |
HOMEPAGE="http://www.libreoffice.org" |
124 |
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
125 |
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" |
126 |
|
127 |
# Split modules following git/tarballs |
128 |
# Core MUST be first! |
129 |
# Help is used for the image generator |
130 |
MODULES="core binfilter help" |
131 |
# Only release has the tarballs |
132 |
if [[ ${PV} != *9999* ]]; then |
133 |
for i in ${DEV_URI}; do |
134 |
for mod in ${MODULES}; do |
135 |
if [[ ${mod} == binfilter ]]; then |
136 |
SRC_URI+=" binfilter? ( ${i}/${PN}-${mod}-${PV}.tar.xz )" |
137 |
else |
138 |
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz" |
139 |
fi |
140 |
done |
141 |
unset mod |
142 |
done |
143 |
unset i |
144 |
fi |
145 |
unset DEV_URI |
146 |
|
147 |
# Really required addons |
148 |
# These are bundles that can't be removed for now due to huge patchsets. |
149 |
# If you want them gone, patches are welcome. |
150 |
ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz" |
151 |
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code |
152 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
153 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip )" |
154 |
ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it? |
155 |
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all |
156 |
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino |
157 |
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable |
158 |
SRC_URI+=" ${ADDONS_SRC}" |
159 |
|
160 |
unset ADDONS_URI |
161 |
unset EXT_URI |
162 |
unset ADDONS_SRC |
163 |
|
164 |
IUSE="binfilter binfilterdebug +branding +cups dbus eds gnome gstreamer +gtk |
165 |
jemalloc kde mysql odk opengl postgres svg test +vba +webdav" |
166 |
|
167 |
LO_EXTS="nlpsolver pdfimport presenter-console presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher" |
168 |
# Unpackaged separate extensions: |
169 |
# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf? |
170 |
# hunart: only on ooo extensions -> fubared download path somewhere on sf |
171 |
# numbertext, typo, validator, watch-window: ^^ |
172 |
# oooblogger: no homepage or anything |
173 |
# Extensions that need extra work: |
174 |
# report-builder: missing java packages |
175 |
for lo_xt in ${LO_EXTS}; do |
176 |
IUSE+=" libreoffice_extensions_${lo_xt}" |
177 |
done |
178 |
unset lo_xt |
179 |
|
180 |
LICENSE="|| ( LGPL-3 MPL-1.1 )" |
181 |
SLOT="0" |
182 |
[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
183 |
|
184 |
COMMON_DEPEND=" |
185 |
app-arch/zip |
186 |
app-arch/unzip |
187 |
>=app-text/hunspell-1.3.2-r3 |
188 |
app-text/mythes |
189 |
>=app-text/libexttextcat-3.2 |
190 |
app-text/libwpd:0.9[tools] |
191 |
app-text/libwpg:0.2 |
192 |
>=app-text/libwps-0.2.2 |
193 |
>=dev-cpp/clucene-2.3.3.4-r2 |
194 |
>=dev-cpp/libcmis-0.2 |
195 |
dev-db/unixODBC |
196 |
dev-libs/expat |
197 |
>=dev-libs/glib-2.28 |
198 |
>=dev-libs/hyphen-2.7.1 |
199 |
>=dev-libs/icu-4.8.1.1 |
200 |
>=dev-libs/nspr-4.8.8 |
201 |
>=dev-libs/nss-3.12.9 |
202 |
>=dev-lang/perl-5.0 |
203 |
>=dev-libs/openssl-1.0.0d |
204 |
>=dev-libs/redland-1.0.14[ssl] |
205 |
media-gfx/graphite2 |
206 |
>=media-libs/fontconfig-2.8.0 |
207 |
media-libs/freetype:2 |
208 |
media-libs/lcms:2 |
209 |
>=media-libs/libpng-1.4 |
210 |
>=media-libs/libcdr-0.0.5 |
211 |
media-libs/libvisio |
212 |
>=net-misc/curl-7.21.4 |
213 |
sci-mathematics/lpsolve |
214 |
>=sys-libs/db-4.8 |
215 |
virtual/jpeg |
216 |
>=x11-libs/cairo-1.10.0[X] |
217 |
x11-libs/libXinerama |
218 |
x11-libs/libXrandr |
219 |
x11-libs/libXrender |
220 |
cups? ( net-print/cups ) |
221 |
dbus? ( >=dev-libs/dbus-glib-0.92 ) |
222 |
eds? ( gnome-extra/evolution-data-server ) |
223 |
gnome? ( gnome-base/gconf:2 ) |
224 |
gtk? ( |
225 |
x11-libs/gdk-pixbuf[X] |
226 |
>=x11-libs/gtk+-2.24:2 |
227 |
) |
228 |
gstreamer? ( |
229 |
>=media-libs/gstreamer-0.10 |
230 |
>=media-libs/gst-plugins-base-0.10 |
231 |
) |
232 |
jemalloc? ( dev-libs/jemalloc ) |
233 |
libreoffice_extensions_pdfimport? ( >=app-text/poppler-0.16[xpdf-headers(+),cxx] ) |
234 |
libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 ) |
235 |
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
236 |
libreoffice_extensions_wiki-publisher? ( |
237 |
dev-java/commons-codec:0 |
238 |
dev-java/commons-httpclient:3 |
239 |
dev-java/commons-lang:2.1 |
240 |
dev-java/commons-logging:0 |
241 |
dev-java/tomcat-servlet-api:3.0 |
242 |
) |
243 |
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) |
244 |
opengl? ( virtual/opengl ) |
245 |
postgres? ( >=dev-db/postgresql-base-9.0[kerberos] ) |
246 |
svg? ( gnome-base/librsvg ) |
247 |
webdav? ( net-libs/neon ) |
248 |
" |
249 |
|
250 |
RDEPEND="${COMMON_DEPEND} |
251 |
!app-office/libreoffice-bin |
252 |
!app-office/libreoffice-bin-debug |
253 |
!<app-openoffice/openoffice-bin-3.4.0-r1 |
254 |
!app-office/openoffice |
255 |
media-fonts/libertine-ttf |
256 |
media-fonts/liberation-fonts |
257 |
media-fonts/urw-fonts |
258 |
java? ( >=virtual/jre-1.6 ) |
259 |
" |
260 |
|
261 |
PDEPEND=" |
262 |
=app-office/libreoffice-l10n-3.6* |
263 |
" |
264 |
|
265 |
# FIXME: cppunit should be moved to test conditional |
266 |
# after everything upstream is under gbuild |
267 |
# as dmake execute tests right away |
268 |
DEPEND="${COMMON_DEPEND} |
269 |
>=dev-libs/boost-1.46 |
270 |
>=dev-libs/libxml2-2.7.8 |
271 |
dev-libs/libxslt |
272 |
dev-perl/Archive-Zip |
273 |
dev-util/cppunit |
274 |
>=dev-util/gperf-3 |
275 |
dev-util/intltool |
276 |
dev-util/mdds |
277 |
virtual/pkgconfig |
278 |
net-misc/npapi-sdk |
279 |
>=sys-apps/findutils-4.4.2 |
280 |
sys-devel/bison |
281 |
sys-apps/coreutils |
282 |
sys-devel/flex |
283 |
sys-devel/gettext |
284 |
>=sys-devel/make-3.82 |
285 |
sys-libs/zlib |
286 |
x11-libs/libXt |
287 |
x11-libs/libXtst |
288 |
x11-proto/randrproto |
289 |
x11-proto/xextproto |
290 |
x11-proto/xineramaproto |
291 |
x11-proto/xproto |
292 |
java? ( |
293 |
>=virtual/jdk-1.6 |
294 |
>=dev-java/ant-core-1.7 |
295 |
test? ( dev-java/junit:4 ) |
296 |
) |
297 |
odk? ( app-doc/doxygen ) |
298 |
test? ( dev-util/cppunit ) |
299 |
" |
300 |
|
301 |
PATCHES=( |
302 |
# not upstreamable stuff |
303 |
"${FILESDIR}/${PN}-3.6-system-pyuno.patch" |
304 |
) |
305 |
|
306 |
REQUIRED_USE=" |
307 |
gnome? ( gtk ) |
308 |
eds? ( gnome ) |
309 |
libreoffice_extensions_nlpsolver? ( java ) |
310 |
libreoffice_extensions_scripting-beanshell? ( java ) |
311 |
libreoffice_extensions_scripting-javascript? ( java ) |
312 |
libreoffice_extensions_wiki-publisher? ( java ) |
313 |
" |
314 |
|
315 |
RESTRICT="test" |
316 |
|
317 |
S="${WORKDIR}/${PN}-core-${PV}" |
318 |
|
319 |
CHECKREQS_MEMORY="512M" |
320 |
CHECKREQS_DISK_BUILD="6G" |
321 |
|
322 |
pkg_pretend() { |
323 |
local pgslot |
324 |
|
325 |
if [[ ${MERGE_TYPE} != binary ]]; then |
326 |
check-reqs_pkg_pretend |
327 |
|
328 |
if [[ $(gcc-major-version) -lt 4 ]] || \ |
329 |
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 5 ]] ) \ |
330 |
; then |
331 |
eerror "Compilation with gcc older than 4.5 is not supported" |
332 |
die "Too old gcc found." |
333 |
fi |
334 |
fi |
335 |
|
336 |
# ensure pg version |
337 |
if use postgres; then |
338 |
pgslot=$(postgresql-config show) |
339 |
if [[ ${pgslot//.} < 90 ]] ; then |
340 |
eerror "PostgreSQL slot must be set to 9.0 or higher." |
341 |
eerror " postgresql-config set 9.0" |
342 |
die "PostgreSQL slot is not set to 9.0 or higher." |
343 |
fi |
344 |
fi |
345 |
} |
346 |
|
347 |
pkg_setup() { |
348 |
java-pkg-opt-2_pkg_setup |
349 |
kde4-base_pkg_setup |
350 |
|
351 |
python_set_active_version 2 |
352 |
python_pkg_setup |
353 |
|
354 |
[[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup |
355 |
} |
356 |
|
357 |
src_unpack() { |
358 |
local mod dest tmplfile tmplname mypv |
359 |
|
360 |
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET} |
361 |
if use branding; then |
362 |
unpack "${BRANDING}" |
363 |
fi |
364 |
|
365 |
if [[ ${PV} != *9999* ]]; then |
366 |
for mod in ${MODULES}; do |
367 |
if [[ ${mod} == binfilter ]] && ! use binfilter; then |
368 |
continue |
369 |
fi |
370 |
unpack "${PN}-${mod}-${PV}.tar.xz" |
371 |
if [[ ${mod} != core ]]; then |
372 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
373 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
374 |
fi |
375 |
done |
376 |
else |
377 |
for mod in ${MODULES}; do |
378 |
if [[ ${mod} == binfilter ]] && ! use binfilter; then |
379 |
continue |
380 |
fi |
381 |
mypv=${PV/.9999} |
382 |
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" |
383 |
EGIT_PROJECT="${PN}/${mod}" |
384 |
EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}" |
385 |
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" |
386 |
EGIT_NOUNPACK="true" |
387 |
git-2_src_unpack |
388 |
if [[ ${mod} != core ]]; then |
389 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
390 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
391 |
fi |
392 |
done |
393 |
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH |
394 |
fi |
395 |
} |
396 |
|
397 |
src_prepare() { |
398 |
# optimization flags |
399 |
export ARCH_FLAGS="${CXXFLAGS}" |
400 |
export LINKFLAGSOPTIMIZE="${LDFLAGS}" |
401 |
export GMAKE_OPTIONS="${MAKEOPTS}" |
402 |
|
403 |
# patchset |
404 |
if [[ -n ${PATCHSET} ]]; then |
405 |
EPATCH_FORCE="yes" \ |
406 |
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \ |
407 |
EPATCH_SUFFIX="patch" \ |
408 |
epatch |
409 |
fi |
410 |
|
411 |
base_src_prepare |
412 |
|
413 |
# please no debug in binfilter, it blows up things insanely |
414 |
if use binfilter && ! use binfilterdebug ; then |
415 |
for name in $(find "${S}/binfilter" -name makefile.mk) ; do |
416 |
sed -i -e '1i\CFLAGS+= -g0' $name || die |
417 |
done |
418 |
fi |
419 |
|
420 |
AT_M4DIR="m4" |
421 |
eautoreconf |
422 |
# hack in the autogen.sh |
423 |
touch autogen.lastrun |
424 |
|
425 |
# system pyuno mess |
426 |
sed \ |
427 |
-e "s:%eprefix%:${EPREFIX}:g" \ |
428 |
-e "s:%libdir%:$(get_libdir):g" \ |
429 |
-i pyuno/source/module/uno.py \ |
430 |
-i scripting/source/pyprov/officehelper.py || die |
431 |
} |
432 |
|
433 |
src_configure() { |
434 |
local java_opts |
435 |
local internal_libs |
436 |
local lo_ext |
437 |
local ext_opts |
438 |
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") |
439 |
|
440 |
# recheck that there is some value in jobs |
441 |
[[ -z ${jbs} ]] && jbs="1" |
442 |
|
443 |
# sane: just sane.h header that is used for scan in writer, not |
444 |
# linked or anything else, worthless to depend on |
445 |
# vigra: just uses templates from there |
446 |
# it is serious pain in the ass for packaging |
447 |
# should be replaced by boost::gil if someone interested |
448 |
internal_libs+=" |
449 |
--without-system-sane |
450 |
--without-system-vigra |
451 |
" |
452 |
|
453 |
# libreoffice extensions handling |
454 |
for lo_xt in ${LO_EXTS}; do |
455 |
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})" |
456 |
done |
457 |
|
458 |
if use java; then |
459 |
# hsqldb: system one is too new |
460 |
# saxon: system one does not work properly |
461 |
java_opts=" |
462 |
--without-system-hsqldb |
463 |
--without-system-saxon |
464 |
--with-ant-home="${ANT_HOME}" |
465 |
--with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
466 |
--with-java-target-version=$(java-pkg_get-target) |
467 |
--with-jvm-path="${EPREFIX}/usr/$(get_libdir)/" |
468 |
" |
469 |
|
470 |
use libreoffice_extensions_scripting-beanshell && \ |
471 |
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" |
472 |
|
473 |
use libreoffice_extensions_scripting-javascript && \ |
474 |
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)" |
475 |
|
476 |
if use libreoffice_extensions_wiki-publisher; then |
477 |
java_opts+=" |
478 |
--with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar) |
479 |
--with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar) |
480 |
--with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar) |
481 |
--with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar) |
482 |
--with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar) |
483 |
" |
484 |
fi |
485 |
|
486 |
if use test; then |
487 |
java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)" |
488 |
else |
489 |
java_opts+=" --without-junit" |
490 |
fi |
491 |
fi |
492 |
|
493 |
if use branding; then |
494 |
# hack... |
495 |
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die |
496 |
fi |
497 |
|
498 |
# it's not entirely clear to me where the failure is, boost libreoffice gcc come to my mind |
499 |
append-cppflags -DBOOST_NO_0X_HDR_TYPEINDEX |
500 |
|
501 |
# system headers/libs/...: enforce using system packages |
502 |
# --enable-unix-qstart-libpng: use libpng splashscreen that is faster |
503 |
# --enable-cairo: ensure that cairo is always required |
504 |
# --enable-*-link: link to the library rather than just dlopen on runtime |
505 |
# --enable-release-build: build the libreoffice as release |
506 |
# --disable-fetch-external: prevent dowloading during compile phase |
507 |
# --disable-gnome-vfs: old gnome virtual fs support |
508 |
# --disable-kdeab: kde3 adressbook |
509 |
# --disable-kde: kde3 support |
510 |
# --disable-ldap: ldap requires internal mozilla stuff, same like mozab |
511 |
# --disable-mozilla: disable mozilla build that is used for adresbook, not |
512 |
# affecting the nsplugin that is always ON |
513 |
# --disable-pch: precompiled headers cause build crashes |
514 |
# --disable-rpath: relative runtime path is not desired |
515 |
# --disable-systray: quickstarter does not actually work at all so do not |
516 |
# promote it |
517 |
# --disable-zenity: disable build icon |
518 |
# --enable-extension-integration: enable any extension integration support |
519 |
# --with-{max-jobs,num-cpus}: ensuring parallel building |
520 |
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
521 |
# --without-stlport: disable deprecated extensions framework |
522 |
# --disable-ext-report-builder: too much java packages pulled in |
523 |
econf \ |
524 |
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \ |
525 |
--with-system-headers \ |
526 |
--with-system-libs \ |
527 |
--with-system-jars \ |
528 |
--with-system-dicts \ |
529 |
--enable-graphite \ |
530 |
--enable-cairo-canvas \ |
531 |
--enable-largefile \ |
532 |
--disable-mergelibs \ |
533 |
--enable-python=system \ |
534 |
--enable-randr \ |
535 |
--enable-randr-link \ |
536 |
--enable-release-build \ |
537 |
--enable-unix-qstart-libpng \ |
538 |
--enable-xmlsec \ |
539 |
--disable-ccache \ |
540 |
--disable-crashdump \ |
541 |
--disable-dependency-tracking \ |
542 |
--disable-epm \ |
543 |
--disable-fetch-external \ |
544 |
--disable-gnome-vfs \ |
545 |
--disable-ext-report-builder \ |
546 |
--disable-kdeab \ |
547 |
--disable-kde \ |
548 |
--disable-ldap \ |
549 |
--disable-mozilla \ |
550 |
--disable-nsplugin \ |
551 |
--disable-online-update \ |
552 |
--disable-pch \ |
553 |
--disable-rpath \ |
554 |
--disable-systray \ |
555 |
--disable-zenity \ |
556 |
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ |
557 |
--with-build-version="Gentoo official package" \ |
558 |
--enable-extension-integration \ |
559 |
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
560 |
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
561 |
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
562 |
--with-external-tar="${DISTDIR}" \ |
563 |
--with-lang="" \ |
564 |
--with-max-jobs=${jbs} \ |
565 |
--with-num-cpus=${jbs} \ |
566 |
--with-unix-wrapper=libreoffice \ |
567 |
--with-vendor="Gentoo Foundation" \ |
568 |
--with-x \ |
569 |
--without-afms \ |
570 |
--without-fonts \ |
571 |
--without-myspell-dicts \ |
572 |
--without-stlport \ |
573 |
--without-system-mozilla \ |
574 |
--without-help \ |
575 |
--with-helppack-integration \ |
576 |
--without-sun-templates \ |
577 |
--disable-gtk3 \ |
578 |
$(use_enable binfilter) \ |
579 |
$(use_enable cups) \ |
580 |
$(use_enable dbus) \ |
581 |
$(use_enable eds evolution2) \ |
582 |
$(use_enable gnome gconf) \ |
583 |
$(use_enable gnome gio) \ |
584 |
$(use_enable gnome lockdown) \ |
585 |
$(use_enable gstreamer) \ |
586 |
$(use_enable gtk) \ |
587 |
$(use_enable kde kde4) \ |
588 |
$(use_enable mysql ext-mysql-connector) \ |
589 |
$(use_enable odk) \ |
590 |
$(use_enable opengl) \ |
591 |
$(use_enable postgres postgresql-sdbc) \ |
592 |
$(use_enable svg librsvg system) \ |
593 |
$(use_enable test linkoo) \ |
594 |
$(use_enable vba) \ |
595 |
$(use_enable webdav neon) \ |
596 |
$(use_with java) \ |
597 |
$(use_with mysql system-mysql-cppconn) \ |
598 |
$(use_with odk doxygen) \ |
599 |
${internal_libs} \ |
600 |
${java_opts} \ |
601 |
${ext_opts} |
602 |
} |
603 |
|
604 |
src_compile() { |
605 |
# hack for offlinehelp, this needs fixing upstream at some point |
606 |
# it is broken because we send --without-help |
607 |
# https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
608 |
( |
609 |
source "${S}/config_host.mk" 2&> /dev/null |
610 |
|
611 |
local path="${SOLARVER}/${INPATH}/res/img" |
612 |
mkdir -p "${path}" || die |
613 |
|
614 |
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\"" |
615 |
perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
616 |
-dir=icon-themes/galaxy/res/helpimg \ |
617 |
> "${path}/helpimg.ilst" |
618 |
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug." |
619 |
) |
620 |
|
621 |
# this is not a proper make script |
622 |
make build || die |
623 |
} |
624 |
|
625 |
src_test() { |
626 |
make unitcheck || die |
627 |
make slowcheck || die |
628 |
} |
629 |
|
630 |
src_install() { |
631 |
# This is not Makefile so no buildserver |
632 |
make DESTDIR="${D}" distro-pack-install -o build -o check || die |
633 |
|
634 |
# Fix bash completion placement |
635 |
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN} |
636 |
rm -rf "${ED}"/etc/ |
637 |
|
638 |
if use branding; then |
639 |
insinto /usr/$(get_libdir)/${PN}/program |
640 |
newins "${WORKDIR}/branding-sofficerc" sofficerc |
641 |
fi |
642 |
|
643 |
# Hack for offlinehelp, this needs fixing upstream at some point. |
644 |
# It is broken because we send --without-help |
645 |
# https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
646 |
insinto /usr/$(get_libdir)/libreoffice/help |
647 |
doins xmlhelp/util/*.xsl |
648 |
|
649 |
# Remove desktop files for support to old installs that can't parse mime |
650 |
rm -rf "${ED}"/usr/share/mimelnk/ |
651 |
} |
652 |
|
653 |
pkg_preinst() { |
654 |
# Cache updates - all handled by kde eclass for all environments |
655 |
kde4-base_pkg_preinst |
656 |
} |
657 |
|
658 |
pkg_postinst() { |
659 |
kde4-base_pkg_postinst |
660 |
|
661 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin |
662 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin |
663 |
|
664 |
use java || \ |
665 |
ewarn 'If you plan to use lbase aplication you should enable java or you will get various crashes.' |
666 |
} |
667 |
|
668 |
pkg_postrm() { |
669 |
kde4-base_pkg_postrm |
670 |
} |