blob: 504a534aec69ba01c9438021b3f83c34d823a395 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/xprint/xprint-008.ebuild,v 1.1 2003/07/20 11:10:28 lanius Exp $
DESCRIPTION="An advanced printing system which enables X11 applications to use devices like printers in formats like PostScript, PDF, PCL, etc."
HOMEPAGE="http://xprint.mozdev.org"
SRC_URI="http://puck.informatik.med.uni-giessen.de/download/xprint_mozdev_org_source-2003-05-08-release_${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86"
DEPEND="x11-base/xfree"
RDEPEND="virtual/lpr"
IUSE=""
S=${WORKDIR}/xprint/src/xprint_main/xc/
src_compile() {
make World || die
}
src_install() {
make install DESTDIR=${D} || die
# this is a really nasty package, so we have to do some cleanups
rm -fR ${D}/etc/profile.d
rm -fR ${D}/etc/X11/
dodir /usr/sbin
mv ${D}/etc/init.d/xprint ${D}/usr/sbin/
cp ${FILESDIR}/xprint.rc6 ${D}/etc/init.d/xprint
dodoc ${D}/usr/X11R6/lib/X11/xserver/README
rm -f ${D}/usr/X11R6/lib/X11/xserver/README
}
pkg_postinst() {
einfo
einfo ' You have to add '
einfo 'export XPSERVERLIST="`/bin/sh /etc/init.d/xprint get_xpserverlist`"'
einfo ' to your .xinitrc to get things working correctly '
einfo
}
|