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