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