Annotation of /trunk/extras/cups-pdf/cups-pdf-2.4.7-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1776 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1776 byte(s)
import repo
1 | niro | 2 | # $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 | |||
56 | # printer description | ||
57 | minstallfile extra/CUPS-PDF.ppd /usr/share/cups/model || die | ||
58 | |||
59 | # config | ||
60 | minstallfile extra/cups-pdf.conf /etc/cups || die | ||
61 | |||
62 | minstalldocs COPYING ChangeLog README || die | ||
63 | } | ||
64 | |||
65 | postinstall() | ||
66 | { | ||
67 | echo | ||
68 | echo "You need to restart the cups daemon in order to use this software." | ||
69 | echo "After that you will be able to add a pdf printer to your system." | ||
70 | echo | ||
71 | echo "Select 'Virtual Printer (PDF Printer)' and than as driver vendor 'Postscript'" | ||
72 | echo "You should find there a 'Generic postscript color printer'" | ||
73 | echo "Now your system is ready to provide a network pdf-printer :)" | ||
74 | echo | ||
75 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |