diff options
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/awf/DESCR | 22 | ||||
-rw-r--r-- | textproc/awf/Makefile | 25 | ||||
-rw-r--r-- | textproc/awf/PLIST | 13 | ||||
-rw-r--r-- | textproc/awf/distinfo | 5 | ||||
-rw-r--r-- | textproc/awf/patches/patch-aa | 41 |
5 files changed, 106 insertions, 0 deletions
diff --git a/textproc/awf/DESCR b/textproc/awf/DESCR new file mode 100644 index 00000000000..93f8dc87757 --- /dev/null +++ b/textproc/awf/DESCR @@ -0,0 +1,22 @@ +This is awf, the Amazingly Workable Formatter -- a "nroff -man" or +(subset) "nroff -ms" clone written entirely in (old) awk. + +It is slow and has many restrictions, but does a decent job on most +manual pages and simple -ms documents, and isn't subject to AT&T's +brain-damaged licensing that denies many System V users any text +formatter at all. It is also a text formatter that is simple enough +to be tinkered with, for people who want to experiment. + +Type "make r" to run a regression test, formatting the manual page +(awf.1) and comparing it to a preformatted copy (awf.1.out). Type +"make install" to install it. Pathnames may need changing. + +I don't know whether awf will run on 16-bit machines. Data requirements +are modest, but I fear the programs are probably big enough to run awk +out of space. + +I can't believe I really wrote this. + + Henry Spencer at U of Toronto Zoology + henry@zoo.toronto.edu utzoo!henry + 13 July 1990 diff --git a/textproc/awf/Makefile b/textproc/awf/Makefile new file mode 100644 index 00000000000..7c5f3e3ee39 --- /dev/null +++ b/textproc/awf/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/12/04 08:33:59 agc Exp $ +# + +DISTNAME= nroff-clone +PKGNAME= awf-19900907 +CATEGORIES= textproc +MASTER_SITES= http://www.scn.rain.com/pub/text/ +EXTRACT_SUFX= .shar.Z + +MAINTAINER= tech-pkg@netbsd.org +HOMEPAGE= http://www.scn.rain.com/pub/text/ +COMMENT= Text formatter (nroff-clone) written in awk + +BUILD_DEPENDS= gsharutils>=4.2.1:../../archivers/gsharutils + +EXTRACT_CMD= zcat ${DOWNLOADED_DISTFILE} | gunshar +WRKSRC= ${WRKDIR} + +SUBST_CLASSES+= awflib +SUBST_MESSAGE.awflib= "Fixing awf library path." +SUBST_FILES.awflib= Makefile awf awf.1 +SUBST_SED.awflib= -e 's|/usr/lib/awf|${PREFIX}/share/awf|' +SUBST_STAGE.awflib= post-patch + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/awf/PLIST b/textproc/awf/PLIST new file mode 100644 index 00000000000..e9fa4ad03aa --- /dev/null +++ b/textproc/awf/PLIST @@ -0,0 +1,13 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/04 08:33:59 agc Exp $ +bin/awf +man/man1/awf.1 +share/awf/common +share/awf/dev.dumb +share/awf/mac.man +share/awf/mac.ms +share/awf/pass1 +share/awf/pass2.base +share/awf/pass2.man +share/awf/pass2.ms +share/awf/pass3 +@dirrm share/awf diff --git a/textproc/awf/distinfo b/textproc/awf/distinfo new file mode 100644 index 00000000000..38fe4ce62e6 --- /dev/null +++ b/textproc/awf/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/12/04 08:33:59 agc Exp $ + +SHA1 (nroff-clone.shar.Z) = 4e4527234f97b16f62341b4b844d128b4cabd617 +Size (nroff-clone.shar.Z) = 26302 bytes +SHA1 (patch-aa) = 486c404fcd90638c59fb3df01eb41ffeb2595982 diff --git a/textproc/awf/patches/patch-aa b/textproc/awf/patches/patch-aa new file mode 100644 index 00000000000..05f10fe1a06 --- /dev/null +++ b/textproc/awf/patches/patch-aa @@ -0,0 +1,41 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/12/04 08:33:59 agc Exp $ + +--- Makefile 2003/11/04 18:25:04 1.1 ++++ Makefile 2003/11/04 18:23:55 +@@ -1,17 +1,15 @@ +-AWFLIB = /usr/lib/awf # beware, awf itself knows this +-BIN = /usr/bin +-MAN = /usr/man/man1 ++AWFLIB = ${PREFIX}/share/awf # beware, awf itself knows this ++BIN = ${PREFIX}/bin ++MAN = ${PREFIX}/man/man1 + CP = common dev.dumb mac.man mac.ms pass1 pass2.base pass2.man pass2.ms pass3 + DTR = README COPYRIGHT Makefile awf awf.1 awf.1.out common dev.dumb mac.man \ + mac.ms pass1 pass2.base pass2.man pass2.ms pass3 + # System V brain damage +-SHELL = /bin/sh ++#SHELL = /bin/sh + +-r: awf.1 ++all r: awf.1 + chmod +x awf +- AWFLIB=. awf -man awf.1 >tmp +- cmp tmp awf.1.out +- rm tmp ++ AWFLIB=. ./awf -man awf.1 >tmp + + install: + -if test ! -d $(AWFLIB) ; then mkdir $(AWFLIB) ; fi +@@ -20,10 +18,10 @@ + cp awf.1 $(MAN) + + rr: r testm tests.Z tests.out.Z +- AWFLIB=. awf -man testm >tmp ++ AWFLIB=. ./awf -man testm >tmp + cmp tmp testm.out + rm tmp +- uncompress <tests.Z | AWFLIB=. awf -ms >tmp ++ uncompress <tests.Z | AWFLIB=. ./awf -ms >tmp + uncompress <tests.out.Z | cmp - tmp + rm tmp + |