Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2504 byte(s)
import repo
1 niro 2 # $Header: /magellan-cvs/smage/gimp-print/gimp-print-5.1.7-r1.smage2,v 1.1 2008/04/18 21:08:38 niro Exp $
2    
3     PNAME="gimp-print"
4     PVER="5.1.7"
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.3
14     >= media-gfx/imagemagick-6.4
15     >= app-text/ghostscript-esp-8
16     >= x11-libs/gtk2+-2.12
17     >= dev-lang/perl-5.10
18     >= sys-libs/readline-5.2"
19    
20     SDEPEND=">= sys-apps/sed-4
21     >= dev-util/pkgconfig-0.23
22     >= media-gfx/gimp-2.4"
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     src_compile()
35     {
36     cd ${SRCDIR}
37    
38     mconfigure \
39     --enable-nls \
40     --enable-test \
41     --enable-lexmarkutil \
42     --enable-epson \
43     --enable-libgutenprintui2 \
44     --with-escputil \
45     --with-ghostscript \
46     --with-user-guide \
47     --with-samples \
48     --with-cups \
49     --enable-cups-ppds \
50     --enable-cups-level3-ppds \
51     --with-readline \
52     --disable-translated-cups-ppds \
53     --with-gimp \
54     --with-gimp2-as-gutenprint \
55     --without-foomatic \
56     || die
57    
58     # fix ijs
59     sed -i "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die
60    
61     mmake || die
62     }
63    
64     src_install()
65     {
66     cd ${SRCDIR}
67    
68     # needed directories
69     minstalldir /usr/share/gutenprint || die
70    
71     mmake DESTDIR=${BINDIR} install || die
72    
73     # some other binaries
74     minstallexec test/unprint /usr/share/gutenprint || die
75     minstallexec test/pcl-unprint /usr/share/gutenprint || die
76     minstallexec test/bjc-unprint /usr/share/gutenprint || die
77     minstallexec test/parse-escp2 /usr/share/gutenprint || die
78     minstallexec test/escp2-weavetest /usr/share/gutenprint || die
79     minstallexec test/run-testdither /usr/share/gutenprint || die
80     minstallexec test/run-weavetest /usr/share/gutenprint || die
81     minstallexec test/testdither /usr/share/gutenprint || die
82    
83     # docs
84     minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README \
85     doc/gutenprint-users-manual.{pdf,odt} || die
86    
87     # clean up non-wanted and already installed docs
88     rm -fR ${BINDIR}/usr/share/gutenprint/doc || die
89     }
90    
91     postinstall()
92     {
93     echo
94     echo "Please restart cups with following command:"
95     echo " /etc/init.d/cups restart"
96     echo "This command may take a very long time (up to 10 minutes) to complete."
97     echo "Don't panic while CUPS is rescanning the list of PPD files."
98     echo "The long delay will happen only once."
99     echo
100     }

Properties

Name Value
svn:keywords Id