Contents of /branches/R11-stable/extras/gimp-print/gimp-print-5.2.9-r1.smage2
Parent Directory | Revision Log
Revision 15134 -
(show annotations)
(download)
Wed Jan 2 10:46:28 2013 UTC (11 years, 5 months ago) by niro
File size: 2843 byte(s)
Wed Jan 2 10:46:28 2013 UTC (11 years, 5 months ago) by niro
File size: 2843 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="gimp-print" |
4 | PVER="5.2.9" |
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.16 |
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 | # disable src_check which takes way too long |
28 | msetfeature "!check" |
29 | |
30 | SRC_URI=( |
31 | sourceforge://${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/${PNAME}-${PVER}-missing-includes.patch |
34 | ) |
35 | |
36 | #UP2DATE="updatecmd_sourceforge ${PNAME} gutenprint-5.2 - gutenprint" |
37 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'Gutenprint.*released!' | sed 's/.*Gutenprint\ \(.*\)\ is.*/\1/;q'" |
38 | |
39 | src_prepare() |
40 | { |
41 | munpack ${SRCFILE} || die |
42 | cd ${SRCDIR} |
43 | |
44 | # add missing includes, which fix a FTBFS |
45 | mpatch ${PNAME}-${PVER}-missing-includes.patch || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | |
52 | mconfigure \ |
53 | --enable-nls \ |
54 | --enable-test \ |
55 | --enable-lexmarkutil \ |
56 | --enable-epson \ |
57 | --enable-libgutenprintui2 \ |
58 | --with-escputil \ |
59 | --with-ghostscript \ |
60 | --with-user-guide \ |
61 | --with-samples \ |
62 | --with-cups \ |
63 | --enable-cups-ppds \ |
64 | --enable-cups-level3-ppds \ |
65 | --with-readline \ |
66 | --disable-translated-cups-ppds \ |
67 | --with-gimp \ |
68 | --with-gimp2-as-gutenprint \ |
69 | --without-foomatic \ |
70 | || die |
71 | |
72 | # fix ijs |
73 | sed -i "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die |
74 | |
75 | mmake || die |
76 | } |
77 | |
78 | src_install() |
79 | { |
80 | cd ${SRCDIR} |
81 | |
82 | # needed directories |
83 | minstalldir /usr/share/gutenprint || die |
84 | |
85 | mmake DESTDIR=${BINDIR} install || die |
86 | |
87 | # some other binaries |
88 | minstallexec test/unprint /usr/share/gutenprint || die |
89 | minstallexec test/pcl-unprint /usr/share/gutenprint || die |
90 | minstallexec test/bjc-unprint /usr/share/gutenprint || die |
91 | minstallexec test/parse-escp2 /usr/share/gutenprint || die |
92 | minstallexec test/escp2-weavetest /usr/share/gutenprint || die |
93 | minstallexec test/run-testdither /usr/share/gutenprint || die |
94 | minstallexec test/run-weavetest /usr/share/gutenprint || die |
95 | minstallexec test/testdither /usr/share/gutenprint || die |
96 | |
97 | # docs |
98 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README \ |
99 | doc/gutenprint-users-manual.{pdf,odt} || die |
100 | |
101 | # clean up non-wanted and already installed docs |
102 | rm -fR ${BINDIR}/usr/share/gutenprint/doc || die |
103 | } |
104 | |
105 | postinstall() |
106 | { |
107 | echo |
108 | echo "Please restart cups with following command:" |
109 | echo " /etc/init.d/cups restart" |
110 | echo "This command may take a very long time (up to 10 minutes) to complete." |
111 | echo "Don't panic while CUPS is rescanning the list of PPD files." |
112 | echo "The long delay will happen only once." |
113 | echo |
114 | } |