Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31422 - (hide annotations) (download)
Thu Jul 5 09:34:20 2018 UTC (5 years, 10 months ago) by niro
File size: 2527 byte(s)
auto added: ver bump to 5.2.14-r1
1 niro 31422 # $Id$
2    
3     PNAME="gimp-print"
4     PVER="5.2.14"
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.26
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     mmake || die
58     }
59    
60     src_install()
61     {
62     cd ${SRCDIR}
63    
64     # needed directories
65     minstalldir /usr/share/gutenprint || die
66    
67     mmake DESTDIR=${BINDIR} install || die
68    
69     # some other binaries
70     minstallexec test/unprint /usr/share/gutenprint || die
71     minstallexec test/pcl-unprint /usr/share/gutenprint || die
72     minstallexec test/bjc-unprint /usr/share/gutenprint || die
73     minstallexec test/parse-escp2 /usr/share/gutenprint || die
74     minstallexec test/escp2-weavetest /usr/share/gutenprint || die
75     minstallexec test/run-testdither /usr/share/gutenprint || die
76     minstallexec test/run-weavetest /usr/share/gutenprint || die
77     minstallexec test/testdither /usr/share/gutenprint || die
78    
79     # docs
80     minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README \
81     doc/gutenprint-users-manual.{pdf,odt} || die
82    
83     # clean up non-wanted and already installed docs
84     rm -fR ${BINDIR}/usr/share/gutenprint/doc || die
85     }
86    
87     postinstall()
88     {
89     echo
90     echo "Please run '/usr/sbin/cups-genppdupdate' and"
91     echo "restart cups with following command:"
92     echo " systemctl restart cups.service"
93     echo "This command may take a very long time (up to 10 minutes) to complete."
94     echo "Don't panic while CUPS is rescanning the list of PPD files."
95     echo "The long delay will happen only once."
96     echo
97     }