Magellan Linux

Contents of /trunk/extras/cups-pdf/cups-pdf-2.5.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5332 - (show annotations) (download)
Tue Apr 20 21:50:45 2010 UTC (14 years, 1 month ago) by niro
File size: 1852 byte(s)
auto added: ver bump to 2.5.0-r1
1 # $Id$
2
3 PNAME="cups-pdf"
4 PVER="2.5.0"
5 PBUILD="r1"
6
7 PCATEGORIE="net-print"
8 STATE="unstable"
9
10 DESCRIPTION="cups-pdf produces PDF files by providing a PDF printer via cups."
11 HOMEPAGE="http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/"
12
13 DEPEND=">= net-print/cups-1.4
14 >= app-text/ghostscript-gpl-8.70"
15
16 SRCFILE="${PNAME}_${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude mtools
20
21 SRC_URI=(
22 http://www.physik.uni-wuerzburg.de/~vrbehr/${PNAME}/src/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2DATE="updatecmd ${HOMEPAGE}/download.shtml | lasttarball gz"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}/src
32
33 # set cups user to lp instead of nobody
34 sed -i "s:nobody:lp:" cups-pdf.h || die
35
36 # setup log verbosity level to 2 (status)
37 sed -i "s:CPLOGTYPE 3:CPLOGTYPE 2:" cups-pdf.h || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}/src
43 gcc ${CFLAGS} -o cups-pdf cups-pdf.c || die
44 }
45
46 src_install()
47 {
48 cd ${SRCDIR}
49
50 # needed directories
51 minstalldir /etc/cups || die
52 minstalldir /usr/$(mlibdir)/cups/backend || die
53 minstalldir /usr/share/cups/model || die
54
55 # binary
56 minstallexec src/cups-pdf /usr/$(mlibdir)/cups/backend || die
57 # perms *must* be 0700 or cups doesn't find anything
58 mchmod 0700 /usr/$(mlibdir)/cups/backend || die
59
60 # printer description
61 minstallfile extra/CUPS-PDF.ppd /usr/share/cups/model || die
62
63 # config
64 minstallfile extra/cups-pdf.conf /etc/cups || die
65
66 minstalldocs COPYING ChangeLog README || die
67 }
68
69 postinstall()
70 {
71 echo
72 echo "You need to restart the cups daemon in order to use this software."
73 echo "After that you will be able to add a pdf printer to your system."
74 echo
75 echo "Select 'Virtual Printer (PDF Printer)' and than as driver vendor 'Postscript'"
76 echo "You should find there a 'Generic postscript color printer'"
77 echo "Now your system is ready to provide a network pdf-printer :)"
78 echo
79 }

Properties

Name Value
svn:keywords Id