Magellan Linux

Contents of /branches/magellan-next/extras/gimp-print/gimp-print-5.2.7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9538 - (show annotations) (download)
Tue Dec 6 01:03:10 2011 UTC (12 years, 5 months ago) by niro
File size: 2565 byte(s)
auto added: ver bump to 5.2.7-r1
1 # $Id$
2
3 PNAME="gimp-print"
4 PVER="5.2.7"
5 PBUILD="r1"
6
7 PCATEGORIE="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 )
32
33 #UP2DATE="updatecmd_sourceforge ${PNAME} gutenprint-5.2 - gutenprint"
34 UP2DATE="updatecmd ${HOMEPAGE} | grep 'Gutenprint.*released!' | sed 's/.*Gutenprint\ \(.*\)\ is.*/\1/;q'"
35
36 src_compile()
37 {
38 cd ${SRCDIR}
39
40 mconfigure \
41 --enable-nls \
42 --enable-test \
43 --enable-lexmarkutil \
44 --enable-epson \
45 --enable-libgutenprintui2 \
46 --with-escputil \
47 --with-ghostscript \
48 --with-user-guide \
49 --with-samples \
50 --with-cups \
51 --enable-cups-ppds \
52 --enable-cups-level3-ppds \
53 --with-readline \
54 --disable-translated-cups-ppds \
55 --with-gimp \
56 --with-gimp2-as-gutenprint \
57 --without-foomatic \
58 || die
59
60 # fix ijs
61 sed -i "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die
62
63 mmake || die
64 }
65
66 src_install()
67 {
68 cd ${SRCDIR}
69
70 # needed directories
71 minstalldir /usr/share/gutenprint || die
72
73 mmake DESTDIR=${BINDIR} install || die
74
75 # some other binaries
76 minstallexec test/unprint /usr/share/gutenprint || die
77 minstallexec test/pcl-unprint /usr/share/gutenprint || die
78 minstallexec test/bjc-unprint /usr/share/gutenprint || die
79 minstallexec test/parse-escp2 /usr/share/gutenprint || die
80 minstallexec test/escp2-weavetest /usr/share/gutenprint || die
81 minstallexec test/run-testdither /usr/share/gutenprint || die
82 minstallexec test/run-weavetest /usr/share/gutenprint || die
83 minstallexec test/testdither /usr/share/gutenprint || die
84
85 # docs
86 minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README \
87 doc/gutenprint-users-manual.{pdf,odt} || die
88
89 # clean up non-wanted and already installed docs
90 rm -fR ${BINDIR}/usr/share/gutenprint/doc || die
91 }
92
93 postinstall()
94 {
95 echo
96 echo "Please restart cups with following command:"
97 echo " /etc/init.d/cups restart"
98 echo "This command may take a very long time (up to 10 minutes) to complete."
99 echo "Don't panic while CUPS is rescanning the list of PPD files."
100 echo "The long delay will happen only once."
101 echo
102 }