From owner-freebsd-ports Mon Dec 6 6:50:16 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A027E152CA for ; Mon, 6 Dec 1999 06:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA59284; Mon, 6 Dec 1999 06:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from bs-tosh.breuninger.org (bs-tosh.seicom.net [194.97.215.179]) by hub.freebsd.org (Postfix) with ESMTP id B369014F78 for ; Mon, 6 Dec 1999 06:48:17 -0800 (PST) (envelope-from root@bs-tosh.breuninger.org) Received: (from root@localhost) by bs-tosh.breuninger.org (8.9.3/8.9.3) id PAA16941; Mon, 6 Dec 1999 15:47:54 +0100 (CET) (envelope-from root) Message-Id: <199912061447.PAA16941@bs-tosh.breuninger.org> Date: Mon, 6 Dec 1999 15:47:54 +0100 (CET) From: ob@seicom.net Reply-To: ob@seicom.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/15307: pstotext ported Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 15307 >Category: ports >Synopsis: Port for pstotext >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 6 06:50:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Oliver Breuninger >Release: FreeBSD 3.3-RELEASE i386 >Organization: >Environment: >Description: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ps2text # ps2text/patches # ps2text/patches/patch-aa # ps2text/files # ps2text/files/md5 # ps2text/files/diff.rc # ps2text/pkg # ps2text/pkg/COMMENT # ps2text/pkg/DESCR # ps2text/pkg/PLIST # ps2text/Makefile # echo c - ps2text mkdir -p ps2text > /dev/null 2>&1 echo c - ps2text/patches mkdir -p ps2text/patches > /dev/null 2>&1 echo x - ps2text/patches/patch-aa sed 's/^X//' >ps2text/patches/patch-aa << 'END-of-ps2text/patches/patch-aa' X--- Makefile.orig Wed Oct 28 17:45:58 1998 X+++ Makefile Mon Dec 6 14:36:17 1999 X@@ -43,2 +43,7 @@ X clean: X rm -f pstotext *.o core $(BUNDLE) X+ X+install: X+ cp -p pstotext /usr/local/bin X+ cp -p pstotext.1 /usr/local/man/man1 X+ END-of-ps2text/patches/patch-aa echo c - ps2text/files mkdir -p ps2text/files > /dev/null 2>&1 echo x - ps2text/files/md5 sed 's/^X//' >ps2text/files/md5 << 'END-of-ps2text/files/md5' XMD5 (pstotext.tar.Z) = 4329e3e5ee37243703604e05d1db8dcb END-of-ps2text/files/md5 echo x - ps2text/files/diff.rc sed 's/^X//' >ps2text/files/diff.rc << 'END-of-ps2text/files/diff.rc' X#! /bin/csh X# X Xcd ../work/src X Xdiff --unified=2 Makefile.orig Makefile > ../../patch-aa X END-of-ps2text/files/diff.rc echo c - ps2text/pkg mkdir -p ps2text/pkg > /dev/null 2>&1 echo x - ps2text/pkg/COMMENT sed 's/^X//' >ps2text/pkg/COMMENT << 'END-of-ps2text/pkg/COMMENT' XPostScript to Text converter. END-of-ps2text/pkg/COMMENT echo x - ps2text/pkg/DESCR sed 's/^X//' >ps2text/pkg/DESCR << 'END-of-ps2text/pkg/DESCR' X Xpstotext reads one or more PostScript or PDF files, and writes to standard Xoutput a representation of the plain text that would be displayed if the XPostScript file were printed. As is described in the DETAILS section below, Xthis representation is only an approximation. Nevertheless, it is often Xuseful for information retrieval (e.g., running grep(1) or building a Xfull-text index) or to recover the text from a PostScript file whose source Xyou have lost. X Xpstotext calls Ghostscript, and requires Aladdin Ghostscript version 3.51 or Xnewer. Ghostscript must be invokable on the current search path as gs. XAlternatively, you can use the -gs option to specify the command (pathname Xand options) to run Ghostscript. For example, on Windows you might use -gs X"c:\gs\gswin32c.exe -Ic:\gs;c:\gs\fonts". X Xpstotext reads and processes its command line from left to right, ignoring Xthe case of options. When it encounters a pathname, it opens the file and Xexpects to find a PostScript job or PDF document to process. The option - Xmeans to read and process a PostScript job from standard input. If no - or Xpathname arguments are encountered, pstotext reads a PostScript job from Xstandard input. (PDF documents require random access, hence cannot be read Xfrom standard input.) You can use the -output option to specify an output file X(remember to invoke it before the input file); otherwise pstotext writes to standard output. X XThe option -cork is only relevant for PostScript files produced by dvips from TeX or LaTeX documents; it tells pstotext to use the Cork encoding (known as T1 in LaTeX) rather Xthan the old TeX text encoding (known as OT1 in LaTeX). Unfortunately files produced by dvips don't distinguish which font encodings were used. X XThe options -landscape and -landscapeOther should be used for documents that must be rotated 90 degrees clockwise or counterclockwise, respectively, in order to be readable. X XThe options -debug and -bboxes are mostly of use for the maintainers of pstotext. -debug shows Ghostscript output and error messages. -bboxes outputs one word per line with Xbounding box information. X Xhttp://www.research.digital.com/SRC/virtualpaper/manpages/pstotext.1.html X END-of-ps2text/pkg/DESCR echo x - ps2text/pkg/PLIST sed 's/^X//' >ps2text/pkg/PLIST << 'END-of-ps2text/pkg/PLIST' Xbin/pstotext Xman/man1/pstotext.1 END-of-ps2text/pkg/PLIST echo x - ps2text/Makefile sed 's/^X//' >ps2text/Makefile << 'END-of-ps2text/Makefile' X# New ports collection makefile for: pstotext X# Version required: 2.1 X# Date created: December 6, 1999 X# Whom: Oliver Breuninger X# X# $Id: $ X XDISTNAME= pstotext XDISTFILES= pstotext.tar.Z XCATEGORIES= print XMASTER_SITES= http://www.research.digital.com/SRC/virtualpaper/cgi-bin/nph-download.tcl/pstotext.tar.Z?object=pstotext XMAINTAINER= ob@seicom.NET X XWRKSRC= ${WRKDIR}/src X XRUN_DEPENDS= /usr/local/bin/gs:${PORTSDIR}/print/ghostscript55 X X.include X END-of-ps2text/Makefile exit >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message