summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2002-04-27 21:27:09 +0000
committerSeemant Kulleen <seemant@gentoo.org>2002-04-27 21:27:09 +0000
commit0f733fbcda9aa786acf7c05537e3fdd622c80e8c (patch)
tree73fb062dbbff618931a286b9e7bbd32e2a92483b /net-print/pdq
parentcleanup (diff)
downloadhistorical-0f733fbcda9aa786acf7c05537e3fdd622c80e8c.tar.gz
historical-0f733fbcda9aa786acf7c05537e3fdd622c80e8c.tar.bz2
historical-0f733fbcda9aa786acf7c05537e3fdd622c80e8c.zip
cleanup
Diffstat (limited to 'net-print/pdq')
-rw-r--r--net-print/pdq/pdq-2.2.1-r1.ebuild96
1 files changed, 47 insertions, 49 deletions
diff --git a/net-print/pdq/pdq-2.2.1-r1.ebuild b/net-print/pdq/pdq-2.2.1-r1.ebuild
index 3b77e753a470..78a9b67a6c2c 100644
--- a/net-print/pdq/pdq-2.2.1-r1.ebuild
+++ b/net-print/pdq/pdq-2.2.1-r1.ebuild
@@ -1,68 +1,66 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Copyright 1999-2002 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 $
+# $Header: /var/cvsroot/gentoo-x86/net-print/pdq/pdq-2.2.1-r1.ebuild,v 1.2 2002/04/27 21:27:09 seemant 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}"
+SRC_URI="http://pdq.sourceforge.net/ftp/${P}.tgz"
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 ..
+ ./configure --prefix=/usr --host=${CHOST} || die
+ cd src
+ if [ -z "`use gtk`" ] ; then
+ echo "Making only pdq (xpdq disabled)"
+ make pdq || die
+ else
+ echo "Making pdq and xpdq"
+ make || die
+ fi
+ cd ..
+ cd lpd
+ make || die
+ 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
+ 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
+ make DESTDIR=${D} install || die
+ cd ..
+ dodoc CHANGELOG INSTALL README LICENSE BUGS
}