Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29486 - (hide annotations) (download)
Mon Jun 19 07:25:43 2017 UTC (7 years ago) by niro
File size: 2726 byte(s)
auto added: ver bump to 5.2.12-r1
1 niro 29486 # $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-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     }