aboutsummaryrefslogtreecommitdiff
path: root/textproc/gnugrep
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2010-02-06 13:47:54 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2010-02-06 13:47:54 +0000
commit9580beabd1989d2a86617e18b6f65d0e9131e20f (patch)
tree1fe4b2821df4bfdc6fc169909a31d3dd8c170004 /textproc/gnugrep
parentad6fe33c960b727acb717e3999ab7450fcf85609 (diff)
The grep command searches one or more input files for lines containing a match
to a specified pattern. By default, grep prints the matching lines. WWW: http://www.gnu.org/software/grep/
Notes
Notes: svn path=/head/; revision=249336
Diffstat (limited to 'textproc/gnugrep')
-rw-r--r--textproc/gnugrep/Makefile45
-rw-r--r--textproc/gnugrep/distinfo3
-rw-r--r--textproc/gnugrep/pkg-descr4
3 files changed, 52 insertions, 0 deletions
diff --git a/textproc/gnugrep/Makefile b/textproc/gnugrep/Makefile
new file mode 100644
index 000000000000..0d0df07fd801
--- /dev/null
+++ b/textproc/gnugrep/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: grep
+# Date created: 5 February 2010
+# Whom: Gabor Kovesdan <gabor@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= grep
+PORTVERSION= 2.5.4
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GNU}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+PKGNAMEPREFIX= gnu
+
+MAINTAINER= gabor@FreeBSD.org
+COMMENT= GNU grep
+
+GNU_CONFIGURE= yes
+MAN1= egrep.1 \
+ fgrep.1 \
+ grep.1
+INFO= grep
+PLIST_FILES= bin/egrep \
+ bin/fgrep \
+ bin/grep
+
+OPTIONS= PCRE "Compile with Perl-compatible regex support" off
+
+CONFLICTS= bsd-grep-*
+
+.include <bsd.port.pre.mk>
+
+CONFIGURE_ARGS+= --disable-nls
+
+.if defined(WITH_PCRE)
+LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
+.else
+CONFIGURE_ARGS+= --disable-perl-regexp
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} 's|mkinstalldirs = .*|mkinstalldirs = mkdir -p|g' \
+ ${WRKSRC}/intl/Makefile.in
+
+.include <bsd.port.post.mk>
diff --git a/textproc/gnugrep/distinfo b/textproc/gnugrep/distinfo
new file mode 100644
index 000000000000..9351b47295f9
--- /dev/null
+++ b/textproc/gnugrep/distinfo
@@ -0,0 +1,3 @@
+MD5 (grep-2.5.4.tar.gz) = 92258031d98d4f12dfc6a6d24057e672
+SHA256 (grep-2.5.4.tar.gz) = b091d2bf9d558dde67a4496af3f259d8779770d1b70065f27b481b6665653fac
+SIZE (grep-2.5.4.tar.gz) = 860621
diff --git a/textproc/gnugrep/pkg-descr b/textproc/gnugrep/pkg-descr
new file mode 100644
index 000000000000..2e5864a329a2
--- /dev/null
+++ b/textproc/gnugrep/pkg-descr
@@ -0,0 +1,4 @@
+The grep command searches one or more input files for lines containing a match
+to a specified pattern. By default, grep prints the matching lines.
+
+WWW: http://www.gnu.org/software/grep/