summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Portnoy <avenj@gentoo.org>2002-12-13 01:44:18 +0000
committerJon Portnoy <avenj@gentoo.org>2002-12-13 01:44:18 +0000
commit16aef7058ea7373fabc1a0f01f98853d46c02b7a (patch)
tree7214e2842ab3691a4893ac3fa85363dfe25b89df /net-print
parentNew version (diff)
downloadgentoo-2-16aef7058ea7373fabc1a0f01f98853d46c02b7a.tar.gz
gentoo-2-16aef7058ea7373fabc1a0f01f98853d46c02b7a.tar.bz2
gentoo-2-16aef7058ea7373fabc1a0f01f98853d46c02b7a.zip
Version bump.
Diffstat (limited to 'net-print')
-rw-r--r--net-print/pnm2ppa/ChangeLog8
-rw-r--r--net-print/pnm2ppa/files/digest-pnm2ppa-1.122
-rw-r--r--net-print/pnm2ppa/files/pnm2ppa-1.12-gentoo.diff127
-rw-r--r--net-print/pnm2ppa/pnm2ppa-1.12.ebuild112
4 files changed, 248 insertions, 1 deletions
diff --git a/net-print/pnm2ppa/ChangeLog b/net-print/pnm2ppa/ChangeLog
index 8aa7d3839e63..6b6d102b3380 100644
--- a/net-print/pnm2ppa/ChangeLog
+++ b/net-print/pnm2ppa/ChangeLog
@@ -1,7 +1,13 @@
# ChangeLog for net-print/pnm2ppa
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/pnm2ppa/ChangeLog,v 1.7 2002/12/05 20:58:39 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/pnm2ppa/ChangeLog,v 1.8 2002/12/13 01:44:18 avenj Exp $
+*pnm2ppa-1.12 (12 Dec 2002)
+
+ 12 Dec 2002; Jon Portnoy <avenj@gentoo.org> pnm2ppa-1.12.ebuild :
+ Version bump. Ebuild contributed by Dylan Carlson (absinthe@pobox.com).
+
+*
05 Dec 2002; Dan Armak <danarmak@gentoo.org> pnm2ppa-1.0.91.ebuild,
pnm2ppa-1.0.91-r1.ebuild, pnm2ppa-1.0.91-r2.ebuild :
diff --git a/net-print/pnm2ppa/files/digest-pnm2ppa-1.12 b/net-print/pnm2ppa/files/digest-pnm2ppa-1.12
new file mode 100644
index 000000000000..ef2865d678ad
--- /dev/null
+++ b/net-print/pnm2ppa/files/digest-pnm2ppa-1.12
@@ -0,0 +1,2 @@
+MD5 effd8c42bbe7c970e70fa7d9d991275b pnm2ppa-1.12.tar.gz 191113
+MD5 00366b61ee4a1ed0c91a4192e94358a2 howto.tgz 36007
diff --git a/net-print/pnm2ppa/files/pnm2ppa-1.12-gentoo.diff b/net-print/pnm2ppa/files/pnm2ppa-1.12-gentoo.diff
new file mode 100644
index 000000000000..b64fdd962279
--- /dev/null
+++ b/net-print/pnm2ppa/files/pnm2ppa-1.12-gentoo.diff
@@ -0,0 +1,127 @@
+diff -ur pnm2ppa-1.12/Makefile pnm2ppa-1.12.new/Makefile
+--- Makefile 2002-11-15 18:29:29.000000000 -0500
++++ Makefile 2002-12-11 17:39:27.000000000 -0500
+@@ -5,13 +5,13 @@
+ # paths to locations where the pnm2ppa binary, the configuration file,
+ # and the man page should be installed. On some systems (like Solaris)
+ # the install command requires the syntax BINDIR="-f /usr/local/bin".
+-BINDIR="/usr/local/bin"
++BINDIR="/usr/bin"
+ CONFDIR="/etc"
+-MANDIR="/usr/local/man/man1"
++MANDIR="/usr/share/man/man1"
+
+ #compiler and linker options:
+ CC=gcc
+-CFLAGS=-Wall -pedantic -O2
++CFLAGS=-Wall -pedantic -O3
+ LDFLAGS=-lm
+
+ INSTALL=install
+diff -ur pnm2ppa-1.12/lpd/ascii.if pnm2ppa-1.12.new/lpd/ascii.if
+--- lpd/ascii.if 2000-10-28 10:58:07.000000000 -0400
++++ lpd/ascii.if 2002-12-11 17:39:55.000000000 -0500
+@@ -1,6 +1,6 @@
+ #! /bin/sh
+ # for printing black and white text (ascii) files.
+-FILTER="/usr/local/bin/bw.if"
++FILTER="/usr/bin/bw.if"
+ #FILTER="/usr/local/bin/bweco.if"
+ #------enscript command line--------------------------
+ enscript -2rj -p- | $FILTER
+diff -ur pnm2ppa-1.12/lpd/bw.if pnm2ppa-1.12.new/lpd/bw.if
+--- lpd/bw.if 2000-10-28 10:58:07.000000000 -0400
++++ lpd/bw.if 2002-12-11 17:40:14.000000000 -0500
+@@ -6,7 +6,7 @@
+ #PAPER=a4
+ #PAPER=a3
+ #PPAOPTS="-B 2"
+-PNM2PPA="/usr/local/bin/pnm2ppa"
++PNM2PPA="/usr/bin/pnm2ppa"
+ #------------------dont change below this line----------------------
+ gs -sDEVICE=pbmraw -sPAPERSIZE=$PAPER -q -dNOPAUSE -r600 -sOutputFile=- - | \
+ $PNM2PPA --bw $PPAOPTS -i - -o -
+diff -ur pnm2ppa-1.12/lpd/bweco.if pnm2ppa-1.12.new/lpd/bweco.if
+--- lpd/bweco.if 2000-10-28 10:58:07.000000000 -0400
++++ lpd/bweco.if 2002-12-11 17:40:23.000000000 -0500
+@@ -6,7 +6,7 @@
+ #PAPER=a4
+ #PAPER=a3
+ #PPAOPTS="-B 2"
+-PNM2PPA="/usr/local/bin/pnm2ppa"
++PNM2PPA="/usr/bin/pnm2ppa"
+ #------------------dont change below this line----------------------
+ gs -sDEVICE=pbmraw -sPAPERSIZE=$PAPER -q -dNOPAUSE -r600 -sOutputFile=- - | \
+ $PNM2PPA --bw --eco $PPAOPTS -i - -o -
+diff -ur pnm2ppa-1.12/lpd/color.if pnm2ppa-1.12.new/lpd/color.if
+--- lpd/color.if 2000-10-28 10:58:07.000000000 -0400
++++ lpd/color.if 2002-12-11 17:40:31.000000000 -0500
+@@ -6,7 +6,7 @@
+ #PAPER=a4
+ #PAPER=a3
+ #PPAOPTS="-p"
+-PNM2PPA="/usr/local/bin/pnm2ppa"
++PNM2PPA="/usr/bin/pnm2ppa"
+ #------------------dont change below this line----------------------
+ gs -sDEVICE=ppmraw -sPAPERSIZE=$PAPER -q -dNOPAUSE -r600 -sOutputFile=- - | \
+ $PNM2PPA $PPAOPTS -i - -o -
+diff -ur pnm2ppa-1.12/lpd/coloreco.if pnm2ppa-1.12.new/lpd/coloreco.if
+--- lpd/coloreco.if 2000-10-28 10:58:07.000000000 -0400
++++ lpd/coloreco.if 2002-12-11 17:40:45.000000000 -0500
+@@ -6,7 +6,7 @@
+ #PAPER=a4
+ #PAPER=a3
+ #PPAOPTS="--fd"
+-PNM2PPA="/usr/local/bin/pnm2ppa"
++PNM2PPA="/usr/bin/pnm2ppa"
+ #------------------dont change below this line----------------------
+ gs -sDEVICE=ppmraw -sPAPERSIZE=$PAPER -q -dNOPAUSE -r600 -sOutputFile=- - | \
+ $PNM2PPA --eco $PPAOPTS -i - -o -
+diff -ur pnm2ppa-1.12/lpd/printcap pnm2ppa-1.12.new/lpd/printcap
+--- lpd/printcap 2000-10-27 14:12:23.000000000 -0400
++++ lpd/printcap 2002-12-11 17:41:35.000000000 -0500
+@@ -6,7 +6,7 @@
+ :sd=/var/spool/lpd/coloreco:\
+ :lf=/var/spool/lpd/coloreco/log:\
+ :af=/var/spool/lpd/coloreco/acct:\
+- :if=/usr/local/bin/coloreco.if:\
++ :if=/usr/bin/coloreco.if:\
+ :la:mx#0:\
+ :sh:sf:
+
+@@ -16,7 +16,7 @@
+ :sd=/var/spool/lpd/color:\
+ :lf=/var/spool/lpd/color/log:\
+ :af=/var/spool/lpd/color/acct:\
+- :if=/usr/local/bin/color.if:\
++ :if=/usr/bin/color.if:\
+ :la:mx#0:\
+ :sh:sf:
+
+@@ -26,7 +26,7 @@
+ :sd=/var/spool/lpd/bw:\
+ :lf=/var/spool/lpd/bw/log:\
+ :af=/var/spool/lpd/bw/acct:\
+- :if=/usr/local/bin/bw.if:\
++ :if=/usr/bin/bw.if:\
+ :la:mx#0:\
+ :sh:sf:
+
+@@ -36,7 +36,7 @@
+ :sd=/var/spool/lpd/bweco:\
+ :lf=/var/spool/lpd/bweco/log:\
+ :af=/var/spool/lpd/bweco/acct:\
+- :if=/usr/local/bin/bweco.if:\
++ :if=/usr/bin/bweco.if:\
+ :la:mx#0:\
+ :sh:sf:
+
+@@ -46,7 +46,7 @@
+ :sd=/var/spool/lpd/ascii:\
+ :lf=/var/spool/lpd/ascii/log:\
+ :af=/var/spool/lpd/ascii/acct:\
+- :if=/usr/local/bin/ascii.if:\
++ :if=/usr/bin/ascii.if:\
+ :la:mx#0:\
+ :sh:sf:
+
diff --git a/net-print/pnm2ppa/pnm2ppa-1.12.ebuild b/net-print/pnm2ppa/pnm2ppa-1.12.ebuild
new file mode 100644
index 000000000000..263a81f5ca42
--- /dev/null
+++ b/net-print/pnm2ppa/pnm2ppa-1.12.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-print/pnm2ppa/pnm2ppa-1.12.ebuild,v 1.1 2002/12/13 01:44:18 avenj Exp $
+
+# Note: this also d/ls the hp-ppa-howto and installs it under /usr/share/doc/${P}
+
+S=${WORKDIR}/${P}
+SRC_URI="mirror://sourceforge/pnm2ppa/${P}.tar.gz
+ mirror://sourceforge/pnm2ppa/howto.tgz"
+
+HOMEPAGE="http://pnm2ppa.sourceforge.net"
+KEYWORDS="~x86"
+SLOT="0"
+DESCRIPTION="Print driver for Hp Deskjet 710, 712, 720, 722, 820, 1000 series"
+LICENSE="GPL-2"
+
+# note: this doesn't depend on virtual/lpr, because it can work on its own,
+# just without queueing etc. since it's not just a driver but a standalone
+# executable.
+DEPEND="gtk? ( x11-libs/gtk+ )
+ ncurses? ( sys-libs/ncurses )"
+
+RDEPEND="${DEPEND}
+ app-text/enscript
+ dev-util/dialog"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd ${S}
+ unpack howto.tgz
+
+ patch -l -p0 < ${FILESDIR}/${PF}-gentoo.diff
+}
+
+src_compile() {
+ export CFLAGS="-DNDEBUG ${CFLAGS}"
+
+ emake CFLAGS="${CFLAGS} -DLANG_EN" || die
+
+ cd ${S}/ppa_protocol
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install () {
+ dodir /usr/bin
+ dodir /etc
+ dodir /usr/share/man/man1
+
+ make \
+ BINDIR=${D}/usr/bin \
+ CONFDIR=${D}/etc \
+ MANDIR=${D}/usr/share/man/man1 \
+ install || die
+
+ exeinto /usr/bin
+ doexe utils/Linux/detect_ppa utils/Linux/test_ppa
+
+ insinto /usr/share/pnm2ppa/lpd
+ doins ${S}/lpd/*
+ exeinto /usr/share/pnm2ppa/lpd
+ doexe ${S}/lpd/lpdsetup
+
+ insinto /usr/share/pnm2ppa/pdq
+ doins ${S}/pdq/*
+
+ # Interfaces for configuration of integration with lpd
+ # These are not installed because we do not assume that
+ # lpd, ncurses, gtk, but the sources are provided. Thus,
+ # if the headers were found they would have been built.
+
+ exeinto /usr/share/pnm2ppa/sample_scripts
+ doexe ${S}/sample_scripts/*
+
+ cd ${S}/pdq
+ exeinto /etc/pdq/drivers/ghostscript
+ doexe gs-pnm2ppa
+ exeinto /etc/pdq/interfaces
+ doexe dummy
+
+ # possibly not needed
+ #rm ${D}/etc/printcap.*
+
+ cd ${S}/docs/en
+ dodoc CALIBRATION*txt COLOR*txt PPA*txt RELEASE*
+ dodoc CREDITS INSTALL LICENSE README TODO
+
+ cd sgml
+ insinto /usr/share/doc/${P}
+ doins *.sgml
+
+ cd ${S}
+ dohtml -r .
+
+}
+
+pkg_postinst() {
+ einfo "Now, you *must* edit /etc/pnm2ppa.conf and choose (at least)"
+ einfo "your printer model and papersize."
+ einfo ""
+ einfo "Run calibrate_ppa to calibrate color offsets."
+ einfo ""
+ einfo "Read the docs in /usr/share/pnm2ppa/ to configure the printer,"
+ einfo "configure lpr substitutes, cups, pdq, networking etc."
+ einfo ""
+ einfo "Note that lpr and pdq drivers *have* been installed, but if your"
+ einfo "config file management has /etc blocked (the default), they have"
+ einfo "been installed under different filenames. Read the appropriate"
+ einfo "Gentoo documentation for more info."
+ einfo ""
+ einfo "Note: lpr has been configured for default papersize letter"
+}
+