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