From b11ec6a474c1f141d28d3529a314205a05c1c376 Mon Sep 17 00:00:00 2001 From: Wen Heping Date: Wed, 15 Dec 2010 08:14:48 +0000 Subject: Pdfgrep is a tool to search text in PDF files. It works similar to grep. Features: * search for regular expressions. * support for some important grep options, including: o filename output. o page number output. o optional case insensitivity. o count occurrences. * and the most important feature: color output! WWW: http://pdfgrep.sourceforge.net/ PR: ports/152648 Submitted by: Michael Ranner --- textproc/Makefile | 1 + textproc/pdfgrep/Makefile | 29 +++++++++++++++++++++++++++++ textproc/pdfgrep/distinfo | 2 ++ textproc/pdfgrep/pkg-descr | 14 ++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 textproc/pdfgrep/Makefile create mode 100644 textproc/pdfgrep/distinfo create mode 100644 textproc/pdfgrep/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index 1f975b09377a..c8a5fd7e55c7 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -926,6 +926,7 @@ SUBDIR += par SUBDIR += pardiff SUBDIR += pcrs + SUBDIR += pdfgrep SUBDIR += pdfoutline SUBDIR += pdftohtml SUBDIR += pear-File_Fortune diff --git a/textproc/pdfgrep/Makefile b/textproc/pdfgrep/Makefile new file mode 100644 index 000000000000..5d360b2001df --- /dev/null +++ b/textproc/pdfgrep/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: pdfgrep +# Date created: 2010-11-28 +# Whom: Michael Ranner +# +# $FreeBSD$ +# + +PORTNAME= pdfgrep +PORTVERSION= 1.1 +CATEGORIES= textproc +MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/ +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= michael@ranner.eu +COMMENT= A tool to search text in PDF files + +LIB_DEPENDS= poppler.6:${PORTSDIR}/graphics/poppler + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +GNU_CONFIGURE= yes +USE_GMAKE= yes +CONFIGURE_ARGS= poppler_CFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/poppler" + +PLIST_FILES= bin/pdfgrep +MAN1= pdfgrep.1 + +.include diff --git a/textproc/pdfgrep/distinfo b/textproc/pdfgrep/distinfo new file mode 100644 index 000000000000..6279d5cd8ec7 --- /dev/null +++ b/textproc/pdfgrep/distinfo @@ -0,0 +1,2 @@ +SHA256 (pdfgrep-1.1.tar.gz) = fdce13b152595a6c3e0d84718404066cea94bdb44feb480786f118814c706c02 +SIZE (pdfgrep-1.1.tar.gz) = 93911 diff --git a/textproc/pdfgrep/pkg-descr b/textproc/pdfgrep/pkg-descr new file mode 100644 index 000000000000..cb2019c83189 --- /dev/null +++ b/textproc/pdfgrep/pkg-descr @@ -0,0 +1,14 @@ +Pdfgrep is a tool to search text in PDF files. It works similar to grep. + +Features: + + * search for regular expressions. + * support for some important grep options, including: + o filename output. + o page number output. + o optional case insensitivity. + o count occurrences. + * and the most important feature: color output! + + +WWW: http://pdfgrep.sourceforge.net/ -- cgit v1.2.3