source: general/genlib/pcre2.xml@ 3f2db3a6

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 3f2db3a6 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 6.9 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 pcre2-download-http "https://github.com/PCRE2Project/pcre2/releases/download/pcre2-&pcre2-version;/pcre2-&pcre2-version;.tar.bz2">
8 <!ENTITY pcre2-download-ftp " ">
9 <!ENTITY pcre2-md5sum "a5cc4e276129c177d4fffb40601019a4">
10 <!ENTITY pcre2-size "1.7 MB">
11 <!ENTITY pcre2-buildsize "18 MB (with tests)">
12 <!ENTITY pcre2-time "0.4 SBU (with tests)">
13]>
14
15<sect1 id="pcre2" xreflabel="pcre2-&pcre2-version;">
16 <?dbhtml filename="pcre2.html"?>
17
18
19 <title>PCRE2-&pcre2-version;</title>
20
21 <indexterm zone="pcre2">
22 <primary sortas="a-pcre2">PCRE2</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to PCRE2</title>
27
28 <para>
29 The <application>PCRE2</application> package contains a new generation of
30 the <application>Perl Compatible Regular Expression</application>
31 libraries. These are useful for implementing regular expression pattern
32 matching using the same syntax and semantics as <application>Perl</application>.
33 </para>
34
35 &lfs112_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&pcre2-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&pcre2-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &pcre2-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &pcre2-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &pcre2-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &pcre2-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">PCRE2 Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Optional</bridgehead>
74 <para role="optional">
75 <xref linkend="valgrind"/> and
76 <ulink url="https://thrysoee.dk/editline/">libedit</ulink>
77 </para>
78
79 <para condition="html" role="usernotes">
80 User Notes: <ulink url="&blfs-wiki;/pcre2"/>
81 </para>
82 </sect2>
83
84 <sect2 role="installation">
85 <title>Installation of PCRE2</title>
86
87 <para>
88 Install <application>PCRE2</application> by running the following
89 commands:
90 </para>
91
92<screen><userinput>./configure --prefix=/usr \
93 --docdir=/usr/share/doc/pcre2-&pcre2-version; \
94 --enable-unicode \
95 --enable-jit \
96 --enable-pcre2-16 \
97 --enable-pcre2-32 \
98 --enable-pcre2grep-libz \
99 --enable-pcre2grep-libbz2 \
100 --enable-pcre2test-libreadline \
101 --disable-static &amp;&amp;
102make</userinput></screen>
103
104 <para>
105 To test the results, issue: <command>make check</command>.
106 </para>
107
108 <para>
109 Now, as the <systemitem class="username">root</systemitem> user:
110 </para>
111
112<screen role="root"><userinput>make install</userinput></screen>
113 </sect2>
114
115 <sect2 role="commands">
116 <title>Command Explanations</title>
117
118 <para>
119 <parameter>--enable-unicode</parameter>: This switch enables Unicode
120 support and includes the functions for handling UTF-8/16/32 character
121 strings in the library.
122 </para>
123
124 <para>
125 <parameter>--enable-pcre2-16</parameter>: This switch enables 16 bit
126 character support.
127 </para>
128
129 <para>
130 <parameter>--enable-pcre2-32</parameter>: This switch enables 32 bit
131 character support.
132 </para>
133
134 <para>
135 <parameter>--enable-pcre2grep-libz</parameter>: This switch adds support
136 for reading .gz compressed files to <application>pcre2grep</application>.
137 </para>
138
139 <para>
140 <parameter>--enable-pcre2grep-libbz2</parameter>: This switch adds
141 support for reading .bz2 compressed files to
142 <application>pcre2grep</application>.
143 </para>
144
145 <para>
146 <parameter>--enable-pcre2test-libreadline</parameter>: This switch adds
147 line editing and history features to the
148 <application>pcre2test</application> program.
149 </para>
150
151 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
152 href="../../xincludes/static-libraries.xml"/>
153
154 <para>
155 <parameter>--enable-jit</parameter>: this option enables Just-in-time
156 compiling, which can greatly speed up pattern matching.
157 </para>
158
159 </sect2>
160
161 <sect2 role="content">
162 <title>Contents</title>
163
164 <segmentedlist>
165 <segtitle>Installed Programs</segtitle>
166 <segtitle>Installed Libraries</segtitle>
167 <segtitle>Installed Directory</segtitle>
168
169 <seglistitem>
170 <seg>
171 pcre2-config,
172 pcre2grep,
173 and pcre2test.
174 </seg>
175 <seg>
176 libpcre2-8.so,
177 libpcre2-16.so,
178 libpcre2-32.so,
179 and libpcre2-posix.so
180 </seg>
181 <seg>
182 /usr/share/doc/pcre2-&pcre2-version;
183 </seg>
184 </seglistitem>
185 </segmentedlist>
186
187 <variablelist>
188 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
189 <?dbfo list-presentation="list"?>
190 <?dbhtml list-presentation="table"?>
191
192 <varlistentry id="pcre2grep">
193 <term><command>pcre2grep</command></term>
194 <listitem>
195 <para>
196 is a version of <application>grep</application>
197 that understands
198 <application>Perl compatible regular expressions.</application>
199 </para>
200 <indexterm zone="pcre2 pcre2grep">
201 <primary sortas="b-pcre2grep">pcre2grep</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="pcre2test">
207 <term><command>pcre2test</command></term>
208 <listitem>
209 <para>
210 can test a
211 <application>Perl compatible regular expression.</application>
212 </para>
213 <indexterm zone="pcre2 pcre2test">
214 <primary sortas="b-pcre2test">pcre2</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="pcre2-config">
220 <term><command>pcre2-config</command></term>
221 <listitem>
222 <para>
223 outputs compilation information to programs linking against the
224 <application>PCRE2</application> libraries
225 </para>
226 <indexterm zone="pcre2 pcre2-config">
227 <primary sortas="b-pcre2-config">pcre2-config</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 </variablelist>
233
234 </sect2>
235
236</sect1>
Note: See TracBrowser for help on using the repository browser.