pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/awf Initial import of awf-19900907 into the N...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3caf1201682f
branches:  trunk
changeset: 464162:3caf1201682f
user:      agc <agc%pkgsrc.org@localhost>
date:      Thu Dec 04 08:33:59 2003 +0000

description:
Initial import of awf-19900907 into the NetBSD Packages Collection.

"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@localhost   utzoo!henry
                                                13 July 1990"

diffstat:

 textproc/awf/DESCR            |  22 ++++++++++++++++++++++
 textproc/awf/Makefile         |  25 +++++++++++++++++++++++++
 textproc/awf/PLIST            |  13 +++++++++++++
 textproc/awf/distinfo         |   5 +++++
 textproc/awf/patches/patch-aa |  41 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 106 insertions(+), 0 deletions(-)

diffs (126 lines):

diff -r bafc23b53374 -r 3caf1201682f textproc/awf/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/awf/DESCR        Thu Dec 04 08:33:59 2003 +0000
@@ -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@localhost   utzoo!henry
+                                               13 July 1990
diff -r bafc23b53374 -r 3caf1201682f textproc/awf/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/awf/Makefile     Thu Dec 04 08:33:59 2003 +0000
@@ -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@localhost
+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 -r bafc23b53374 -r 3caf1201682f textproc/awf/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/awf/PLIST        Thu Dec 04 08:33:59 2003 +0000
@@ -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 -r bafc23b53374 -r 3caf1201682f textproc/awf/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/awf/distinfo     Thu Dec 04 08:33:59 2003 +0000
@@ -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 -r bafc23b53374 -r 3caf1201682f textproc/awf/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/awf/patches/patch-aa     Thu Dec 04 08:33:59 2003 +0000
@@ -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
+ 



Home | Main Index | Thread Index | Old Index