From 2d15f8c3689b5d5f9cf4b2b13ad47f7591142cb8 Mon Sep 17 00:00:00 2001 From: Thomas Gellekum Date: Wed, 29 Apr 1998 10:55:40 +0000 Subject: New sgrep port. From the man page: sgrep (structured grep) is a tool for searching text files and filtering text streams using structural criteria. The data model of sgrep is based on regions, which are non- empty substrings of text. Regions are typically occur- rences of constant strings or meaningful text elements, which are recognizable through some delimiting strings. PR: 6449 Submitted by: A Joseph Koshy --- textproc/sgrep/Makefile | 23 +++++++++++++++++++++++ textproc/sgrep/distinfo | 1 + textproc/sgrep/files/patch-aa | 30 ++++++++++++++++++++++++++++++ textproc/sgrep/files/patch-ab | 11 +++++++++++ textproc/sgrep/pkg-comment | 1 + textproc/sgrep/pkg-descr | 11 +++++++++++ textproc/sgrep/pkg-plist | 3 +++ textproc/sgrep2/Makefile | 23 +++++++++++++++++++++++ textproc/sgrep2/distinfo | 1 + textproc/sgrep2/files/patch-aa | 30 ++++++++++++++++++++++++++++++ textproc/sgrep2/files/patch-ab | 11 +++++++++++ textproc/sgrep2/pkg-comment | 1 + textproc/sgrep2/pkg-descr | 11 +++++++++++ textproc/sgrep2/pkg-plist | 3 +++ 14 files changed, 160 insertions(+) create mode 100644 textproc/sgrep/Makefile create mode 100644 textproc/sgrep/distinfo create mode 100644 textproc/sgrep/files/patch-aa create mode 100644 textproc/sgrep/files/patch-ab create mode 100644 textproc/sgrep/pkg-comment create mode 100644 textproc/sgrep/pkg-descr create mode 100644 textproc/sgrep/pkg-plist create mode 100644 textproc/sgrep2/Makefile create mode 100644 textproc/sgrep2/distinfo create mode 100644 textproc/sgrep2/files/patch-aa create mode 100644 textproc/sgrep2/files/patch-ab create mode 100644 textproc/sgrep2/pkg-comment create mode 100644 textproc/sgrep2/pkg-descr create mode 100644 textproc/sgrep2/pkg-plist (limited to 'textproc') diff --git a/textproc/sgrep/Makefile b/textproc/sgrep/Makefile new file mode 100644 index 000000000000..977ff624c5a5 --- /dev/null +++ b/textproc/sgrep/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: sgrep +# Version required: 0.99 +# Date created: Apr 29 1998 +# Whom: +# +# $Id$ +# + +DISTNAME= sgrep-0.99 +CATEGORIES= textproc +MASTER_SITES= ftp://ftp.cs.helsinki.fi/pub/Software/Local/Sgrep/ + +MAINTAINER= koshy@india.hp.com + +MAN1= sgrep.1 + +# Override the install target in the supplied makefile +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sgrep ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/sgrep.1 ${MANPREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/sample.sgreprc ${PREFIX}/share/sgreprc + +.include diff --git a/textproc/sgrep/distinfo b/textproc/sgrep/distinfo new file mode 100644 index 000000000000..67caeb5d7f9f --- /dev/null +++ b/textproc/sgrep/distinfo @@ -0,0 +1 @@ +MD5 (sgrep-0.99.tar.gz) = af09a90c4f1929bfae4818c8962a8907 diff --git a/textproc/sgrep/files/patch-aa b/textproc/sgrep/files/patch-aa new file mode 100644 index 000000000000..d4e33b33f4dd --- /dev/null +++ b/textproc/sgrep/files/patch-aa @@ -0,0 +1,30 @@ +--- Makefile-- Wed Apr 29 12:08:55 1998 ++++ Makefile Wed Apr 29 12:20:29 1998 +@@ -10,11 +10,11 @@ + # + + # This is where the executable goes +-BINDIR = /usr/local/bin/ ++BINDIR = ${PREFIX}/bin + # Where sgrep library files are placed (sgreprc) +-LIBDIR = /usr/local/lib ++LIBDIR = ${PREFIX}/share + # Where the manual page goes +-MANFILE = /usr/local/man/man1/sgrep.1 ++MANFILE = ${PREFIX}/man/man1/sgrep.1 + # Where the sample rc file goes + RCFILE = $(LIBDIR)/sgreprc + # If you can't install as root you might wan't to use this as rc file +@@ -45,11 +45,7 @@ + clean: + -rm -f $(OBJECTS) + +-install: sgrep +- cp sgrep $(BINDIR)/sgrep +- chmod 755 $(BINDIR)/sgrep +- cp sgrep.1 $(MANFILE) +- chmod 644 $(MANFILE) ++install: + + install.rc: sample.sgreprc + cp sample.sgreprc $(RCFILE) diff --git a/textproc/sgrep/files/patch-ab b/textproc/sgrep/files/patch-ab new file mode 100644 index 000000000000..25d8e32eaa4d --- /dev/null +++ b/textproc/sgrep/files/patch-ab @@ -0,0 +1,11 @@ +--- sgrep.1-- Wed Apr 29 12:26:40 1998 ++++ sgrep.1 Wed Apr 29 12:26:49 1998 +@@ -91,7 +91,7 @@ + \fB$HOME/.sgreprc,\fP + or if it doesn't exist, + from file +-\fB/usr/lib/sgreprc, \fP ++\fB/usr/local/share/sgreprc, \fP + and then from the command line. Different behavior + can be specified through command line options. + .Pp diff --git a/textproc/sgrep/pkg-comment b/textproc/sgrep/pkg-comment new file mode 100644 index 000000000000..1860f9fd7565 --- /dev/null +++ b/textproc/sgrep/pkg-comment @@ -0,0 +1 @@ +A `grep' for structured text like SGML and HTML. diff --git a/textproc/sgrep/pkg-descr b/textproc/sgrep/pkg-descr new file mode 100644 index 000000000000..c2ca2e0968c7 --- /dev/null +++ b/textproc/sgrep/pkg-descr @@ -0,0 +1,11 @@ +`sgrep' (structured grep) is a tool for searching text files and +filtering text streams using structural criteria. Complex criteria +can be specified as macros using M4. + +Sgrep was created by: + + Jani Jaakkola, email:Jani.Jaakkola@helsinki.fi + Pekka Kilpelainen, email: Pekka.Kilpelainen@helsinki.fi + +- Koshy + diff --git a/textproc/sgrep/pkg-plist b/textproc/sgrep/pkg-plist new file mode 100644 index 000000000000..556e7fe31b62 --- /dev/null +++ b/textproc/sgrep/pkg-plist @@ -0,0 +1,3 @@ +bin/sgrep +share/sgreprc +man/man1/sgrep.1.gz diff --git a/textproc/sgrep2/Makefile b/textproc/sgrep2/Makefile new file mode 100644 index 000000000000..977ff624c5a5 --- /dev/null +++ b/textproc/sgrep2/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: sgrep +# Version required: 0.99 +# Date created: Apr 29 1998 +# Whom: +# +# $Id$ +# + +DISTNAME= sgrep-0.99 +CATEGORIES= textproc +MASTER_SITES= ftp://ftp.cs.helsinki.fi/pub/Software/Local/Sgrep/ + +MAINTAINER= koshy@india.hp.com + +MAN1= sgrep.1 + +# Override the install target in the supplied makefile +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sgrep ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/sgrep.1 ${MANPREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/sample.sgreprc ${PREFIX}/share/sgreprc + +.include diff --git a/textproc/sgrep2/distinfo b/textproc/sgrep2/distinfo new file mode 100644 index 000000000000..67caeb5d7f9f --- /dev/null +++ b/textproc/sgrep2/distinfo @@ -0,0 +1 @@ +MD5 (sgrep-0.99.tar.gz) = af09a90c4f1929bfae4818c8962a8907 diff --git a/textproc/sgrep2/files/patch-aa b/textproc/sgrep2/files/patch-aa new file mode 100644 index 000000000000..d4e33b33f4dd --- /dev/null +++ b/textproc/sgrep2/files/patch-aa @@ -0,0 +1,30 @@ +--- Makefile-- Wed Apr 29 12:08:55 1998 ++++ Makefile Wed Apr 29 12:20:29 1998 +@@ -10,11 +10,11 @@ + # + + # This is where the executable goes +-BINDIR = /usr/local/bin/ ++BINDIR = ${PREFIX}/bin + # Where sgrep library files are placed (sgreprc) +-LIBDIR = /usr/local/lib ++LIBDIR = ${PREFIX}/share + # Where the manual page goes +-MANFILE = /usr/local/man/man1/sgrep.1 ++MANFILE = ${PREFIX}/man/man1/sgrep.1 + # Where the sample rc file goes + RCFILE = $(LIBDIR)/sgreprc + # If you can't install as root you might wan't to use this as rc file +@@ -45,11 +45,7 @@ + clean: + -rm -f $(OBJECTS) + +-install: sgrep +- cp sgrep $(BINDIR)/sgrep +- chmod 755 $(BINDIR)/sgrep +- cp sgrep.1 $(MANFILE) +- chmod 644 $(MANFILE) ++install: + + install.rc: sample.sgreprc + cp sample.sgreprc $(RCFILE) diff --git a/textproc/sgrep2/files/patch-ab b/textproc/sgrep2/files/patch-ab new file mode 100644 index 000000000000..25d8e32eaa4d --- /dev/null +++ b/textproc/sgrep2/files/patch-ab @@ -0,0 +1,11 @@ +--- sgrep.1-- Wed Apr 29 12:26:40 1998 ++++ sgrep.1 Wed Apr 29 12:26:49 1998 +@@ -91,7 +91,7 @@ + \fB$HOME/.sgreprc,\fP + or if it doesn't exist, + from file +-\fB/usr/lib/sgreprc, \fP ++\fB/usr/local/share/sgreprc, \fP + and then from the command line. Different behavior + can be specified through command line options. + .Pp diff --git a/textproc/sgrep2/pkg-comment b/textproc/sgrep2/pkg-comment new file mode 100644 index 000000000000..1860f9fd7565 --- /dev/null +++ b/textproc/sgrep2/pkg-comment @@ -0,0 +1 @@ +A `grep' for structured text like SGML and HTML. diff --git a/textproc/sgrep2/pkg-descr b/textproc/sgrep2/pkg-descr new file mode 100644 index 000000000000..c2ca2e0968c7 --- /dev/null +++ b/textproc/sgrep2/pkg-descr @@ -0,0 +1,11 @@ +`sgrep' (structured grep) is a tool for searching text files and +filtering text streams using structural criteria. Complex criteria +can be specified as macros using M4. + +Sgrep was created by: + + Jani Jaakkola, email:Jani.Jaakkola@helsinki.fi + Pekka Kilpelainen, email: Pekka.Kilpelainen@helsinki.fi + +- Koshy + diff --git a/textproc/sgrep2/pkg-plist b/textproc/sgrep2/pkg-plist new file mode 100644 index 000000000000..556e7fe31b62 --- /dev/null +++ b/textproc/sgrep2/pkg-plist @@ -0,0 +1,3 @@ +bin/sgrep +share/sgreprc +man/man1/sgrep.1.gz -- cgit v1.2.3