Contents of /trunk/todo/cups-pdf/cups-pdf-2.4.7-r1.smage2
Parent Directory | Revision Log
Revision 2518 -
(show annotations)
(download)
Thu Jul 9 20:25:04 2009 UTC (15 years, 2 months ago) by niro
File size: 1879 byte(s)
Thu Jul 9 20:25:04 2009 UTC (15 years, 2 months ago) by niro
File size: 1879 byte(s)
-moved to 'todo'
1 | # $Header: /magellan-cvs/smage/cups-pdf/cups-pdf-2.4.7-r1.smage2,v 1.2 2008/04/18 21:40:03 niro Exp $ |
2 | |
3 | PNAME="cups-pdf" |
4 | PVER="2.4.7" |
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.3 |
14 | >= app-text/ghostscript-esp-8" |
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 | src_prepare() |
27 | { |
28 | munpack ${SRCFILE} || die |
29 | cd ${SRCDIR}/src |
30 | |
31 | # set cups user to lp instead of nobody |
32 | sed -i "s:nobody:lp:" cups-pdf.h || die |
33 | |
34 | # setup log verbosity level to 2 (status) |
35 | sed -i "s:CPLOGTYPE 3:CPLOGTYPE 2:" cups-pdf.h || die |
36 | } |
37 | |
38 | src_compile() |
39 | { |
40 | cd ${SRCDIR}/src |
41 | gcc ${CFLAGS} -o cups-pdf cups-pdf.c || die |
42 | } |
43 | |
44 | src_install() |
45 | { |
46 | cd ${SRCDIR} |
47 | |
48 | # needed directories |
49 | minstalldir /etc/cups || die |
50 | minstalldir /usr/$(mlibdir)/cups/backend || die |
51 | minstalldir /usr/share/cups/model || die |
52 | |
53 | # binary |
54 | minstallexec src/cups-pdf /usr/$(mlibdir)/cups/backend || die |
55 | # perms *must* be 0700 or cups doesn't find anything |
56 | mchmod 0700 /usr/$(mlibdir)/cups/backend || die |
57 | |
58 | # printer description |
59 | minstallfile extra/CUPS-PDF.ppd /usr/share/cups/model || die |
60 | |
61 | # config |
62 | minstallfile extra/cups-pdf.conf /etc/cups || die |
63 | |
64 | minstalldocs COPYING ChangeLog README || die |
65 | } |
66 | |
67 | postinstall() |
68 | { |
69 | echo |
70 | echo "You need to restart the cups daemon in order to use this software." |
71 | echo "After that you will be able to add a pdf printer to your system." |
72 | echo |
73 | echo "Select 'Virtual Printer (PDF Printer)' and than as driver vendor 'Postscript'" |
74 | echo "You should find there a 'Generic postscript color printer'" |
75 | echo "Now your system is ready to provide a network pdf-printer :)" |
76 | echo |
77 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |