Magellan Linux

Annotation of /branches/R11-stable/extras/epdfview/epdfview-0.1.8-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16437 - (hide annotations) (download)
Fri Feb 8 14:52:07 2013 UTC (11 years, 4 months ago) by niro
Original Path: trunk/extras/epdfview/epdfview-0.1.8-r3.smage2
File size: 1285 byte(s)
-fix build against newer cups and added missing cups sdepend
1 niro 16434 # $Id$
2    
3     PNAME="epdfview"
4     PVER="0.1.8"
5     PBUILD="r3"
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.34
13     >= x11-libs/gtk2+-2.24
14     >= app-text/poppler-glib-0.21
15     >= net-print/cups-1.5"
16    
17     SDEPEND=">= sys-dev/autoconf-9
18     >= sys-dev/automake-4
19 niro 16437 >= sys-dev/gettext-0.18
20     >= net-print/cups-1.6.1"
21 niro 16434
22     SRCFILE="${PNAME}-${PVER}.tar.bz2"
23     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24    
25     sminclude mbuild mtools
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 niro 16436 mirror://${PNAME}/${PNAME}-${PVER}-glib2.patch
32 niro 16437 mirror://${PNAME}/${PNAME}-${PVER}-cups161.patch
33 niro 16434 )
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 niro 16436
45     # fix build against newer glib-2
46     mpatch ${PNAME}-${PVER}-glib2.patch || die
47 niro 16437
48     # fix build against newer cups
49     mpatch ${PNAME}-${PVER}-cups161.patch || die
50 niro 16434 }
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     }