Magellan Linux

Contents of /branches/R11-unstable/extras/epdfview/epdfview-0.1.8-r8.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32824 - (show annotations) (download)
Mon Apr 29 13:45:37 2019 UTC (5 years ago) by niro
File size: 1392 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="epdfview"
4 PVER="0.1.8"
5 PBUILD="r8"
6
7 PCAT="app-text"
8
9 DESCRIPTION="Lightweight PDF document viewer."
10 HOMEPAGE="http://trac.emma-soft.com/epdfview"
11
12 DEPEND=">= dev-libs/glib2-2.52
13 >= x11-libs/gtk2+-2.24
14 >= app-text/poppler-glib-0.54
15 >= net-print/libcups-2.1
16 >= sys-libs/libstdc++-6.3"
17
18 SDEPEND=">= sys-dev/autoconf-9
19 >= sys-dev/automake-4
20 >= sys-dev/gettext-0.18"
21
22 SRCFILE="${PNAME}-${PVER}.tar.bz2"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 sminclude mbuild mtools fdo-mime
26
27 SRC_URI=(
28 http://trac.emma-soft.com/${PNAME}/chrome/site/releases/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${PNAME}-${PVER}-swap-colors-with-poppler-0.18.patch
31 mirror://${PNAME}/${PNAME}-${PVER}-glib2.patch
32 mirror://${PNAME}/${PNAME}-${PVER}-cups161.patch
33 )
34
35 UP2DATE="updatecmd ${HOMEPAGE}/wiki/Download | firsttarball"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 cd ${SRCDIR}
41
42 # fix color channel issue with poppler-0.18
43 mpatch ${PNAME}-${PVER}-swap-colors-with-poppler-0.18.patch || die
44
45 # fix build against newer glib-2
46 mpatch ${PNAME}-${PVER}-glib2.patch || die
47
48 # fix build against newer cups
49 mpatch ${PNAME}-${PVER}-cups161.patch || die
50 }
51
52 src_install()
53 {
54 cd ${SRCDIR}
55 mbuild_src_install || die
56 # install missing icon
57 minstallpixmap data/icon_epdfview-48.png || die
58 }
59
60 postinstall()
61 {
62 fdo-mime_update_desktop_db
63 }
64
65 postremove()
66 {
67 fdo-mime_update_desktop_db
68 }