Fixes for recent changes in shared-mime-info

- Except for dependencies, role="optional" has no meaning for
  jhalfs.
- Each additional download should be in an independant listitem
- It's better to use remap="test" for instructions only needed
  for tests. Note that remap="test" has only a meaning in a screen
  tag, otherwise jhalfs ignores it.
This commit is contained in:
Pierre Labastie 2021-11-20 14:13:40 +01:00
parent e3b4ce180f
commit db4c8fb030

View File

@ -83,11 +83,13 @@ xreflabel="shared-mime-info-&shared-mime-info-version;">
Required patch to allow building with meson-0.60 and later:
<ulink url="&patch-root;/shared-mime-info-&shared-mime-info-version;-meson_0.60_fix-1.patch"/>
</para>
<para role="optional">
Optional download, required to run the testsuite:
<ulink url="&xdgmime-download-http;"/>
</listitem>
<listitem>
<para>
Optional download, required to run the testsuite:
<ulink url="&xdgmime-download-http;"/>
</para>
<para role="optional">
<para>
xdgmime md5sum: &xdgmime-md5sum;
</para>
</listitem>
@ -116,13 +118,13 @@ xreflabel="shared-mime-info-&shared-mime-info-version;">
following commands:
</para>
<para role="optional">
<para>
If you wish to run the test suite, you must first extract the
<filename>xdgmime</filename> tarball into the current directory,
and compile it so that <command>meson</command> can find it:
</para>
<screen role="optional"><userinput>tar -xf ../xdgmime.tar.xz &amp;&amp;
<screen remap="test"><userinput>tar -xf ../xdgmime.tar.xz &amp;&amp;
make -C xdgmime</userinput></screen>
<para>
@ -130,7 +132,7 @@ make -C xdgmime</userinput></screen>
apply a patch:
</para>
<screen><userinput>patch -p1 -i ../shared-mime-info-&shared-mime-info-version;-shared-mime-info_meson_0.60_fix-1.patch</userinput></screen>
<screen><userinput>patch -p1 -i ../shared-mime-info-&shared-mime-info-version;-meson_0.60_fix-1.patch</userinput></screen>
<para>
Now build the package: