source: general/genlib/fmt.xml

trunk
Last change on this file was a80c832, checked in by Xi Ruoyao <xry111@…>, 2 weeks ago

treewide: Simplify GitHub archive URL by removing redundant "refs/tags/"

The "refs/tags/" component is only useful when a tag shares its name
with a branch. Any rational upstream maintainer shall not create such
a namesis.

I've verified all the changes does not affect the md5sum of download
files.

  • Property mode set to 100644
File size: 3.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 fmt-download-http "https://github.com/fmtlib/fmt/archive/&fmt-version;/fmt-&fmt-version;.tar.gz">
8 <!ENTITY fmt-download-ftp " ">
9 <!ENTITY fmt-md5sum "dc09168c94f90ea890257995f2c497a5">
10 <!ENTITY fmt-size "836 KB">
11 <!ENTITY fmt-buildsize "4.5 MB (add 40 MB for tests)">
12 <!ENTITY fmt-time "less than 0.1 SBU (add 0.2 SBU for tests)">
13]>
14
15<sect1 id="fmt" xreflabel="fmt-&fmt-version;">
16 <?dbhtml filename="fmt.html"?>
17
18
19 <title>fmt-&fmt-version;</title>
20
21 <indexterm zone="fmt">
22 <primary sortas="a-fmt">fmt</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to fmt</title>
27
28 <para>
29 The <application>fmt</application> package is an open-source formatting
30 library providing a fast and safe alternative to C stdio and C++
31 iostreams.</para>
32 &lfs121_checked;
33
34 <bridgehead renderas="sect3">Package Information</bridgehead>
35 <itemizedlist spacing="compact">
36 <listitem>
37 <para>
38 Download (HTTP): <ulink url="&fmt-download-http;"/>
39 </para>
40 </listitem>
41 <listitem>
42 <para>
43 Download (FTP): <ulink url="&fmt-download-ftp;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &fmt-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &fmt-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &fmt-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &fmt-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67<!--
68 <bridgehead renderas="sect3">Fmt Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Required</bridgehead>
71 <para role="required">
72 <xref linkend="glib2"/> and
73 <xref linkend="libsigc"/>
74 </para>
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">
78 <xref linkend="doxygen"/>,
79 <xref linkend="glib-networking"/> (for tests),
80 <xref linkend="gnutls"/> (for tests),
81 <xref linkend="libxslt"/>, and
82 <ulink url="&gnome-download-http;/mm-common">mm-common</ulink>
83 </para>
84-->
85 </sect2>
86
87 <sect2 role="installation">
88 <title>Installation of fmt</title>
89
90 <para>
91 Install <application>fmt</application> by running the following
92 commands:
93 </para>
94
95<screen><userinput>mkdir build &amp;&amp;
96cd build &amp;&amp;
97
98cmake -DCMAKE_INSTALL_PREFIX=/usr \
99 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
100 -DBUILD_SHARED_LIBS=ON \
101 -DFMT_TEST=OFF \
102 -G Ninja .. &amp;&amp;
103ninja</userinput></screen>
104
105 <para>
106 If you have enabled tests, issue: <command>ninja test</command>.
107 </para>
108
109 <para>
110 Now, as the <systemitem class="username">root</systemitem> user:
111 </para>
112
113<screen role="root"><userinput>ninja install</userinput></screen>
114
115 </sect2>
116
117 <sect2 role="commands">
118 <title>Command Explanations</title>
119
120 <para>
121 <parameter>-DFMT_TEST=OFF</parameter>: This switch initializes
122 the package tests. Set to ON if you wish to run tests.
123 </para>
124
125 </sect2>
126
127 <sect2 role="content">
128 <title>Contents</title>
129
130 <segmentedlist>
131 <segtitle>Installed Programs</segtitle>
132 <segtitle>Installed Libraries</segtitle>
133 <segtitle>Installed Directories</segtitle>
134
135 <seglistitem>
136 <seg>
137 None
138 </seg>
139 <seg>
140 libfmt.so
141 </seg>
142 <seg>
143 /usr/include/fmt and
144 /usr/lib/cmake/fmt
145 </seg>
146 </seglistitem>
147 </segmentedlist>
148
149 </sect2>
150
151</sect1>
Note: See TracBrowser for help on using the repository browser.