Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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