Changeset b69c81fa for pst/ps


Ignore:
Timestamp:
09/26/2023 11:39:07 PM (7 months ago)
Author:
Ken Moffat <ken@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
ddb61e9
Parents:
9aa6fdb
Message:

Use the gtk3 fork of epdfview.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pst/ps/epdfview.xml

    r9aa6fdb rb69c81fa  
    55  %general-entities;
    66
    7   <!ENTITY epdfview-download-http "&sources-anduin-http;/epdfview/epdfview-&epdfview-version;.tar.bz2">
     7  <!ENTITY epdfview-download-http "&sources-anduin-http;/epdfview-gtk3/epdfview-&epdfview-version;.tar.xz">
    88  <!ENTITY epdfview-download-ftp  " ">
    9   <!ENTITY epdfview-md5sum        "e50285b01612169b2594fea375f53ae4">
    10   <!ENTITY epdfview-size          "456 KB">
    11   <!ENTITY epdfview-buildsize     "6 MB">
    12   <!ENTITY epdfview-time          "less than 0.1 SBU">
     9  <!ENTITY epdfview-md5sum        "d222a3dc26c2faf6f862018bb478fb36">
     10  <!ENTITY epdfview-size          "184 KB">
     11  <!ENTITY epdfview-buildsize     "3.5 MB">
     12  <!ENTITY epdfview-time          "less than 0.1 SBU (using parallelism=4)">
    1313]>
    1414
     
    2424
    2525  <sect2 role="package">
    26     <title>Introduction to ePDFView</title>
    27 
    28     <para>
    29       <application>ePDFView</application> is a free standalone lightweight PDF
    30       document viewer using <application>Poppler</application> and
    31       <application>GTK+</application> libraries. It is a good replacement for
     26    <title>Introduction to ePDFView-gtk3</title>
     27
     28    <para>
     29      <application>ePDFView-gtk3</application> is a fork of the old
     30      <application>ePDFView</application> program. Although the github repository
     31      <ulink url="https://github.com/Flow-It/epdfview_old.git"/>  names it as
     32      'old' it is indeed the gtk3 fork. It is a lightweight replacement for
    3233      <application>Evince</application> as it does not rely upon
    33       <application>GNOME</application> libraries.
     34      <application>GNOME</application> libraries and is more capable than
     35      <application>MuPDF</application>.
    3436    </para>
    3537
     
    7072    </itemizedlist>
    7173
    72     <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    73     <itemizedlist spacing='compact'>
    74       <listitem>
    75         <para>
    76           Required patch: <ulink url=
    77           "&patch-root;/epdfview-&epdfview-version;-fixes-2.patch"/>
    78         </para>
    79       </listitem>
    80     </itemizedlist>
    81 
    8274    <bridgehead renderas="sect3">ePDFView Dependencies</bridgehead>
    8375
    8476    <bridgehead renderas="sect4">Required</bridgehead>
    8577    <para role="required">
    86       <xref linkend="gtk2"/> and
     78      <xref linkend="gtk3"/> and
    8779      <xref linkend="poppler"/>
    8880    </para>
    8981
    90     <bridgehead renderas="sect4">Recommended (mainly for
    91     Desktop Environments)</bridgehead>
     82    <bridgehead renderas="sect4">Recommended</bridgehead>
    9283    <para role="Recommended">
     84      <xref linkend="cups"/> (to access print queues)
    9385      <xref linkend="desktop-file-utils"/> and
    94       <xref linkend="hicolor-icon-theme"/>
     86      <xref linkend="hicolor-icon-theme"/> (both for the icons this installs)
    9587    </para>
    9688
    9789    <bridgehead renderas="sect4">Optional</bridgehead>
    9890    <para role="optional">
    99       <xref linkend="cups"/>
    100     </para>
    101 
     91      The home page of the project's repository mentions that there are optional
     92      dependencies, enabled by switches, for building the documentation and testsuite,
     93      <xref linkend="doxygen"/> and
     94      <ulink url='https://freedesktop.org/wiki/Software/cppunit/'>Cppunit</ulink>.
     95      Unfortunately <application>doxygen</application> only installs a skeletal
     96      page about itself, not any package documentation, and the test code does not
     97      compile with tecent versions of C++.
     98    </para>
    10299  </sect2>
    103100
    104101  <sect2 role="installation">
    105     <title>Installation of ePDFView</title>
    106 
    107     <para>
    108       Install <application>ePDFView</application> by running the following
     102    <title>Installation of ePDFView-gtk3</title>
     103
     104    <para>
     105      Install <application>ePDFView-gtk3</application> by running the following
    109106      commands:
    110107    </para>
    111108
    112 <screen><userinput>patch -Np1 -i ../epdfview-&epdfview-version;-fixes-2.patch &amp;&amp;
    113 ./configure --prefix=/usr &amp;&amp;
    114 make</userinput></screen>
    115 
    116     <para>
    117       This package does not come with a test suite.
     109<screen><userinput>
     110mkdir build &amp;&amp;
     111cd build    &amp;&amp;
     112
     113meson setup --prefix=/usr           \
     114            --buildtype=release     \
     115            --Denable-printing=true \
     116            ..                     &amp;&amp;
     117ninja</userinput></screen>
     118
     119    <para>
     120      This package does not come with a buildable test suite.
    118121    </para>
    119122
     
    122125    </para>
    123126
    124 <screen role="root"><userinput>make install</userinput></screen>
    125 
    126     <para>
    127       For Desktop Environment users, further (optional) instructions are necessary for properly displaying <filename>epdfview.desktop</filename> in the menu. As <systemitem class="username">root</systemitem> user:
    128     </para>
    129 
    130 <screen role="root"><userinput>for size in 24 32 48; do
    131   ln -svf ../../../../epdfview/pixmaps/icon_epdfview-$size.png \
    132           /usr/share/icons/hicolor/${size}x${size}/apps
    133 done &amp;&amp;
    134 unset size &amp;&amp;
    135 
    136 update-desktop-database &amp;&amp;
     127<screen role="root"><userinput>
     128ninja install                                                            &amp;&amp;
     129update-desktop-database                                                  &amp;&amp;
    137130gtk-update-icon-cache -t -f --include-image-data /usr/share/icons/hicolor</userinput></screen>
    138131
     
    141134  <sect2 role="commands">
    142135    <title>Command Explanations</title>
    143 
    144 <!-- keep this in case the patch breaks builds without cups
    145     <para>
    146       <command>sed -i 's#/gmacros##' src/gtk/StockIcons.h</command>: This sed
    147       fixes compiling with <application>glib-2.32</application> or greater.
    148     </para> -->
    149 
    150     <para>
    151       <command>patch -Np1 -i ../epdfview-&epdfview-version;-fixes-2.patch</command>
    152       The patch does four things: fixes compiling with
    153       <application>glib-2.32</application> or greater, corrects red appearing as
    154       blue with recent versions of <application>poppler</application>, allows
    155       the application to compile when <xref linkend="cups"/> has been installed,
    156       and fixes the display of embedded png images.
    157     </para>
     136    <para>
     137      <command>--Denable-printing=true</command>: build the code to link to the
     138      <application>cups</application> print queue(s). Omit this if you have not
     139      installed <application>cups</application>.
     140    </para>
     141  </sect2>
     142
     143  <sect2 role="configuration">
     144    <title>Configuring ePDFView-gtk3</title>
     145
     146      <para>
     147        ePDFView-gtk3 has several toggles for optional features, most are
     148        'off' by default, including the toolbar, and if it has been closed with
     149         the menu disabled the program can start with all options not visible
     150         until the relevant function-key toggles are pressed.           
     151        <itemizedlist>
     152          <listitem>
     153            <para>[F6] - toggle toolbar</para>
     154          </listitem>
     155          <listitem>
     156            <para>[F7] - toggle menu</para>
     157          </listitem>
     158          <listitem>
     159            <para>[F8] - toggle invert-colors</para>
     160          </listitem>
     161          <listitem>
     162            <para>[F9] - toggle show-index.</para>
     163          </listitem>
     164          <listitem>
     165            <para>[F11] - toggle fullscreen.</para>
     166          </listitem>
     167        </itemizedlist>
     168      </para>
     169
    158170  </sect2>
    159171
     
    182194        <listitem>
    183195          <para>
    184             is a <application>Gtk+-2</application> program for viewing PDF
     196            is a <application>Gtk+-3</application> program for viewing PDF
    185197            documents
    186198          </para>
Note: See TracChangeset for help on using the changeset viewer.