Contents of /branches/R11-unstable/extras/gimp-print/gimp-print-5.2.10-r1.smage2
Parent Directory | Revision Log
Revision 25251 -
(show annotations)
(download)
Tue Nov 25 03:17:40 2014 UTC (9 years, 10 months ago) by niro
File size: 2696 byte(s)
Tue Nov 25 03:17:40 2014 UTC (9 years, 10 months ago) by niro
File size: 2696 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="gimp-print" |
4 | PVER="5.2.10" |
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.7 |
13 | >= media-gfx/imagemagick-6.8 |
14 | >= net-print/libcups-1.7 |
15 | >= app-text/ghostscript-gpl-9 |
16 | >= x11-libs/gtk2+-2.24 |
17 | >= dev-lang/perl-5.20 |
18 | >= sys-libs/readline-6.3" |
19 | |
20 | SDEPEND=">= virtual/sed |
21 | >= dev-util/pkgconfig-0.25 |
22 | >= media-gfx/gimp-2.8" |
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 | ) |
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_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | |
43 | mconfigure \ |
44 | --enable-nls \ |
45 | --enable-test \ |
46 | --enable-lexmarkutil \ |
47 | --enable-epson \ |
48 | --enable-libgutenprintui2 \ |
49 | --with-escputil \ |
50 | --with-ghostscript \ |
51 | --with-user-guide \ |
52 | --with-samples \ |
53 | --with-cups \ |
54 | --enable-cups-ppds \ |
55 | --enable-cups-level3-ppds \ |
56 | --with-readline \ |
57 | --disable-translated-cups-ppds \ |
58 | --with-gimp \ |
59 | --with-gimp2-as-gutenprint \ |
60 | --without-foomatic \ |
61 | || die |
62 | |
63 | # fix ijs |
64 | sed -i "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die |
65 | |
66 | mmake || die |
67 | } |
68 | |
69 | src_install() |
70 | { |
71 | cd ${SRCDIR} |
72 | |
73 | # needed directories |
74 | minstalldir /usr/share/gutenprint || die |
75 | |
76 | mmake DESTDIR=${BINDIR} install || die |
77 | |
78 | # some other binaries |
79 | minstallexec test/unprint /usr/share/gutenprint || die |
80 | minstallexec test/pcl-unprint /usr/share/gutenprint || die |
81 | minstallexec test/bjc-unprint /usr/share/gutenprint || die |
82 | minstallexec test/parse-escp2 /usr/share/gutenprint || die |
83 | minstallexec test/escp2-weavetest /usr/share/gutenprint || die |
84 | minstallexec test/run-testdither /usr/share/gutenprint || die |
85 | minstallexec test/run-weavetest /usr/share/gutenprint || die |
86 | minstallexec test/testdither /usr/share/gutenprint || die |
87 | |
88 | # docs |
89 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README \ |
90 | doc/gutenprint-users-manual.{pdf,odt} || die |
91 | |
92 | # clean up non-wanted and already installed docs |
93 | rm -fR ${BINDIR}/usr/share/gutenprint/doc || die |
94 | } |
95 | |
96 | postinstall() |
97 | { |
98 | echo |
99 | echo "Please run '/usr/sbin/cups-genppdupdate' and" |
100 | echo "restart cups with following command:" |
101 | echo " systemctl restart cups.service" |
102 | echo "This command may take a very long time (up to 10 minutes) to complete." |
103 | echo "Don't panic while CUPS is rescanning the list of PPD files." |
104 | echo "The long delay will happen only once." |
105 | echo |
106 | } |