diff options
author | steve <steve@FreeBSD.org> | 1999-12-29 15:26:56 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-12-29 15:26:56 +0800 |
commit | c1b7453a6d55d2aa26a89aafd1c7c58ead2128d5 (patch) | |
tree | 01cc35c59f48d2835aba06e76e679627b0ba7ce6 | |
parent | c01c11786880242729227c7402feb174fb312f60 (diff) | |
download | freebsd-ports-graphics-c1b7453a6d55d2aa26a89aafd1c7c58ead2128d5.tar.gz freebsd-ports-graphics-c1b7453a6d55d2aa26a89aafd1c7c58ead2128d5.tar.zst freebsd-ports-graphics-c1b7453a6d55d2aa26a89aafd1c7c58ead2128d5.zip |
Moving the pstotext port from textproc to print.
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/pstotext/Makefile | 22 | ||||
-rw-r--r-- | print/pstotext/distinfo | 1 | ||||
-rw-r--r-- | print/pstotext/files/patch-aa | 10 | ||||
-rw-r--r-- | print/pstotext/pkg-comment | 1 | ||||
-rw-r--r-- | print/pstotext/pkg-descr | 39 | ||||
-rw-r--r-- | print/pstotext/pkg-plist | 1 | ||||
-rw-r--r-- | textproc/Makefile | 1 |
8 files changed, 75 insertions, 1 deletions
diff --git a/print/Makefile b/print/Makefile index e5396398148..5cf98a9d14f 100644 --- a/print/Makefile +++ b/print/Makefile @@ -72,6 +72,7 @@ SUBDIR += pkfonts360 SUBDIR += pkfonts400 SUBDIR += pkfonts600 + SUBDIR += pstotext SUBDIR += psutils-a4 SUBDIR += psutils-letter SUBDIR += rlpr diff --git a/print/pstotext/Makefile b/print/pstotext/Makefile new file mode 100644 index 00000000000..1f1d06a22ea --- /dev/null +++ b/print/pstotext/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: pstotext +# Version required: 2.1 +# Date created: December 6, 1999 +# Whom: Oliver Breuninger <ob@seicom.NET> +# +# $FreeBSD$ +# + +DISTNAME= pstotext +PKGNAME= pstotext-2.1 +CATEGORIES= print +MASTER_SITES= http://www.research.digital.com/SRC/virtualpaper/cgi-bin/nph-download.tcl/pstotext.tar.Z?object=pstotext +EXTRACT_SUFX= .tar.Z + +MAINTAINER= ob@seicom.NET + +RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript55 + +WRKSRC= ${WRKDIR}/src +MAN1= pstotext.1 + +.include <bsd.port.mk> diff --git a/print/pstotext/distinfo b/print/pstotext/distinfo new file mode 100644 index 00000000000..f16a1ecb82f --- /dev/null +++ b/print/pstotext/distinfo @@ -0,0 +1 @@ +MD5 (pstotext.tar.Z) = 4329e3e5ee37243703604e05d1db8dcb diff --git a/print/pstotext/files/patch-aa b/print/pstotext/files/patch-aa new file mode 100644 index 00000000000..5ae6d984b97 --- /dev/null +++ b/print/pstotext/files/patch-aa @@ -0,0 +1,10 @@ +--- Makefile.orig Wed Oct 28 17:45:58 1998 ++++ Makefile Mon Dec 6 14:36:17 1999 +@@ -43,2 +43,7 @@ + clean: + rm -f pstotext *.o core $(BUNDLE) ++ ++install: ++ cp -p pstotext /usr/local/bin ++ cp -p pstotext.1 /usr/local/man/man1 ++ diff --git a/print/pstotext/pkg-comment b/print/pstotext/pkg-comment new file mode 100644 index 00000000000..d892091d9ff --- /dev/null +++ b/print/pstotext/pkg-comment @@ -0,0 +1 @@ +A PostScript to Text converter diff --git a/print/pstotext/pkg-descr b/print/pstotext/pkg-descr new file mode 100644 index 00000000000..caf558260e6 --- /dev/null +++ b/print/pstotext/pkg-descr @@ -0,0 +1,39 @@ +pstotext reads one or more PostScript or PDF files, and writes to standard +output a representation of the plain text that would be displayed if the +PostScript file were printed. As is described in the DETAILS section below, +this representation is only an approximation. Nevertheless, it is often +useful for information retrieval (e.g., running grep(1) or building a +full-text index) or to recover the text from a PostScript file whose source +you have lost. + +pstotext calls Ghostscript, and requires Aladdin Ghostscript version 3.51 or +newer. Ghostscript must be invokable on the current search path as gs. +Alternatively, you can use the -gs option to specify the command (pathname +and options) to run Ghostscript. For example, on Windows you might use -gs +"c:\gs\gswin32c.exe -Ic:\gs;c:\gs\fonts". + +pstotext reads and processes its command line from left to right, ignoring +the case of options. When it encounters a pathname, it opens the file and +expects to find a PostScript job or PDF document to process. The option - +means to read and process a PostScript job from standard input. If no - or +pathname arguments are encountered, pstotext reads a PostScript job from +standard input. (PDF documents require random access, hence cannot be read +from standard input.) You can use the -output option to specify an output file +(remember to invoke it before the input file); otherwise pstotext writes to +standard output. + +The 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 than the old TeX text encoding (known as OT1 in LaTeX). +Unfortunately files produced by dvips don't distinguish which font encodings +were used. + +The options -landscape and -landscapeOther should be used for documents that +must be rotated 90 degrees clockwise or counterclockwise, respectively, in +order to be readable. + +The 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 bounding box information. + +WWW: http://www.research.digital.com/SRC/virtualpaper/manpages/pstotext.1.html diff --git a/print/pstotext/pkg-plist b/print/pstotext/pkg-plist new file mode 100644 index 00000000000..bd84fd02c27 --- /dev/null +++ b/print/pstotext/pkg-plist @@ -0,0 +1 @@ +bin/pstotext diff --git a/textproc/Makefile b/textproc/Makefile index 88d46633af0..6109022a518 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -53,7 +53,6 @@ SUBDIR += par SUBDIR += perl2html SUBDIR += prag - SUBDIR += pstotext SUBDIR += py-mxTextTools SUBDIR += py-xml SUBDIR += rand |