summaryrefslogtreecommitdiff
blob: b2d8cee6314ee33e8acf650b3aade1371ad66853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/cups-pdf/cups-pdf-1.6.4.ebuild,v 1.3 2004/12/20 20:45:52 lanius Exp $

DESCRIPTION="Provides a virtual printer for CUPS to produce PDF files."
HOMEPAGE="http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/"
MY_P="${PN}_${PV/_/}"
SRC_URI="http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~amd64 ~sparc ~ppc"
IUSE=""

DEPEND="net-print/cups
	virtual/ghostscript"

src_compile() {
	cd src
	sed -i -e "s:CPLOGTYPE 3:CPLOGTYPE 2:" \
		   -e "s:CPSH \"-s /bin/sh\":CPSH \"\":" \
		   -e "s:nobody:lp:" cups-pdf.h
	gcc ${CFLAGS} -o cups-pdf cups-pdf.c || die "Compilation failed."
}

src_install () {
	dodir /usr/lib/cups/backend
	exeinto /usr/lib/cups/backend
	doexe src/cups-pdf

	dodir /usr/share/cups/model
	insinto /usr/share/cups/model
	doins extra/PostscriptColor.ppd.gz

	dodoc ${FILESDIR}/README.gentoo
}

pkg_postinst () {
	einfo "You will find some informations about cups-pdf in this file:"
	einfo "/usr/share/doc/${PF}/README.gentoo.gz"
}