Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 90800
Collapse All | Expand All

(-)xprint-009.1.ebuild.orig (-8 / +22 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2004 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-print/xprint/xprint-009.1.ebuild,v 1.1 2004/08/24 12:12:09 lanius Exp $
3
# $Header: $
4
5
inherit x11-prefix
4
6
5
DESCRIPTION="An advanced printing system which enables X11 applications to use devices like printers in formats like PostScript, PDF, PCL, etc."
7
DESCRIPTION="An advanced printing system which enables X11 applications to use devices like printers in formats like PostScript, PDF, PCL, etc."
6
HOMEPAGE="http://xprint.mozdev.org"
8
HOMEPAGE="http://xprint.mozdev.org"
Lines 16-28 Link Here
16
18
17
S=${WORKDIR}/xprint/src/xprint_main/xc/
19
S=${WORKDIR}/xprint/src/xprint_main/xc/
18
20
21
src_unpack() {
22
	unpack ${A}
23
	sed -i 's:XPRINTDIR = .*$:XPRINTDIR = /usr/share/Xprint/xserver:' \
24
		${S}/config/cf/X11.tmpl
25
	sed -i "/ProjectRoot/s:/usr/X11R6:${X11_PREFIX}:" \
26
		${S}/config/cf/linux.cf
27
	sed -i "s:=/tmp/:=${T}/:" ${S}/packager/tarball/make_xprint_binary_tarball.sh
28
}
29
19
src_compile() {
30
src_compile() {
20
	sed 's:XPRINTDIR = .*$:XPRINTDIR = /usr/share/Xprint/xserver:' -i config/cf/X11.tmpl
31
	make World || die "make World failed"
21
	make XPRINTDIR=/usr/share/Xprint/xserver World || die
22
}
32
}
23
33
24
src_install() {
34
src_install() {
25
	make XPRINTDIR=/usr/share/Xprint/xserver XPDESTTARFILE=${S}/xprint.tar.gz make_xprint_tarball -C ${S}/packager
35
	make MANPATH=/usr/share/man \
36
		XPDESTTARFILE=${S}/xprint.tar.gz \
37
		-C ${S}/packager \
38
		make_xprint_tarball \
39
		|| die "make make_xprint_tarball failed"
26
40
27
	tar -xzf xprint.tar.gz
41
	tar -xzf xprint.tar.gz
28
	mv xprint/install/* ${D}
42
	mv xprint/install/* ${D}
Lines 32-40 Link Here
32
	rm -fR ${D}/etc/profile.d
46
	rm -fR ${D}/etc/profile.d
33
	dodir /usr/sbin
47
	dodir /usr/sbin
34
	mv ${D}/etc/init.d/xprint ${D}/usr/sbin/
48
	mv ${D}/etc/init.d/xprint ${D}/usr/sbin/
35
	cp ${FILESDIR}/xprint.rc6 ${D}/etc/init.d/xprint
49
	newinitd ${FILESDIR}/xprint.rc6 xprint
36
	dodoc ${D}/usr/X11R6/lib/X11/xserver/README
50
	dodoc ${D}/usr/share/Xprint/xserver/README
37
	rm -f ${D}/usr/X11R6/lib/X11/xserver/README
51
	rm -f ${D}/usr/share/Xprint/xserver/README
38
52
39
	sed -i -e 's:XPCUSTOMGLUE=default:XPCUSTOMGLUE=DebianGlue:' ${D}/usr/sbin/xprint
53
	sed -i -e 's:XPCUSTOMGLUE=default:XPCUSTOMGLUE=DebianGlue:' ${D}/usr/sbin/xprint
40
}
54
}

Return to bug 90800