blob: 3b77e753a47004508f687d601ffc780037e39a9e (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Grant Goodyear <grant@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-print/pdq/pdq-2.2.1-r1.ebuild,v 1.1 2001/10/06 10:08:19 azarah Exp $
#P=
A=${P}.tgz
S=${WORKDIR}/${P}
DESCRIPTION="A non-daemon-centric print system which has a built-in, and sensible, driver configuration syntax."
SRC_URI="http://pdq.sourceforge.net/ftp/${A}"
HOMEPAGE="http://pdq.sourceforge.net"
DEPEND="gtk? ( >=x11-libs/gtk+-1.2.10-r4 )"
src_compile() {
try ./configure --prefix=/usr --host=${CHOST}
cd src
if [ -z "`use gtk`" ] ; then
echo "Making only pdq (xpdq disabled)"
try make pdq
else
echo "Making pdq and xpdq"
try make
fi
cd ..
cd lpd
try make
cd ..
}
src_install () {
cd src
exeinto /usr/bin
if [ -z "`use gtk`" ] ; then
doexe pdq
else
doexe pdq xpdq
fi
cd ..
cd lpd
exeopts -m 4755 -o root
exeinto /usr/bin
doexe lpd_cancel lpd_print lpd_status
cd ..
cd doc
if [ -z "`use gtk`" ] ; then
echo "man w/o gtk"
doman lpd_cancel.1 lpd_print.1 lpd_status.1 pdq.1 pdqstat.1 printrc.5
else
echo "man w/ gtk"
doman *.1 *.5
fi
dodoc rfc1179.txt
cd ..
cd etc
mv Makefile Makefile.orig
sed -e 's/$$dir/$(DESTDIR)$$dir/' -e 's/$(pdqlibdir)\/$$file/$(DESTDIR)\/$(pdqlibdir)\/$$file/' Makefile.orig > Makefile
insinto /etc/pdq
newins printrc.example printrc
try make DESTDIR=${D} install
cd ..
dodoc CHANGELOG INSTALL README LICENSE BUGS
}
|