Ticket #2507: OOo.diff

File OOo.diff, 16.0 KB (added by Randy McMurchy, 14 years ago)

First diff

  • xsoft/suites/openoffice.xml

     
    66
    77  <!-- <!ENTITY openoffice-download-http "http://download.openoffice.org/&openoffice-version;/source.html"> -->
    88  <!-- <!ENTITY openoffice-download-ftp  "ftp://ftp.ussg.iu.edu/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src.tar.gz"> -->
    9   <!ENTITY openoffice-core-download-http "http://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_core.tar.bz2">
    10   <!ENTITY openoffice-core-download-ftp  "ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_core.tar.bz2">
    11   <!ENTITY openoffice-core-md5sum        "9555a2d5fae9a25c788cc732921ef57a">
    12   <!ENTITY openoffice-core-size          "138 MB">
     9  <!ENTITY openoffice-core-download-http   "http://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_core.tar.bz2">
     10  <!ENTITY openoffice-core-download-ftp    "ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_core.tar.bz2">
     11  <!ENTITY openoffice-core-md5sum          "9555a2d5fae9a25c788cc732921ef57a">
     12  <!ENTITY openoffice-core-size            "138 MB">
    1313  <!ENTITY openoffice-system-download-http "http://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_system.tar.bz2">
    14   <!ENTITY openoffice-system-download-ftp "ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_system.tar.bz2">
    15   <!ENTITY openoffice-system-md5sum "1e20befe2fdb65c00be11f1f5d9ebdca">
    16   <!ENTITY openoffice-system-size "36 MB">
    17   <!ENTITY openoffice-buildsize     "4.3 GB">
    18   <!ENTITY openoffice-time          "75 SBU">
     14  <!ENTITY openoffice-system-download-ftp  "ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_system.tar.bz2">
     15  <!ENTITY openoffice-system-md5sum        "1e20befe2fdb65c00be11f1f5d9ebdca">
     16  <!ENTITY openoffice-system-size          "36 MB">
     17  <!ENTITY openoffice-buildsize            "4.3 GB">
     18  <!ENTITY openoffice-time                 "75 SBU">
    1919]>
    2020
    2121<sect1 id="openoffice" xreflabel="OpenOffice-&openoffice-version;">
     
    6464      <listitem>
    6565        <para>OpenOffice System Download size: &openoffice-system-size;</para>
    6666      </listitem>
    67 
    6867      <listitem>
    6968        <para>Estimated disk space required: &openoffice-buildsize;</para>
    7069      </listitem>
     
    7574
    7675    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    7776    <itemizedlist spacing='compact'>
    78 
    7977      <listitem>
    8078        <para>Required patch:
    8179        <ulink url="&patch-root;/OOo_&openoffice-version;-use_bin_hsqldb-1.patch"/>
    8280        </para>
    8381      </listitem>
    84 
    8582      <listitem>
    86         <para>Required download if you wish to build the in-tree
     83        <para>Optional download if you wish to build the in-tree
    8784        <application>Mozilla</application> browser:
    8885        <ulink url="ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/source/mozilla-source-1.7.5.tar.gz"/></para>
    8986      </listitem>
    90 
    9187      <listitem>
    9288        <para>Optional download if you wish to build the
    9389        <application>OpenOffice</application> SDK:
    9490        <ulink url="ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_sdk.tar.bz2"/></para>
    9591      </listitem>
    96 
    9792      <listitem>
    9893        <para>Optional download if you would like to localize the
    9994        installation:
    10095        <ulink url="ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_l10n.tar.bz2"/></para>
    10196      </listitem>
    102 
    10397      <listitem>
    10498        <para>Optional download if you need to support the old
    10599        <application>StarOffice-5.x</application> file formats:
    106100        <ulink url="ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_binfilter.tar.bz2"/></para>
    107101      </listitem>
    108 
    109102    </itemizedlist>
    110103
    111104    <bridgehead renderas="sect3">OpenOffice Dependencies</bridgehead>
     
    131124    <ulink url="http://boost.sourceforge.net/">boost</ulink>,
    132125    <xref linkend="cups"/>,
    133126    <xref linkend="curl"/>,
    134     <xref linkend="db"/> (with Java support),
     127    <xref linkend="db"/> (built with Java support),
    135128    <xref linkend="desktop-file-utils"/>,
    136129    <ulink url="http://www.easysw.com/epm/">EPM</ulink>,
    137130    <xref linkend="evolution"/>,
     
    170163    same top-level directory before entering the build directory.  At
    171164    a minimum, you will need to extract the src and core tarballs.
    172165    Additionally, the source directory name is not consistent with
    173     the tarball name amd will be named OOG680_m9.</para>
     166    the tarball name amd will be named
     167    <filename class='directory'>OOG680_m9</filename>.</para>
    174168
    175169    <para>If you wish to build an in-tree <application>Mozilla</application>,
    176170    as opposed to using a system wide installation, copy the
     
    187181    <option>-fomit-frame-pointer</option>. The best option is to not use any
    188182    custom optimizations.</para>
    189183
    190     <note><para>Because of the complexity of the
    191     <application>OpenOffice</application> build system, it is not possible to
    192     provide generic build instructions for all systems.  You should review
    193     the output of <command>config_office/configure --help</command> and take
    194     advantage of any system installed programs and libraries available using
    195     the <parameter>--enable-*</parameter>, <parameter>--disable-*</parameter>,
    196     and <parameter>--with-system-*</parameter> parameters.  Additionally, if
    197     you have installed <application>KDE</application> in the
    198     <filename>/opt</filename> prefix, and would like to use the
    199     <parameter>--enable-kde</parameter> switch, you must set
    200     <command>KDEDIR=$KDE_PREFIX</command> before running
    201     configure.</para></note>
     184    <note>
     185      <para>Because of the complexity of the
     186      <application>OpenOffice</application> build system, it is not possible to
     187      provide generic build instructions for all systems.  You should review
     188      the output of <command>config_office/configure --help</command> and take
     189      advantage of any system installed programs and libraries available using
     190      the <parameter>--enable-*</parameter>, <parameter>--disable-*</parameter>,
     191      and <parameter>--with-system-*</parameter> parameters.  Additionally, if
     192      you have installed <application>KDE</application> in the
     193      <filename class='directory'>/opt</filename> prefix, and would like to use the
     194      <parameter>--enable-kde</parameter> switch, you must set
     195      <command>KDEDIR=$KDE_PREFIX</command> before running
     196      <command>configure</command>.</para>
     197    </note>
    202198
    203199    <para>Configure <application>OpenOffice</application> using the following
    204200    commands:</para>
    205201
    206 <screen><userinput>cd config_office/ &amp;&amp;
     202<screen><userinput>pushd config_office &amp;&amp;
    207203./configure --prefix=/opt/openoffice-&openoffice-version; \
    208     --enable-libart --disable-fontooo --disable-gnome-vfs \
    209     --without-fonts --without-system-jars --without-pam \
    210     --with-system-stdlibs --with-system-freetype \
    211     --with-system-expat --with-system-libxml --with-system-zlib \
    212     --enable-cairo --enable-build-mozilla \
    213     --with-build-version=BLFS --with-package-format=native \
    214     --disable-binfilter --disable-odk --disable-qadevooo \
    215     --with-use-shell=bash &amp;&amp;
    216 cd ..</userinput></screen>
     204            --enable-libart                \
     205            --disable-fontooo              \
     206            --disable-gnome-vfs            \
     207            --without-fonts                \
     208            --without-system-jars          \
     209            --without-pam                  \
     210            --with-system-stdlibs          \
     211            --with-system-freetype         \
     212            --with-system-expat            \
     213            --with-system-libxml           \
     214            --with-system-zlib             \
     215            --enable-cairo                 \
     216            --enable-build-mozilla         \
     217            --with-build-version=BLFS      \
     218            --with-package-format=native   \
     219            --disable-binfilter            \
     220            --disable-odk                  \
     221            --disable-qadevooo             \
     222            --with-use-shell=bash &amp;&amp;
     223popd</userinput></screen>
    217224
    218225    <para><application>OpenOffice</application> fails to compile if
    219226    <command>umask</command> is set to something exotic. The build can also
     
    229236
    230237<screen><userinput>patch -Np1 -i ../OOo_&openoffice-version;-use_bin_hsqldb-1.patch &amp;&amp;
    231238./bootstrap &amp;&amp;
    232 . LinuxX86Env.Set.sh &amp;&amp;
     239source LinuxX86Env.Set.sh &amp;&amp;
    233240dmake</userinput></screen>
    234241
    235242    <para>This package does not come with a test suite.</para>
     
    241248<screen role="root"><userinput>pushd instsetoo_native/unxlngi6.pro/OpenOffice/\
    242249native/install/en-US/linux-2.6-intel/buildroot/opt &amp;&amp;
    243250cp -r -v openoffice.org2.3 /opt/openoffice-&openoffice-version; &amp;&amp;
    244 popd</userinput></screen>
     251popd &amp;&amp;
    245252
    246     <para>Still as the <systemitem class="username">root</systemitem>
    247     user:</para>
    248 
    249 <screen role="root"><userinput>for appl in sbase scalc sdraw simpress smath soffice spadmin swriter
     253for appl in sbase scalc sdraw simpress smath soffice spadmin swriter
    250254do
    251255    ln -v -sf /opt/openoffice-&openoffice-version;/program/$appl /usr/bin/$appl
    252 done</userinput></screen>
     256done &amp;&amp;
    253257
    254     <para>The icons are not installed by default.  While still the
    255     <systemitem class="username">root</systemitem> user, install the icons
    256     with the following commands:</para>
    257 
    258 <screen role="root"><userinput>cd sysui/desktop/icons &amp;&amp;
    259 install -v -d /usr/share/icons/{HighContrast,hicolor,locolor} -m755 &amp;&amp;
     258pushd sysui/desktop/icons &amp;&amp;
     259install -v -m755 -d /usr/share/icons/{HighContrast,hicolor,locolor} &amp;&amp;
    260260cp -r -v HighContrast/*x* /usr/share/icons/HighContrast &amp;&amp;
    261 cp -r -v hicolor/*x* /usr/share/icons/hicolor &amp;&amp;
    262 cp -r -v locolor/*x* /usr/share/icons/locolor</userinput></screen>
     261cp -r -v hicolor/*x*      /usr/share/icons/hicolor &amp;&amp;
     262cp -r -v locolor/*x*      /usr/share/icons/locolor &amp;&amp;
     263popd</userinput></screen>
    263264
    264265    <para>If you have installed <xref linkend="desktop-file-utils"/>, you
    265266    should copy the <filename>*.desktop</filename> files to
    266267    <filename>/usr/share/applications</filename> with the following
    267268    commands as the <systemitem class="username">root</systemitem> user:</para>
    268269
    269 <screen role="root"><userinput>install -v -d /usr/share/applications -m 755 &amp;&amp;
    270 cd /opt/openoffice-&openoffice-version;/share/xdg/ &amp;&amp;
     270<screen role="root"><userinput>install -v -d -m755 /usr/share/applications &amp;&amp;
     271pushd /opt/openoffice-&openoffice-version;/share/xdg/ &amp;&amp;
    271272for appl in *.desktop
    272273do
    273     sed -i '/Exec/d' $appl
    274     echo "Exec=/usr/bin/s`echo $appl | sed 's/.desktop//'`" >> $appl
    275     sed -i '/Icon/d' $appl
     274    sed -i '/Exec/d' $appl &amp;&amp;
     275    echo "Exec=/usr/bin/s`echo $appl | sed 's/.desktop//'`" >> $appl &amp;&amp;
     276    sed -i '/Icon/d' $appl &amp;&amp;
    276277    echo "Icon=`echo $appl | sed 's/.desktop//'`" >> $appl
    277278done &amp;&amp;
    278279sed -i 's@bin/sprinteradmin@bin/spadmin@' printeradmin.desktop &amp;&amp;
    279280cp -v *.desktop /usr/share/applications &amp;&amp;
    280 update-desktop-database</userinput></screen>
     281update-desktop-database &amp;&amp;
     282popd</userinput></screen>
    281283
    282284    <para>Finally, if you'd like to edit <application>OpenOffice</application>
    283285    documents directly from <xref linkend="seamonkey"/> or
    284286    <xref linkend="firefox"/>, create a symbolic link in your
    285     plugins directory to
    286     <filename>/opt/openoffice-&openoffice-version;/program/libnpsoplugin.so</filename>.
     287    plugins directory to <filename
     288    class='libraryfile'>/opt/openoffice-&openoffice-version;/program/libnpsoplugin.so</filename>.
    287289    Additionally, you must enable the plugin from the
    288290    <parameter>Internet Options</parameter> within any
    289291    <application>OpenOffice</application> application.</para>
     
    294296    <title>Command Explanations</title>
    295297
    296298    <para><parameter>--enable-*</parameter>: The switches listed in the
    297     example configure command above force the use of system installed
    298     libraries that are known to be available on a BLFS system that meets
    299     the required and recommended dependencies.</para>
     299    example <command>configure</command> command above force the use of system
     300    installed libraries that are known to be available on a BLFS system that
     301    meets the required and recommended dependencies.</para>
    300302
    301303    <para><parameter>--disable-fontooo</parameter>: Use
    302     <application>Fontconfig</application> instead of FontOOo.</para>
     304    <application>Fontconfig</application> instead of the FontOOo.</para>
    303305
    304306    <para><parameter>--disable-gnome-vfs</parameter>: Disable the use of
    305307    <application>Gnome Virtual File System</application> libraries.  Omit
    306308    this switch if you have Gnome installed.</para>
    307309
    308310    <para><parameter>--without-fonts</parameter>: Do not install Bitstream
    309     Vera fonts since they are already included in X Window System
    310     Environment.</para>
     311    Vera fonts since they are already included in the
     312    <application>X</application> Window System Environment.</para>
    311313
    312314    <para><parameter>--with{,out}-system-*</parameter>: Determines
    313315    whether to use the system libraries and programs or to build
     
    320322    <para><parameter>--enable-build-mozilla</parameter>: Build the in-tree
    321323    <application>Mozilla</application> suite.</para>
    322324
    323     <para><parameter>--with-build-version=BLFS</parameter>: Appends "BLFS"
    324     to the end of the version string.</para>
     325    <para><parameter>--with-build-version=BLFS</parameter>: Appends
     326    <quote>BLFS</quote> to the end of the version string.</para>
    325327
    326328    <para><parameter>--with-package-format=native</parameter>: This switch
    327329    forces the build to skip the packaging process, leaving only the
     
    330332
    331333    <para><parameter>--disable-binfilter</parameter>: This switch disables
    332334    the build of legacy <application>StarOffice-5</application> import
    333     filters.  Omit this switch if you've downloaded the binfilter package
     335    filters.  Omit this switch if you've downloaded the
     336    <application>binfilter</application> package
    334337    above.  Warning: Installation of the legacy import filters increases the
    335338    build time considerably.  Only install them if you have these old
    336339    file types, and need to edit them in
     
    338341
    339342    <para><parameter>--disable-odk</parameter>: This switch disables the build
    340343    of the <application>OpenOffice</application> SDK.  Omit this switch if
    341     you've downloaded the sdk package above.</para>
     344    you've downloaded the SDK package above.</para>
    342345
    343346    <para><parameter>--disable-qadevooo</parameter>: This switch skips
    344347    the building of the quality assurance tools used by the
     
    361364    <para>
    362365    <parameter>--with-lang=<replaceable>&lt;LANG&gt;</replaceable></parameter>:
    363366    Allows the use of additional languages in
    364     <application>OpenOffice</application>. ENUS is the default.</para>
     367    <application>OpenOffice</application>. English-US (ENUS) is the
     368    default.</para>
    365369
    366370    <para>
    367371    <parameter>--with-dict=<replaceable>&lt;LANG&gt;</replaceable></parameter>:
     
    369373    <application>OpenOffice</application>. ENUS is the default.</para>
    370374
    371375    <para><parameter>--with-use-shell=bash</parameter>: Tells the
    372     <application>OpenOffice</application> build system to use bash as opposed
    373     to tcsh.</para>
     376    <application>OpenOffice</application> build system to use
     377    <command>bash</command> as opposed to <command>tcsh</command>.</para>
    374378
    375379    <para><command>./bootstrap</command>: Build the
    376     <application>dmake</application> utility required to complete the
     380    <command>dmake</command> utility required to complete the
    377381    build.</para>
    378382
    379383    <para><command>dmake</command>: Compiles the package.</para>