From owner-svn-ports-all@FreeBSD.ORG Sat Oct 20 05:43:38 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D07156F4; Sat, 20 Oct 2012 05:43:38 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B98FE8FC12; Sat, 20 Oct 2012 05:43:38 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9K5hckv059515; Sat, 20 Oct 2012 05:43:38 GMT (envelope-from jhale@svn.freebsd.org) Received: (from jhale@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9K5hcfT059512; Sat, 20 Oct 2012 05:43:38 GMT (envelope-from jhale@svn.freebsd.org) Message-Id: <201210200543.q9K5hcfT059512@svn.freebsd.org> From: "Jason E. Hale" Date: Sat, 20 Oct 2012 05:43:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r306160 - head/print/pstotext X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 05:43:39 -0000 Author: jhale Date: Sat Oct 20 05:43:38 2012 New Revision: 306160 URL: http://svn.freebsd.org/changeset/ports/306160 Log: - Update MASTER_SITES - Remove DEPRECATED/EXPIRATION_DATE since port fetches now - Convert to new options framework - Remove indefinite article from COMMENT - Trim Makefile header - Trim pkg-descr to a reasonable size PR: ports/172050 Submitted by: KATO Tsuguru Approved by: makc, avilla (mentors, implicit) Feature safe: yes Modified: head/print/pstotext/Makefile (contents, props changed) head/print/pstotext/pkg-descr (contents, props changed) Modified: head/print/pstotext/Makefile ============================================================================== --- head/print/pstotext/Makefile Sat Oct 20 05:10:27 2012 (r306159) +++ head/print/pstotext/Makefile Sat Oct 20 05:43:38 2012 (r306160) @@ -1,21 +1,15 @@ -# New ports collection makefile for: pstotext -# Date created: December 6, 1999 -# Whom: Oliver Breuninger -# +# Created by: Oliver Breuninger # $FreeBSD$ -# PORTNAME= pstotext PORTVERSION= 1.9 PORTREVISION= 3 CATEGORIES= print -MASTER_SITES= http://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/ +MASTER_SITES= ${MASTER_SITE_TEX_CTAN} +MASTER_SITE_SUBDIR= support/ghostscript/contrib MAINTAINER= ports@FreeBSD.org -COMMENT= A PostScript to Text converter - -DEPRECATED= No more public distfiles -EXPIRATION_DATE= 2012-10-20 +COMMENT= PostScript to Text converter USE_GHOSTSCRIPT_RUN= yes @@ -23,6 +17,8 @@ MAN1= pstotext.1 PLIST_FILES= bin/pstotext PORTDOCS= copyright +.include + post-patch: ${REINPLACE_CMD} -e 's;%%LOCALBASE%%;${LOCALBASE};g' ${WRKSRC}/main.c ${REINPLACE_CMD} -e 's;%%PREFIX%%;${PREFIX};g' ${WRKSRC}/pstotext.1 @@ -30,8 +26,8 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pstotext ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${MAN1PREFIX}/man/man1 -.ifndef(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/pstotext.txt ${DOCSDIR}/copyright .endif Modified: head/print/pstotext/pkg-descr ============================================================================== --- head/print/pstotext/pkg-descr Sat Oct 20 05:10:27 2012 (r306159) +++ head/print/pstotext/pkg-descr Sat Oct 20 05:43:38 2012 (r306160) @@ -1,23 +1,5 @@ -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. +pstotext extracts ASCII text from PostScript and PDF files. It +uses Ghostscript, but does a more careful job with kerned characters +and nonstandard font encodings than Ghostscript's ps2ascii utility. + +WWW: http://pages.cs.wisc.edu/~ghost/doc/pstotext.htm