Changeset aaf26b3


Ignore:
Timestamp:
08/20/2024 12:05:01 PM (3 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/for-12.3
Parents:
c84b816d
Message:

fontconfig: Don't make doc installation over-complex

Even without --disable-docs, make should guarantee not to invoke the
optional dependencies to regenerate the existing docs (otherwise you
have a broken timestamp and we don't support such a breakage).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/graphlib/fontconfig.xml

    rc84b816d raaf26b3  
    9292      (both used by some tests for downloading and extracting test files),
    9393      <xref linkend="json-c"/>,
    94       <xref linkend="docbook-utils"/> and
     94    </para>
     95
     96    <bridgehead renderas="sect4">Optional for regenerating the documentation</bridgehead>
     97    <para>
     98      These dependencies are only used if you've modified some files in
     99      the <filename class='directory'>doc</filename> directory in the source
     100      code tree:
     101      <xref linkend="docbook-utils"/>,
    95102      <xref linkend="libxml2"/>,
     103      <xref linkend="perl-sgmlspm"/>, and
    96104      <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
    97105    </para>
    98106
    99107    &test-use-internet;
    100 
    101     <note>
    102       <para>
    103         If you have <application>DocBook Utils</application> installed and
    104         you remove the <parameter>--disable-docs</parameter> parameter from
    105         the <command>configure</command> command below, you must have
    106         <xref linkend="perl-sgmlspm"/> and <xref linkend="texlive"/> installed
    107         also, or the <application>Fontconfig</application> build will fail.
    108       </para>
    109     </note>
    110108
    111109  </sect2>
     
    122120            --sysconfdir=/etc    \
    123121            --localstatedir=/var \
    124             --disable-docs       \
    125122            --docdir=/usr/share/doc/fontconfig-&fontconfig-version; &amp;&amp;
    126123make</userinput></screen>
     
    137134
    138135<screen role="root"><userinput>make install</userinput></screen>
    139 
    140     <para>
    141       If you did not remove the <parameter>--disable-docs</parameter>
    142       parameter from the <command>configure</command> command, you can install
    143       the pre-generated documentation by using the following commands as the
    144       <systemitem class="username">root</systemitem> user:
    145     </para>
    146 
    147 <screen role="root"><userinput>install -v -dm755 \
    148         /usr/share/{man/man{1,3,5},doc/fontconfig-&fontconfig-version;/fontconfig-devel} &amp;&amp;
    149 install -v -m644 fc-*/*.1         /usr/share/man/man1 &amp;&amp;
    150 install -v -m644 doc/*.3          /usr/share/man/man3 &amp;&amp;
    151 install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &amp;&amp;
    152 install -v -m644 doc/fontconfig-devel/* \
    153                                   /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &amp;&amp;
    154 install -v -m644 doc/*.{pdf,sgml,txt,html} \
    155                                   /usr/share/doc/fontconfig-&fontconfig-version;</userinput></screen>
    156 
    157   </sect2>
    158 
    159   <sect2 role="commands">
    160     <title>Command Explanations</title>
    161 
    162     <para>
    163       <parameter>--disable-docs</parameter>: This switch avoids building the
    164       documentation (the release tarball includes pre-generated
    165       documentation).
    166     </para>
    167136
    168137  </sect2>
Note: See TracChangeset for help on using the changeset viewer.