Magellan Linux

Annotation of /trunk/extras/gimp-print/gimp-print-5.2.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id