Magellan Linux

Contents of /trunk/extras/gimp-print/gimp-print-5.2.7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11043 - (show annotations) (download)
Tue Feb 14 12:31:12 2012 UTC (12 years, 4 months ago) by niro
File size: 2777 byte(s)
-fixed a FTBFS
1 # $Id$
2
3 PNAME="gimp-print"
4 PVER="5.2.7"
5 PBUILD="r1"
6
7 PCAT="media-gfx"
8
9 DESCRIPTION="The Gimp-Print package contains high quality drivers for Canon, Epson, Lexmark and PCL printers."
10 HOMEPAGE="http://gimp-print.sourceforge.net/"
11
12 DEPEND=">= net-print/cups-1.5
13 >= media-gfx/imagemagick-6.5
14 >= app-text/ghostscript-gpl-9
15 >= x11-libs/gtk2+-2.24
16 >= dev-lang/perl-5.14
17 >= sys-libs/readline-6.2"
18
19 SDEPEND=">= sys-apps/sed-4
20 >= dev-util/pkgconfig-0.25
21 >= media-gfx/gimp-2.6"
22
23 SRCFILE="gutenprint-${PVER}.tar.bz2"
24 SRCDIR="${BUILDDIR}/gutenprint-${PVER}"
25
26 sminclude mbuild mtools
27
28 SRC_URI=(
29 sourceforge://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${SRCFILE}
31 mirror://${PNAME}/${PNAME}-${PVER}-missing-includes.patch
32 )
33
34 #UP2DATE="updatecmd_sourceforge ${PNAME} gutenprint-5.2 - gutenprint"
35 UP2DATE="updatecmd ${HOMEPAGE} | grep 'Gutenprint.*released!' | sed 's/.*Gutenprint\ \(.*\)\ is.*/\1/;q'"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 cd ${SRCDIR}
41
42 # add missing includes, which fix a FTBFS
43 mpatch ${PNAME}-${PVER}-missing-includes.patch || die
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49
50 mconfigure \
51 --enable-nls \
52 --enable-test \
53 --enable-lexmarkutil \
54 --enable-epson \
55 --enable-libgutenprintui2 \
56 --with-escputil \
57 --with-ghostscript \
58 --with-user-guide \
59 --with-samples \
60 --with-cups \
61 --enable-cups-ppds \
62 --enable-cups-level3-ppds \
63 --with-readline \
64 --disable-translated-cups-ppds \
65 --with-gimp \
66 --with-gimp2-as-gutenprint \
67 --without-foomatic \
68 || die
69
70 # fix ijs
71 sed -i "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die
72
73 mmake || die
74 }
75
76 src_install()
77 {
78 cd ${SRCDIR}
79
80 # needed directories
81 minstalldir /usr/share/gutenprint || die
82
83 mmake DESTDIR=${BINDIR} install || die
84
85 # some other binaries
86 minstallexec test/unprint /usr/share/gutenprint || die
87 minstallexec test/pcl-unprint /usr/share/gutenprint || die
88 minstallexec test/bjc-unprint /usr/share/gutenprint || die
89 minstallexec test/parse-escp2 /usr/share/gutenprint || die
90 minstallexec test/escp2-weavetest /usr/share/gutenprint || die
91 minstallexec test/run-testdither /usr/share/gutenprint || die
92 minstallexec test/run-weavetest /usr/share/gutenprint || die
93 minstallexec test/testdither /usr/share/gutenprint || die
94
95 # docs
96 minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README \
97 doc/gutenprint-users-manual.{pdf,odt} || die
98
99 # clean up non-wanted and already installed docs
100 rm -fR ${BINDIR}/usr/share/gutenprint/doc || die
101 }
102
103 postinstall()
104 {
105 echo
106 echo "Please restart cups with following command:"
107 echo " /etc/init.d/cups restart"
108 echo "This command may take a very long time (up to 10 minutes) to complete."
109 echo "Don't panic while CUPS is rescanning the list of PPD files."
110 echo "The long delay will happen only once."
111 echo
112 }