glfs/general/genlib/clucene.xml
2024-01-19 22:39:35 +01:00

157 lines
4.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY clucene-download-http "&sourceforge-dl;/clucene/clucene-core-&clucene-version;.tar.gz">
<!ENTITY clucene-download-ftp " ">
<!ENTITY clucene-md5sum "48d647fbd8ef8889e5a7f422c1bfda94">
<!ENTITY clucene-size "2.2 MB">
<!ENTITY clucene-buildsize "78 MB">
<!ENTITY clucene-time "0.8 SBU">
]>
<sect1 id="clucene" xreflabel="CLucene-&clucene-version;">
<?dbhtml filename="clucene.html"?>
<title>CLucene-&clucene-version;</title>
<indexterm zone="clucene">
<primary sortas="a-clucene">clucene</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to CLucene</title>
<para>
<application>CLucene</application> is a C++ version of Lucene, a
high performance text search engine.
</para>
&lfs120_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&clucene-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&clucene-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &clucene-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &clucene-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &clucene-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &clucene-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing='compact'>
<listitem>
<para>
Required patch: <ulink
url="&patch-root;/clucene-&clucene-version;-contribs_lib-1.patch"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">CLucene Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="cmake"/>
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<xref linkend="boost"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of CLucene</title>
<para>
Install <application>CLucene</application> by running the following
commands:
</para>
<screen><userinput>patch -Np1 -i ../clucene-&clucene-version;-contribs_lib-1.patch &amp;&amp;
sed -i '/Misc.h/a #include &lt;ctime&gt;' src/core/CLucene/document/DateTools.cpp &amp;&amp;
mkdir build &amp;&amp;
cd build &amp;&amp;
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_CONTRIBS_LIB=ON .. &amp;&amp;
make</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<parameter>-DBUILD_CONTRIBS_LIB=ON</parameter>: This cmake variable
enables building the CLucene contribs library necessary for running
applications that use language specific text analyzers like LibreOffice
for example.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>None</seg>
<seg>
libclucene-contribs-lib.so,
libclucene-core.so, and
libclucene-shared.so
</seg>
<seg>
/usr/include/CLucene and
/usr/lib/CLuceneConfig.cmake
</seg>
</seglistitem>
</segmentedlist>
</sect2>
</sect1>