1 |
scarabeus 11/11/02 19:18:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libreoffice-3.4.4.2.ebuild |
5 |
Removed: libreoffice-3.4.4.1.ebuild |
6 |
Log: |
7 |
RC2 for lo 3.4.4 |
8 |
|
9 |
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.190 app-office/libreoffice/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.190&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.190&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?r1=1.189&r2=1.190 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v |
21 |
retrieving revision 1.189 |
22 |
retrieving revision 1.190 |
23 |
diff -u -r1.189 -r1.190 |
24 |
--- ChangeLog 2 Nov 2011 18:27:01 -0000 1.189 |
25 |
+++ ChangeLog 2 Nov 2011 19:18:36 -0000 1.190 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for app-office/libreoffice |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.189 2011/11/02 18:27:01 scarabeus Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.190 2011/11/02 19:18:36 scarabeus Exp $ |
31 |
+ |
32 |
+*libreoffice-3.4.4.2 (02 Nov 2011) |
33 |
+ |
34 |
+ 02 Nov 2011; Tomáš Chvátal <scarabeus@g.o> |
35 |
+ -libreoffice-3.4.4.1.ebuild, +libreoffice-3.4.4.2.ebuild: |
36 |
+ RC2 for lo 3.4.4 |
37 |
|
38 |
02 Nov 2011; Tomáš Chvátal <scarabeus@g.o> |
39 |
libreoffice-9999-r1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-office/libreoffice/libreoffice-3.4.4.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.4.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.4.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: libreoffice-3.4.4.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.4.2.ebuild,v 1.1 2011/11/02 19:18:36 scarabeus Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
KDE_REQUIRED="optional" |
57 |
KDE_SCM="git" |
58 |
CMAKE_REQUIRED="never" |
59 |
|
60 |
PYTHON_DEPEND="2" |
61 |
PYTHON_USE_WITH="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 |
69 |
http://download.documentfoundation.org/libreoffice/old/src |
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.3.tar.xz" |
75 |
|
76 |
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2" |
77 |
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils prefix python multilib toolchain-funcs flag-o-matic nsplugins versionator ${SCM_ECLASS} |
78 |
unset SCM_ECLASS |
79 |
|
80 |
DESCRIPTION="LibreOffice, a full office productivity suite." |
81 |
HOMEPAGE="http://www.libreoffice.org" |
82 |
SRC_URI="branding? ( http://dev.gentooexperimental.org/~scarabeus/${BRANDING} )" |
83 |
|
84 |
# Bootstrap MUST be first! |
85 |
MODULES="bootstrap artwork base calc components extensions extras filters help |
86 |
impress libs-core libs-extern libs-extern-sys libs-gui postprocess sdk testing |
87 |
ure writer" |
88 |
# Only release has the tarballs |
89 |
if [[ ${PV} != *9999* ]]; then |
90 |
for i in ${DEV_URI}; do |
91 |
for mod in ${MODULES}; do |
92 |
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.bz2" |
93 |
done |
94 |
unset mod |
95 |
done |
96 |
unset i |
97 |
fi |
98 |
unset DEV_URI |
99 |
|
100 |
# addons |
101 |
# FIXME: actually review which one of these are used |
102 |
ADDONS_SRC+=" ${ADDONS_URI}/128cfc86ed5953e57fe0f5ae98b62c2e-libtextcat-2.2.tar.gz" |
103 |
ADDONS_SRC+=" ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip" |
104 |
ADDONS_SRC+=" ${ADDONS_URI}/bd30e9cf5523cdfc019b94f5e1d7fd19-cppunit-1.12.1.tar.gz" |
105 |
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" |
106 |
ADDONS_SRC+=" ${ADDONS_URI}/fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz" |
107 |
ADDONS_SRC+=" ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip" |
108 |
ADDONS_SRC+=" ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip" |
109 |
ADDONS_SRC+=" http://download.go-oo.org/extern/b4cae0700aa1c2aef7eb7f345365e6f1-translate-toolkit-1.8.1.tar.bz2" |
110 |
ADDONS_SRC+=" http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll" |
111 |
SRC_URI+=" ${ADDONS_SRC}" |
112 |
|
113 |
TDEPEND="${EXT_URI}/472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt" |
114 |
TDEPEND+=" linguas_de? ( ${EXT_URI}/53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt )" |
115 |
TDEPEND+=" linguas_en_GB? ( ${EXT_URI}/472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt )" |
116 |
TDEPEND+=" linguas_en_ZA? ( ${EXT_URI}/472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt )" |
117 |
TDEPEND+=" linguas_es? ( ${EXT_URI}/4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt )" |
118 |
TDEPEND+=" linguas_fr? ( ${EXT_URI}/a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt )" |
119 |
TDEPEND+=" linguas_hu? ( ${EXT_URI}/09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt )" |
120 |
TDEPEND+=" linguas_it? ( ${EXT_URI}/b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt )" |
121 |
SRC_URI+=" templates? ( ${TDEPEND} )" |
122 |
|
123 |
unset ADDONS_URI |
124 |
unset EXT_URI |
125 |
unset ADDONS_SRC |
126 |
|
127 |
IUSE="binfilter +branding custom-cflags dbus debug eds gnome graphite |
128 |
gstreamer gtk jemalloc kde ldap mysql nsplugin odk opengl pdfimport python |
129 |
templates test +vba webdav" |
130 |
LICENSE="LGPL-3" |
131 |
SLOT="0" |
132 |
[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
133 |
|
134 |
# lingua for templates |
135 |
LANGUAGES="de en_GB en_ZA es fr hu it" |
136 |
for X in ${LANGUAGES} ; do |
137 |
IUSE+=" linguas_${X}" |
138 |
done |
139 |
unset X |
140 |
|
141 |
COMMON_DEPEND=" |
142 |
app-arch/zip |
143 |
app-arch/unzip |
144 |
>=app-text/hunspell-1.3.2-r3 |
145 |
app-text/mythes |
146 |
app-text/libwpd:0.9[tools] |
147 |
app-text/libwpg:0.2 |
148 |
>=app-text/libwps-0.2.2 |
149 |
dev-db/unixODBC |
150 |
dev-libs/expat |
151 |
>=dev-libs/glib-2.28 |
152 |
>=dev-libs/hyphen-2.7.1 |
153 |
>=dev-libs/icu-4.8.1-r1 |
154 |
>=dev-lang/perl-5.0 |
155 |
>=dev-libs/openssl-1.0.0d |
156 |
>=dev-libs/redland-1.0.14[ssl] |
157 |
media-libs/freetype:2 |
158 |
>=media-libs/fontconfig-2.8.0 |
159 |
>=media-libs/vigra-1.7 |
160 |
>=media-libs/libpng-1.4 |
161 |
net-print/cups |
162 |
sci-mathematics/lpsolve |
163 |
>=sys-libs/db-4.8 |
164 |
virtual/jpeg |
165 |
>=x11-libs/cairo-1.10.0 |
166 |
x11-libs/libXaw |
167 |
x11-libs/libXinerama |
168 |
x11-libs/libXrandr |
169 |
x11-libs/libXrender |
170 |
dbus? ( >=dev-libs/dbus-glib-0.92 ) |
171 |
eds? ( gnome-extra/evolution-data-server ) |
172 |
gnome? ( |
173 |
gnome-base/gconf:2 |
174 |
gnome-base/orbit:2 |
175 |
) |
176 |
gtk? ( >=x11-libs/gtk+-2.24:2 ) |
177 |
graphite? ( media-gfx/graphite2 ) |
178 |
gstreamer? ( |
179 |
>=media-libs/gstreamer-0.10 |
180 |
>=media-libs/gst-plugins-base-0.10 |
181 |
) |
182 |
java? ( |
183 |
>=dev-java/bsh-2.0_beta4 |
184 |
dev-java/lucene:2.9 |
185 |
dev-java/lucene-analyzers:2.3 |
186 |
dev-java/saxon:0 |
187 |
) |
188 |
jemalloc? ( dev-libs/jemalloc ) |
189 |
ldap? ( net-nds/openldap ) |
190 |
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) |
191 |
nsplugin? ( |
192 |
net-libs/xulrunner:1.9 |
193 |
>=dev-libs/nspr-4.8.8 |
194 |
>=dev-libs/nss-3.12.9 |
195 |
) |
196 |
opengl? ( virtual/opengl ) |
197 |
pdfimport? ( >=app-text/poppler-0.16[xpdf-headers] ) |
198 |
webdav? ( net-libs/neon ) |
199 |
" |
200 |
|
201 |
RDEPEND="${COMMON_DEPEND} |
202 |
!app-office/libreoffice-bin |
203 |
!app-office/openoffice-bin |
204 |
!app-office/openoffice |
205 |
java? ( >=virtual/jre-1.6 ) |
206 |
" |
207 |
|
208 |
PDEPEND=" |
209 |
>=app-office/libreoffice-l10n-$(get_version_component_range 1-2) |
210 |
" |
211 |
|
212 |
DEPEND="${COMMON_DEPEND} |
213 |
>=dev-libs/boost-1.46 |
214 |
>=dev-libs/libxml2-2.7.8 |
215 |
dev-libs/libxslt |
216 |
dev-perl/Archive-Zip |
217 |
>=dev-util/gperf-3 |
218 |
dev-util/intltool |
219 |
dev-util/mdds |
220 |
>=dev-util/pkgconfig-0.26 |
221 |
>=net-misc/curl-7.21.4 |
222 |
>=sys-apps/findutils-4.4.2 |
223 |
sys-devel/bison |
224 |
sys-apps/coreutils |
225 |
sys-devel/flex |
226 |
>=sys-devel/make-3.82 |
227 |
sys-libs/zlib |
228 |
x11-libs/libXtst |
229 |
x11-proto/randrproto |
230 |
x11-proto/xextproto |
231 |
x11-proto/xineramaproto |
232 |
x11-proto/xproto |
233 |
java? ( |
234 |
=virtual/jdk-1.6* |
235 |
>=dev-java/ant-core-1.7 |
236 |
test? ( dev-java/junit:4 ) |
237 |
) |
238 |
" |
239 |
|
240 |
PATCHES=( |
241 |
"${FILESDIR}/${PN}-3.3.1-neon_remove_SSPI_support.diff" |
242 |
"${FILESDIR}/${PN}-libdb5-fix-check.diff" |
243 |
"${FILESDIR}/${PN}-3.4.1-salfix.diff" |
244 |
"${FILESDIR}/sdext-presenter.diff" |
245 |
"${FILESDIR}/${PN}-svx.patch" |
246 |
"${FILESDIR}/${PN}-vbaobj-visibility-fix.patch" |
247 |
"${FILESDIR}/${PN}-solenv-build-crash.patch" |
248 |
"${FILESDIR}/${PN}-as-needed-gtk.patch" |
249 |
"${FILESDIR}/${PN}-translate-toolkit-parallel-solenv.patch" |
250 |
"${FILESDIR}/${PN}-gbuild-use-cxxflags.patch" |
251 |
"${FILESDIR}/${PN}-installed-files-permissions.patch" |
252 |
"${FILESDIR}/${PN}-check-for-avx.patch" |
253 |
"${FILESDIR}/${PN}-append-no-avx.patch" |
254 |
"${FILESDIR}/${PN}-32b-qt4-libdir.patch" |
255 |
"${FILESDIR}/${PN}-binfilter-as-needed.patch" |
256 |
"${FILESDIR}/${PN}-kill-cppunit.patch" |
257 |
"${FILESDIR}/${PN}-honor-strip.patch" |
258 |
"${FILESDIR}/${PN}-java.patch" |
259 |
) |
260 |
|
261 |
REQUIRED_USE=" |
262 |
|| ( gtk gnome kde ) |
263 |
gnome? ( gtk ) |
264 |
nsplugin? ( gtk ) |
265 |
" |
266 |
|
267 |
# Needs lots and lots of work and compiling |
268 |
RESTRICT="test" |
269 |
|
270 |
S="${WORKDIR}/${PN}-bootstrap-${PV}" |
271 |
|
272 |
pkg_pretend() { |
273 |
if [[ ${MERGE_TYPE} != binary ]]; then |
274 |
CHECKREQS_MEMORY="1G" |
275 |
use debug && CHECKREQS_DISK_BUILD="15G" || CHECKREQS_DISK_BUILD="9G" |
276 |
check-reqs_pkg_pretend |
277 |
|
278 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
279 |
eerror "Compilation with gcc older than 4.0 is not supported" |
280 |
die "Too old gcc found." |
281 |
fi |
282 |
fi |
283 |
} |
284 |
|
285 |
pkg_setup() { |
286 |
java-pkg-opt-2_pkg_setup |
287 |
kde4-base_pkg_setup |
288 |
|
289 |
python_set_active_version 2 |
290 |
python_pkg_setup |
291 |
|
292 |
if use custom-cflags; then |
293 |
ewarn "You are using custom CFLAGS, which is NOT supported and can cause" |
294 |
ewarn "all sorts of build and runtime errors." |
295 |
ewarn |
296 |
ewarn "Before reporting a bug, please make sure you rebuild and try with" |
297 |
ewarn "basic CFLAGS, otherwise the bug will not be accepted." |
298 |
ewarn |
299 |
fi |
300 |
|
301 |
if ! use java; then |
302 |
ewarn "You are building with java-support disabled, this results in some" |
303 |
ewarn "of the LibreOffice functionality being disabled." |
304 |
ewarn "If something you need does not work for you, rebuild with" |
305 |
ewarn "java in your USE-flags." |
306 |
ewarn |
307 |
ewarn "Some java libraries will be provided internally by libreoffice" |
308 |
ewarn "during the build. You should really reconsider enabling java" |
309 |
ewarn "use flag." |
310 |
ewarn |
311 |
fi |
312 |
|
313 |
if ! use gtk; then |
314 |
ewarn "If you want the LibreOffice systray quickstarter to work" |
315 |
ewarn "activate the 'gtk' use flag." |
316 |
ewarn |
317 |
fi |
318 |
} |
319 |
|
320 |
src_unpack() { |
321 |
local mod dest tmplfile tmplname mypv |
322 |
|
323 |
if use branding; then |
324 |
unpack "${BRANDING}" |
325 |
fi |
326 |
|
327 |
if [[ ${PV} != *9999* ]]; then |
328 |
for mod in ${MODULES}; do |
329 |
unpack "${PN}-${mod}-${PV}.tar.bz2" |
330 |
if [[ ${mod} != bootstrap ]]; then |
331 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
332 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
333 |
fi |
334 |
done |
335 |
else |
336 |
for mod in ${MODULES}; do |
337 |
mypv=${PV/.9999} |
338 |
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" |
339 |
EGIT_PROJECT="${PN}/${mod}" |
340 |
EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}" |
341 |
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" |
342 |
EGIT_NOUNPACK="true" |
343 |
git-2_src_unpack |
344 |
if [[ ${mod} != bootstrap ]]; then |
345 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
346 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
347 |
fi |
348 |
done |
349 |
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH |
350 |
fi |
351 |
|
352 |
# copy extension templates; o what fun ... |
353 |
if use templates; then |
354 |
dest="${S}/extras/source/extensions" |
355 |
mkdir -p "${dest}" |
356 |
|
357 |
for template in ${TDEPEND}; do |
358 |
if [[ ${template} == *.oxt ]]; then |
359 |
tmplfile="${DISTDIR}/$(basename ${template})" |
360 |
tmplname="$(echo "${template}" | \ |
361 |
cut -f 2- -s -d - | cut -f 1 -d _)" |
362 |
echo ">>> Unpacking ${tmplfile/\*/} to ${dest}" |
363 |
if [[ -f ${tmplfile} && ! -f "${dest}/${tmplname}.oxt" ]]; then |
364 |
cp -v "${tmplfile}" "${dest}/${tmplname}.oxt" || die |
365 |
fi |
366 |
fi |
367 |
done |
368 |
fi |
369 |
} |
370 |
|
371 |
src_prepare() { |
372 |
# optimization flags |
373 |
export ARCH_FLAGS="${CXXFLAGS}" |
374 |
use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}" |
375 |
|
376 |
# compiler flags |
377 |
use custom-cflags || strip-flags |
378 |
use debug || filter-flags "-g*" |
379 |
# silent miscompiles; LO/OOo adds -O2/1/0 where appropriate |
380 |
filter-flags "-O*" |
381 |
|
382 |
base_src_prepare |
383 |
eautoreconf |
384 |
} |
385 |
|
386 |
src_configure() { |
387 |
local java_opts |
388 |
local internal_libs |
389 |
local extensions |
390 |
local themes="crystal" |
391 |
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") |
392 |
|
393 |
# recheck that there is some value in jobs |
394 |
[[ -z ${jbs} ]] && jbs="1" |
395 |
|
396 |
# expand themes we are going to build based on DE useflags |
397 |
use gnome && themes+=" tango" |
398 |
use kde && themes+=" oxygen" |
399 |
|
400 |
# list the extensions we are going to build by default |
401 |
extensions=" |
402 |
$(use_enable pdfimport ext-pdfimport) |
403 |
--enable-ext-presenter-console |
404 |
--enable-ext-presenter-minimizer |
405 |
" |
406 |
|
407 |
# hsqldb: requires just 1.8.0 not 1.8.1 which we don't ship at all |
408 |
# dmake: not worth of splitting out |
409 |
# cppunit: patched not to run anything, just main() { return 0; } |
410 |
# workaround to upstream running the tests during build |
411 |
# sane: just sane.h header that is used for scan in writer, not |
412 |
# linked or anything else, worthless to depend on |
413 |
internal_libs+=" |
414 |
--without-system-hsqldb |
415 |
--without-system-cppunit |
416 |
--without-system-sane-header |
417 |
" |
418 |
|
419 |
# When building without java some things needs to be done |
420 |
# as internal libraries. |
421 |
if ! use java; then |
422 |
internal_libs+=" |
423 |
--without-junit |
424 |
" |
425 |
else |
426 |
java_opts=" |
427 |
--with-ant-home="${ANT_HOME}" |
428 |
--with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
429 |
--with-java-target-version=$(java-pkg_get-target) |
430 |
--with-jvm-path="${EPREFIX}/usr/$(get_libdir)/" |
431 |
--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) |
432 |
--with-lucene-core-jar=$(java-pkg_getjar lucene-2.9 lucene-core.jar) |
433 |
--with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar) |
434 |
--with-saxon-jar=$(java-pkg_getjar saxon saxon8.jar) |
435 |
" |
436 |
if use test; then |
437 |
java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)" |
438 |
else |
439 |
java_opts+=" --without-junit" |
440 |
fi |
441 |
fi |
442 |
|
443 |
if use branding; then |
444 |
extensions+=" |
445 |
--with-about-bitmap="${WORKDIR}/branding-about.png" |
446 |
--with-intro-bitmap="${WORKDIR}/branding-intro.png" |
447 |
" |
448 |
fi |
449 |
|
450 |
# system headers/libs/...: enforce using system packages |
451 |
# only expections are mozilla and odbc/sane/xrender-header(s). |
452 |
# for jars the exception is db.jar controlled by --with-system-db |
453 |
# --enable-unix-qstart-libpng: use libpng splashscreen that is faster |
454 |
# --disable-broffice: do not use brazillian brand just be uniform |
455 |
# --enable-cairo: ensure that cairo is always required |
456 |
# --enable-*-link: link to the library rather than just dlopen on runtime |
457 |
# --disable-fetch-external: prevent dowloading during compile phase |
458 |
# --disable-gnome-vfs: old gnome virtual fs support |
459 |
# --disable-kdeab: kde3 adressbook |
460 |
# --disable-kde: kde3 support |
461 |
# --disable-pch: precompiled headers cause build crashes |
462 |
# --disable-rpath: relative runtime path is not desired |
463 |
# --disable-static-gtk: ensure that gtk is linked dynamically |
464 |
# --disable-zenity: disable build icon |
465 |
# --with-extension-integration: enable any extension integration support |
466 |
# --with-{max-jobs,num-cpus}: ensuring parallel building |
467 |
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
468 |
# --without-stlport: disable deprecated extensions framework |
469 |
econf \ |
470 |
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \ |
471 |
--with-system-headers \ |
472 |
--with-system-libs \ |
473 |
--with-system-jars \ |
474 |
--with-system-db \ |
475 |
--with-system-dicts \ |
476 |
--enable-cairo \ |
477 |
--enable-cups \ |
478 |
--enable-fontconfig \ |
479 |
--enable-largefile \ |
480 |
--enable-randr \ |
481 |
--enable-randr-link \ |
482 |
--enable-unix-qstart-libpng \ |
483 |
--enable-Xaw \ |
484 |
--enable-xrender-link \ |
485 |
--disable-broffice \ |
486 |
--disable-crashdump \ |
487 |
--disable-dependency-tracking \ |
488 |
--disable-epm \ |
489 |
--disable-fetch-external \ |
490 |
--disable-gnome-vfs \ |
491 |
--disable-kdeab \ |
492 |
--disable-kde \ |
493 |
--disable-online-update \ |
494 |
--disable-pch \ |
495 |
--disable-rpath \ |
496 |
--disable-static-gtk \ |
497 |
--disable-strip-solver \ |
498 |
--disable-zenity \ |
499 |
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ |
500 |
--with-build-version="Gentoo official package" \ |
501 |
--with-extension-integration \ |
502 |
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
503 |
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
504 |
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
505 |
--with-external-tar="${DISTDIR}" \ |
506 |
--with-lang="" \ |
507 |
--with-max-jobs=${jbs} \ |
508 |
--with-num-cpus=1 \ |
509 |
--with-theme="${themes}" \ |
510 |
--with-unix-wrapper=libreoffice \ |
511 |
--with-vendor="Gentoo Foundation" \ |
512 |
--with-x \ |
513 |
--without-afms \ |
514 |
--without-fonts \ |
515 |
--without-myspell-dicts \ |
516 |
--without-ppds \ |
517 |
--without-stlport \ |
518 |
--without-helppack-integration \ |
519 |
$(use_enable binfilter) \ |
520 |
$(use_enable dbus) \ |
521 |
$(use_enable debug crashdump) \ |
522 |
$(use_enable eds evolution2) \ |
523 |
$(use_enable gnome gconf) \ |
524 |
$(use_enable gnome gio) \ |
525 |
$(use_enable gnome lockdown) \ |
526 |
$(use_enable graphite) \ |
527 |
$(use_enable gstreamer) \ |
528 |
$(use_enable gtk) \ |
529 |
$(use_enable gtk systray) \ |
530 |
$(use_enable java ext-scripting-beanshell) \ |
531 |
$(use_enable kde kde4) \ |
532 |
$(use_enable ldap) \ |
533 |
$(use_enable mysql ext-mysql-connector) \ |
534 |
$(use_enable nsplugin mozilla) \ |
535 |
$(use_enable odk) \ |
536 |
$(use_enable opengl) \ |
537 |
$(use_enable python) \ |
538 |
$(use_enable python ext-scripting-python) \ |
539 |
$(use_enable vba) \ |
540 |
$(use_enable vba activex-component) \ |
541 |
$(use_enable webdav neon) \ |
542 |
$(use_with java) \ |
543 |
$(use_with ldap openldap) \ |
544 |
$(use_with mysql system-mysql-cppconn) \ |
545 |
$(use_with nsplugin system-mozilla libxul) \ |
546 |
$(use_with templates sun-templates) \ |
547 |
${internal_libs} \ |
548 |
${java_opts} \ |
549 |
${extensions} |
550 |
} |
551 |
|
552 |
src_compile() { |
553 |
# this is not a proper make script and the jobs are passed during configure |
554 |
make || die |
555 |
} |
556 |
|
557 |
src_install() { |
558 |
# This is not Makefile so no buildserver |
559 |
make DESTDIR="${D}" distro-pack-install || die |
560 |
|
561 |
# Fix bash completion placement |
562 |
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN} |
563 |
rm -rf "${ED}"/etc/ |
564 |
|
565 |
# symlink the plugin to system location |
566 |
if use nsplugin; then |
567 |
inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so |
568 |
fi |
569 |
|
570 |
if use branding; then |
571 |
insinto /usr/$(get_libdir)/${PN}/program |
572 |
newins "${WORKDIR}/branding-sofficerc" sofficerc |
573 |
fi |
574 |
} |
575 |
|
576 |
pkg_preinst() { |
577 |
# Cache updates - all handled by kde eclass for all environments |
578 |
kde4-base_pkg_preinst |
579 |
} |
580 |
|
581 |
pkg_postinst() { |
582 |
kde4-base_pkg_postinst |
583 |
|
584 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin |
585 |
} |
586 |
|
587 |
pkg_postrm() { |
588 |
kde4-base_pkg_postrm |
589 |
} |