Contents of /trunk/extras/gimp-print/gimp-print-5.2.12-r1.smage2
Parent Directory | Revision Log
Revision 29487 -
(show annotations)
(download)
Mon Jun 19 07:36:08 2017 UTC (7 years, 3 months ago) by niro
File size: 2610 byte(s)
Mon Jun 19 07:36:08 2017 UTC (7 years, 3 months ago) by niro
File size: 2610 byte(s)
auto added: ver bump to 5.2.12-r1
1 | # $Id$ |
2 | |
3 | PNAME="gimp-print" |
4 | PVER="5.2.12" |
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/libcups-2.2 |
13 | >= media-gfx/imagemagick-7.0 |
14 | >= app-text/ghostscript-gpl-9 |
15 | >= x11-libs/gtk2+-2.24 |
16 | >= dev-lang/perl-5.24 |
17 | >= sys-libs/readline-7.0" |
18 | |
19 | SDEPEND=">= virtual/sed |
20 | >= dev-util/pkgconfig-0.25 |
21 | >= net-print/cups-2.2 |
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|available]!' | grep -v -- -pre | 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-libgutenprintui2 \ |
47 | --with-cups \ |
48 | --enable-cups-ppds \ |
49 | --enable-cups-level3-ppds \ |
50 | --with-readline \ |
51 | --disable-translated-cups-ppds \ |
52 | --with-gimp2-as-gutenprint \ |
53 | --disable-static-genppd \ |
54 | --enable-cups-ppds \ |
55 | || die |
56 | |
57 | # fix ijs |
58 | sed -i "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die |
59 | |
60 | mmake || die |
61 | } |
62 | |
63 | src_install() |
64 | { |
65 | cd ${SRCDIR} |
66 | |
67 | # needed directories |
68 | minstalldir /usr/share/gutenprint || die |
69 | |
70 | mmake DESTDIR=${BINDIR} install || die |
71 | |
72 | # some other binaries |
73 | minstallexec test/unprint /usr/share/gutenprint || die |
74 | minstallexec test/pcl-unprint /usr/share/gutenprint || die |
75 | minstallexec test/bjc-unprint /usr/share/gutenprint || die |
76 | minstallexec test/parse-escp2 /usr/share/gutenprint || die |
77 | minstallexec test/escp2-weavetest /usr/share/gutenprint || die |
78 | minstallexec test/run-testdither /usr/share/gutenprint || die |
79 | minstallexec test/run-weavetest /usr/share/gutenprint || die |
80 | minstallexec test/testdither /usr/share/gutenprint || die |
81 | |
82 | # docs |
83 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README \ |
84 | doc/gutenprint-users-manual.{pdf,odt} || die |
85 | |
86 | # clean up non-wanted and already installed docs |
87 | rm -fR ${BINDIR}/usr/share/gutenprint/doc || die |
88 | } |
89 | |
90 | postinstall() |
91 | { |
92 | echo |
93 | echo "Please run '/usr/sbin/cups-genppdupdate' and" |
94 | echo "restart cups with following command:" |
95 | echo " systemctl restart cups.service" |
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 | } |