import vgrind from base

vgrind formats the program sources which are arguments in a nice style
using troff(1). Comments are placed in italics, keywords in bold face,
and the name of the current function is listed down the margin of each
page as it is encountered.

help and OK sthen@
This commit is contained in:
jasper 2010-10-23 16:49:11 +00:00
parent 83aeb13546
commit 89f9ff99f9
8 changed files with 124 additions and 0 deletions

37
textproc/vgrind/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/10/23 16:49:11 jasper Exp $
COMMENT= grind nice listings of programs
DISTNAME= vgrind-1.0
CATEGORIES= textproc
# 3-clause BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c
MASTER_SITES= http://distfiles.nl/
USE_GROFF= Yes
NO_REGRESS= Yes
pre-configure:
cd ${WRKSRC}; ${SUBST_CMD} vgrind{.sh,.1,efs.5} pathnames.h
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/tmac/ ${PREFIX}/share/vgrind
${INSTALL_SCRIPT} ${WRKSRC}/vgrind.sh ${PREFIX}/bin/vgrind
${INSTALL_PROGRAM} ${WRKSRC}/vfontedpr ${PREFIX}/libexec/
${INSTALL_DATA} ${WRKSRC}/vgrindefs.src \
${PREFIX}/share/vgrind/vgrindefs
${INSTALL_DATA} ${WRKSRC}/vgrindefs.src.db \
${PREFIX}/share/vgrind/vgrindefs.db
${INSTALL_DATA} ${WRKSRC}/tmac.vgrind ${PREFIX}/share/tmac
${INSTALL_MAN} ${WRKSRC}/vgrind.1 ${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/vgrindefs.5 ${PREFIX}/man/man5/
.include <bsd.port.mk>

5
textproc/vgrind/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (vgrind-1.0.tar.gz) = /5AtLpBYBL4N/YEDzNvq/A==
RMD160 (vgrind-1.0.tar.gz) = 0OvxEjiJh+OMrHzRGVgX+I4G9xc=
SHA1 (vgrind-1.0.tar.gz) = 2sLExk3k++ED650I1MKQtqmbSz4=
SHA256 (vgrind-1.0.tar.gz) = PbW/Uid1H7BxtByHaRr+Xd7vsYZvqmaa0gMZMDiO2rk=
SIZE (vgrind-1.0.tar.gz) = 18447

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-pathnames_h,v 1.1.1.1 2010/10/23 16:49:11 jasper Exp $
--- pathnames.h.orig Sat Oct 23 18:46:53 2010
+++ pathnames.h Sat Oct 23 18:47:07 2010
@@ -32,4 +32,4 @@
* @(#)pathnames.h 8.1 (Berkeley) 6/6/93
*/
-#define _PATH_VGRINDEFS "/usr/share/misc/vgrindefs"
+#define _PATH_VGRINDEFS "${LOCALBASE}/share/vgrind/vgrindefs"

View File

@ -0,0 +1,31 @@
$OpenBSD: patch-vgrind_1,v 1.1.1.1 2010/10/23 16:49:11 jasper Exp $
--- vgrind.1.orig Sat Oct 23 18:32:04 2010
+++ vgrind.1 Sat Oct 23 18:32:37 2010
@@ -99,7 +99,7 @@ The options are as follows:
.It Fl d Ar file
Specifies an alternate language definitions
file (default is
-.Pa /usr/share/misc/vgrindefs ) .
+.Pa ${PREFIX}/share/misc/vgrindefs ) .
.It Fl f
Forces filter mode.
.It Fl h Ar header
@@ -164,14 +164,14 @@ option and the file
as argument.
.El
.Sh FILES
-.Bl -tag -width /usr/share/misc/vgrindefsxx -compact
+.Bl -tag -width ${PREFIX}/share/misc/vgrindefsxx -compact
.It Pa index
file where source for index is created
-.It Pa /usr/share/tmac/tmac.vgrind
+.It Pa ${PREFIX}/share/tmac/tmac.vgrind
macro package
-.It Pa /usr/libexec/vfontedpr
+.It Pa ${PREFIX}/libexec/vfontedpr
preprocessor
-.It Pa /usr/share/misc/vgrindefs
+.It Pa ${PREFIX}/share/misc/vgrindefs
language descriptions
.El
.Sh SEE ALSO

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-vgrind_sh,v 1.1.1.1 2010/10/23 16:49:11 jasper Exp $
--- vgrind.sh.orig Sat Oct 23 18:31:58 2010
+++ vgrind.sh Sat Oct 23 18:32:29 2010
@@ -40,8 +40,8 @@ else
set troff = "groff"
endif
-set vf=/usr/libexec/vfontedpr
-set tm=/usr/share/tmac
+set vf=${PREFIX}/libexec/vfontedpr
+set tm=${PREFIX}/share/tmac
set voptions=
set options=

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-vgrindefs_5,v 1.1.1.1 2010/10/23 16:49:11 jasper Exp $
--- vgrindefs.5.orig Sat Oct 23 18:32:09 2010
+++ vgrindefs.5 Sat Oct 23 18:32:41 2010
@@ -162,8 +162,8 @@ boolean is specified, indicating that upper
and lower case are equivalent, then all the keywords should be
specified in lower case.
.Sh FILES
-.Bl -tag -width /usr/share/misc/vgrindefs -compact
-.It Pa /usr/share/misc/vgrindefs
+.Bl -tag -width ${PREFIX}/share/misc/vgrindefs -compact
+.It Pa ${PREFIX}/share/misc/vgrindefs
file containing terminal descriptions
.El
.Sh SEE ALSO

View File

@ -0,0 +1,4 @@
vgrind formats the program sources which are arguments in a nice style
using troff(1). Comments are placed in italics, keywords in bold face,
and the name of the current function is listed down the margin of each
page as it is encountered.

10
textproc/vgrind/pkg/PLIST Normal file
View File

@ -0,0 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/10/23 16:49:11 jasper Exp $
bin/vgrind
@bin libexec/vfontedpr
@man man/man1/vgrind.1
@man man/man5/vgrindefs.5
share/tmac/
share/tmac/tmac.vgrind
share/vgrind/
share/vgrind/vgrindefs
share/vgrind/vgrindefs.db