source: xsoft/office/libreoffice.xml@ 4f304a0a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 4f304a0a was 4f304a0a, checked in by Andrew Benton <andy@…>, 12 years ago

Libre Office tweaks
Make a symlink to the printer admin script
Make a .desktop file for the printer admin program
Add --nologo to the launch options

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9892 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 19.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY libreoffice-core-download-http
8 "http://download.documentfoundation.org/libreoffice/src/3.5.2/libreoffice-core-&libreoffice-version;.tar.xz">
9 <!ENTITY libreoffice-core-download-ftp " ">
10 <!ENTITY libreoffice-core-md5sum "a21156d5657b8619a523ffdc5cc0003e">
11 <!ENTITY libreoffice-core-size "99 MB">
12
13 <!ENTITY libreoffice-dictionaries-download-http
14 "http://download.documentfoundation.org/libreoffice/src/3.5.2/libreoffice-dictionaries-&libreoffice-version;.tar.xz">
15 <!ENTITY libreoffice-dictionaries-download-ftp " ">
16 <!ENTITY libreoffice-dictionaries-md5sum "782d0cecfccc200f8ad0a07f0cb53f08">
17 <!ENTITY libreoffice-dictionaries-size "31 MB">
18 <!ENTITY libreoffice-help-download-http
19 "http://download.documentfoundation.org/libreoffice/src/3.5.2/libreoffice-help-&libreoffice-version;.tar.xz">
20 <!ENTITY libreoffice-help-download-ftp " ">
21 <!ENTITY libreoffice-help-md5sum "3c064a24191274fcd8fd466ce9d5dc42">
22 <!ENTITY libreoffice-help-size "2 MB">
23
24 <!ENTITY libreoffice-translations-download-http
25 "http://download.documentfoundation.org/libreoffice/src/3.5.2/libreoffice-translations-&libreoffice-version;.tar.xz">
26 <!ENTITY libreoffice-translations-download-ftp " ">
27 <!ENTITY libreoffice-translations-md5sum "17ebcd0d25e716d3905b1a905907fd67">
28 <!ENTITY libreoffice-translations-size "11.7 MB">
29
30 <!ENTITY libreoffice-buildsize "6 GB (379 MB installed)">
31 <!ENTITY libreoffice-time "61 SBU">
32]>
33
34<sect1 id="libreoffice" xreflabel="Libre-Office-&libreoffice-version;">
35 <?dbhtml filename="libreoffice.html"?>
36
37 <sect1info>
38 <othername>$LastChangedBy$</othername>
39 <date>$Date$</date>
40 </sect1info>
41
42 <title>Libre Office &libreoffice-version;</title>
43
44 <indexterm zone="libreoffice">
45 <primary sortas="a-libreoffice">libreoffice</primary>
46 </indexterm>
47
48 <sect2 role="package">
49 <title>Introduction to Libre Office</title>
50
51 <para>
52 <application>Libre Office</application> is a collection of programs for
53 creating and editing office documents. It is largely compatible with
54 <application>Microsoft Office</application> and
55 <application>Open Office</application> on which it is based.
56 </para>
57
58 &lfs71_checked;
59
60 <bridgehead renderas="sect3">Package Information</bridgehead>
61 <itemizedlist spacing="compact">
62 <listitem>
63 <para>
64 Core Download (HTTP): <ulink url="&libreoffice-core-download-http;"/>
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Core Download (FTP): <ulink url="&libreoffice-core-download-ftp;"/>
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Core Download MD5 sum: &libreoffice-core-md5sum;
75 </para>
76 </listitem>
77 <listitem>
78 <para>
79 Core Download size: &libreoffice-core-size;
80 </para>
81 </listitem>
82 <listitem>
83 <para>
84 Dictionaries Download (HTTP):
85 <ulink url="&libreoffice-dictionaries-download-http;"/>
86 </para>
87 </listitem>
88 <listitem>
89 <para>
90 Dictionaries Download (FTP):
91 <ulink url="&libreoffice-dictionaries-download-ftp;"/>
92 </para>
93 </listitem>
94 <listitem>
95 <para>
96 Dictionaries Download MD5 sum: &libreoffice-dictionaries-md5sum;
97 </para>
98 </listitem>
99 <listitem>
100 <para>
101 Dictionaries Download size: &libreoffice-dictionaries-size;
102 </para>
103 </listitem>
104 <listitem>
105 <para>
106 Help Download (HTTP): <ulink url="&libreoffice-help-download-http;"/>
107 </para>
108 </listitem>
109 <listitem>
110 <para>
111 Help Download (FTP): <ulink url="&libreoffice-help-download-ftp;"/>
112 </para>
113 </listitem>
114 <listitem>
115 <para>
116 Help Download MD5 sum: &libreoffice-help-md5sum;
117 </para>
118 </listitem>
119 <listitem>
120 <para>
121 Help Download size: &libreoffice-help-size;
122 </para>
123 </listitem>
124 <listitem>
125 <para>
126 Translations Download (HTTP):
127 <ulink url="&libreoffice-translations-download-http;"/>
128 </para>
129 </listitem>
130 <listitem>
131 <para>
132 Translations Download (FTP):
133 <ulink url="&libreoffice-translations-download-ftp;"/>
134 </para>
135 </listitem>
136 <listitem>
137 <para>
138 Translations Download MD5 sum: &libreoffice-translations-md5sum;
139 </para>
140 </listitem>
141 <listitem>
142 <para>
143 Translations Download size: &libreoffice-translations-size;
144 </para>
145 </listitem>
146 <listitem>
147 <para>
148 Estimated disk space required: &libreoffice-buildsize;
149 </para>
150 </listitem>
151 <listitem>
152 <para>
153 Estimated build time: &libreoffice-time;
154 </para>
155 </listitem>
156 </itemizedlist>
157
158 <bridgehead renderas="sect3">Libre Office Dependencies</bridgehead>
159
160 <bridgehead renderas="sect4">Required</bridgehead>
161 <para role="required">
162 <xref linkend="cups"/>,
163 <xref linkend="curl"/> or <xref linkend="wget"/>,
164 <xref linkend="gperf"/>,
165 <xref linkend="gtk2"/> or <xref linkend="gtk3"/>,
166 <application>Perl Modules</application>
167 <xref linkend="perl-archive-zip"/> and
168 <xref linkend="perl-xml-parser"/>,
169 <xref linkend="unzip"/>,
170 <xref linkend="which"/> and
171 <xref linkend="zip"/>.
172 </para>
173
174 <bridgehead renderas="sect4">Recommended</bridgehead>
175 <note>
176 <para>
177 Most of these packages are recommend because if they're not installed
178 the build process will compile and install its own (often older)
179 version. If you're using <application>GCC 4.7</application> some of
180 those older packages will fail to compile.
181 </para>
182 </note>
183
184 <para role="recommended">
185 <xref linkend="boost"/>,
186 <xref linkend="db"/>,
187 <xref linkend="expat"/>,
188 <xref linkend="gst-plugins-base"/>,
189 <xref linkend="libjpeg"/>,
190 <xref linkend="libgsf"/>,
191 <xref linkend="libpng"/>,
192 <xref linkend="librsvg"/>,
193 <xref linkend="libxml2"/> and <xref linkend="libxslt"/>,
194 <xref linkend="neon"/>,
195 <xref linkend="nss"/>,
196 <xref linkend="openssl"/>,
197 <xref linkend="poppler"/>,
198 <xref linkend="postgresql"/> and
199 <xref linkend="redland"/>.
200 </para>
201
202 <bridgehead renderas="sect4">Optional</bridgehead>
203 <para role="optional">
204 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
205 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
206 <ulink url="http://sampleicc.sourceforge.net/">SampleICC</ulink>,
207 <ulink url="http://hci.iwr.uni-heidelberg.de/vigra">Vigra</ulink> and
208 <xref linkend="zenity"/>.
209 </para>
210
211 <para condition="html" role="usernotes">
212 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
213 </para>
214 </sect2>
215
216 <sect2 role="installation">
217 <title>Installation of Libre Office</title>
218
219 <warning>
220 <para>
221 Untaring the libreoffice-core-3.5.2.2 tarball as
222 <systemitem class="username">root</systemitem> has the curious effect of
223 changing the ownership of the <emphasis>parent</emphasis> directory
224 to a user with numerical id 11012 and with the permissions set to allow
225 read, write and execute for that user only! If you untared as
226 <systemitem class="username">root</systemitem> in your home folder you
227 could end up unable to log in again :/ If you untared it in
228 <filename class="directory">/usr</filename> you would find your user
229 account unable to access any file in
230 <filename class="directory">/usr</filename>.
231 </para>
232
233 <para>
234 You can avoid this unpleasantness by
235 <emphasis>not</emphasis> untaring it as
236 <systemitem class="username">root</systemitem>. If you must untar it as
237 <systemitem class="username">root</systemitem> pass the option
238 <option>--no-overwrite-dir</option> to tar. This is the default when you
239 untar as a user but has to be passed as an option when untaring as
240 <systemitem class="username">root</systemitem>:
241 </para>
242 </warning>
243
244<screen role="root"><userinput>tar xf --no-overwrite-dir libreoffice-core-&libreoffice-version;.tar.xz &amp;&amp;
245cd libreoffice-core-&libreoffice-version;</userinput></screen>
246
247 <para>
248 Install <application>Libre Office</application> by running the following
249 commands:
250 </para>
251
252<screen><userinput>tar -xf ../libreoffice-translations-&libreoffice-version;.tar.xz --strip-components=1 &amp;&amp;
253tar -xf ../libreoffice-help-&libreoffice-version;.tar.xz --strip-components=1 &amp;&amp;
254tar -xf ../libreoffice-dictionaries-&libreoffice-version;.tar.xz --strip-components=1 &amp;&amp;
255./autogen.sh --prefix=/usr \
256 --disable-binfilter \
257 --disable-gconf \
258 --disable-mozilla \
259 --disable-odk \
260 --with-system-boost \
261 --with-system-cairo \
262 --with-system-curl \
263 --with-system-db \
264 --with-system-expat \
265 --with-system-hunspell \
266 --with-system-icu \
267 --with-system-jpeg \
268 --with-system-libpng \
269 --with-system-libxml \
270 --with-system-neon \
271 --with-system-nss \
272 --with-system-openssl \
273 --with-system-poppler \
274 --with-system-postgresql \
275 --with-system-redland \
276 --with-system-zlib \
277 --with-num-cpus=$(getconf _NPROCESSORS_ONLN) \
278 --with-vendor="BLFS" \
279 --with-lang="pt-BR" \
280 --without-java &amp;&amp;
281./download &amp;&amp;
282mkdir -p ../libre-office-downloads &amp;&amp;
283cp -rf src/* ../libre-office-downloads &amp;&amp;
284make</userinput></screen>
285
286 <para>
287 This package does not come with a test suite.
288 </para>
289
290 <para>
291 Now, as the <systemitem class="username">root</systemitem> user:
292 </para>
293
294<screen role="root"><userinput>make install &amp;&amp;
295for program in base calc draw impress math writer
296do
297 echo "#!/bin/bash
298 exec /usr/lib/libreoffice/program/soffice --nologo --${program} \"\${@}\"" \
299 > /usr/bin/${program}
300 chmod 755 /usr/bin/${program}
301done &amp;&amp;
302ln -s ../lib/libreoffice/program/spadmin /usr/bin/printeradmin &amp;&amp;
303for res in 16 32 48 128 256
304do
305 mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
306 cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
307 /usr/share/icons/hicolor/${res}x${res}/apps
308 cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
309 /usr/share/icons/hicolor/${res}x${res}/mimetypes
310done &amp;&amp;
311gtk-update-icon-cache /usr/share/icons/hicolor</userinput></screen>
312 </sect2>
313
314 <sect2 role="commands">
315 <title>Command Explanations</title>
316
317 <para>
318 <command>tar -xf ../libreoffice-translations-&libreoffice-version;.tar.xz
319 --strip-components=1</command>: This untars the translations inside the
320 source. The <option>--strip-components=1</option> option removes the
321 leading directory from the path of the untared files. Without this option
322 we would need to move or symlink the
323 <filename class="directory">translations</filename> folder into the
324 correct position.
325 </para>
326
327 <para>
328 <command>tar -xf ../libreoffice-help-&libreoffice-version;.tar.xz
329 --strip-components=1</command>: This untars the help files inside the
330 source. The <option>--strip-components=1</option> option removes the
331 leading directory from the path of the untared files. Without this option
332 we would need to move or symlink the
333 <filename class="directory">helpcontent2</filename> folder into the
334 correct position.
335 </para>
336
337 <para>
338 <command>tar -xf ../libreoffice-dictionaries-&libreoffice-version;.tar.xz
339 --strip-components=1</command>: This untars the dictionaries inside the
340 source. The <option>--strip-components=1</option> option removes the
341 leading directory from the path of the untared files. Without this option
342 we would need to move or symlink the
343 <filename class="directory">dictionaries</filename> folder into the
344 correct position.
345 </para>
346
347 <para>
348 <option>--enable-gtk3</option>: add this option if you've installed and
349 want to use <application>Gtk+-3</application>.
350 </para>
351
352 <para>
353 <option>--disable-gstreamer</option>: add this option if you've not
354 installed <xref linkend="gst-plugins-base"/>.
355 </para>
356
357 <para>
358 <option>--disable-binfilter</option>: These "binfilters" enable
359 <application>Libre Office</application> to open legacy
360 <application>Star Office</application> format documents. Compiling
361 <application>binfilter</application> requires
362 <application>Java</application>.
363 </para>
364
365 <para>
366 <option>--disable-gconf</option>: Compiling with support for
367 <application>GConf</application> requires the deprecated
368 <application>ORBit</application>.
369 </para>
370
371 <para>
372 <option>--disable-mozilla</option>: This option stops
373 <application>Libre Office</application> trying to compile an old version
374 of <application>SeaMonkey</application>.
375 </para>
376
377 <para>
378 <option>--disable-odk</option>: This disables installing the office
379 development kit. remove this option if you want to develop a
380 <application>Libre Office</application> based application.
381 </para>
382
383 <para>
384 <option>--with-system- ...</option>: These options stop it trying to
385 compile its own versions of these dependencies. If you've not installed
386 some of these dependencies remove the corresponding option.
387 </para>
388
389 <para>
390 <option>--with-num-cpus=$(getconf _NPROCESSORS_ONLN)</option>: This option
391 tells it to use all your CPUs to compile in parallel and speed up the
392 build.
393 </para>
394
395 <para>
396 <option>--with-lang="pt-BR"</option>: This option sets what languages to
397 support. en-US is always included by default. For a list of the available
398 options: <command>ls translations/source</command>.
399 </para>
400
401 <para>
402 <option>--without-java</option>: This option compiles
403 <application>Libre Office</application> without
404 <application>Java</application> support.
405 </para>
406
407 <para>
408 <command>./download</command>: The <command>download</command> script
409 downloads the source to a collection of things that might be needed during
410 the build process.
411 </para>
412
413 <para>
414 <command>mkdir -p ../libre-office-downloads;
415 cp -rf src/* ../libre-office-downloads</command>: The
416 <command>download</command> script downloads some 320MB of source
417 tarballs, many of which are not not needed as they are probably already
418 installed on your system. This command makes a backup copy of the
419 downloaded files so you don't have to download them again if you decide to
420 recompile <application>Libre Office</application>. In that case, just
421 start by <command>mkdir src; cp ../libre-office-downloads/* src</command>
422 </para>
423
424 <para>
425 <command>for program in base calc draw impress math writer ...</command>:
426 These commands create 6 simple shell scripts in
427 <filename class="directory">/usr/bin</filename> that can be used to launch
428 <application>Libre Office</application> in its various forms. If you like
429 seeing the <application>Libre Office</application> splash screen, remove
430 the "--nologo" option.
431 </para>
432
433 <para>
434 <command>for res in 16 32 48 128 256 ...</command>: These commands copy
435 various icons into the hicolor icon theme used by
436 <application>Gtk+</application>.
437 </para>
438
439 <para>
440 <command>gtk-update-icon-cache /usr/share/icons/hicolor</command>: This
441 rebuilds <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to
442 include the new icons.
443 </para>
444 </sect2>
445
446 <sect2 role="configuration">
447 <title>Configuring Libre Office</title>
448
449 <para>
450 If you use a desktop environment like <application>Gnome</application>
451 or <application>KDE</application> and want the programs to show up in the
452 panel's menu, as the <systemitem class="username">root</systemitem> user,
453 create some simple desktop files:
454 </para>
455
456<screen role="root"><userinput>for program in base calc draw impress math writer
457do echo "[Desktop Entry]
458Encoding=UTF-8
459Type=Application
460Name=${program^}
461Comment=Libre Office ${program^}
462Icon=${program}
463Exec=${program}
464Categories=Office;Application;
465StartupNotify=true
466Terminal=false" > /usr/share/applications/${program}.desktop
467done &amp;&amp;
468echo "[Desktop Entry]
469Encoding=UTF-8
470Type=Application
471Name=Printer Administration
472Comment=Libre Office Printer Administration
473Icon=printeradmin
474Exec=printeradmin
475Categories=System;Printing;Application;
476StartupNotify=true
477Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
478 </sect2>
479
480 <sect2 role="content">
481 <title>Contents</title>
482
483 <segmentedlist>
484 <segtitle>Installed Programs</segtitle>
485 <segtitle>Installed Libraries</segtitle>
486 <segtitle>Installed Directory</segtitle>
487
488 <seglistitem>
489 <seg>base, calc, draw, impress, math and writer.</seg>
490 <seg>
491 Hundreds of shared libraries in
492 <filename class="directory">/usr/lib/libreoffice</filename>.
493 </seg>
494 <seg>/usr/lib/libreoffice.</seg>
495 </seglistitem>
496 </segmentedlist>
497
498 <variablelist>
499 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
500 <?dbfo list-presentation="list"?>
501 <?dbhtml list-presentation="table"?>
502
503 <varlistentry id="base">
504 <term><command>base</command></term>
505 <listitem>
506 <para>
507 is a database manager.
508 </para>
509 <indexterm zone="libreoffice base">
510 <primary sortas="b-base">base</primary>
511 </indexterm>
512 </listitem>
513 </varlistentry>
514
515 <varlistentry id="calc">
516 <term><command>calc</command></term>
517 <listitem>
518 <para>
519 is a spreadsheet program.
520 </para>
521 <indexterm zone="libreoffice calc">
522 <primary sortas="b-calc">calc</primary>
523 </indexterm>
524 </listitem>
525 </varlistentry>
526
527 <varlistentry id="draw">
528 <term><command>draw</command></term>
529 <listitem>
530 <para>
531 is a vector graphics editor and diagramming tool.
532 </para>
533 <indexterm zone="libreoffice draw">
534 <primary sortas="b-draw">draw</primary>
535 </indexterm>
536 </listitem>
537 </varlistentry>
538
539 <varlistentry id="impress">
540 <term><command>impress</command></term>
541 <listitem>
542 <para>
543 can edit and display powerpoint presentations.
544 </para>
545 <indexterm zone="libreoffice impress">
546 <primary sortas="b-impress">impress</primary>
547 </indexterm>
548 </listitem>
549 </varlistentry>
550
551 <varlistentry id="math">
552 <term><command>math</command></term>
553 <listitem>
554 <para>
555 is a mathematical formula editor.
556 </para>
557 <indexterm zone="libreoffice math">
558 <primary sortas="b-math">math</primary>
559 </indexterm>
560 </listitem>
561 </varlistentry>
562
563 <varlistentry id="writer">
564 <term><command>writer</command></term>
565 <listitem>
566 <para>
567 is a word processor.
568 </para>
569 <indexterm zone="libreoffice writer">
570 <primary sortas="b-writer">writer</primary>
571 </indexterm>
572 </listitem>
573 </varlistentry>
574 </variablelist>
575 </sect2>
576</sect1>
Note: See TracBrowser for help on using the repository browser.