summaryrefslogtreecommitdiff
path: root/devel/cweb
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2000-11-25 17:23:27 +0000
committerjtb <jtb@pkgsrc.org>2000-11-25 17:23:27 +0000
commitcbefc95b7301a2a6cdd55ac74954957c25b4ff01 (patch)
tree7d87ad47b48c91b59d90a744f36fb66f28cdb79e /devel/cweb
parent8108862d81518331763764ca832a651d2e70ca9d (diff)
downloadpkgsrc-cbefc95b7301a2a6cdd55ac74954957c25b4ff01.tar.gz
Initial import of new "cweb" package:
C based version of Knuth's literate programming system WEB
Diffstat (limited to 'devel/cweb')
-rw-r--r--devel/cweb/Makefile40
-rw-r--r--devel/cweb/files/md53
-rw-r--r--devel/cweb/files/patch-sum4
-rw-r--r--devel/cweb/patches/patch-aa64
-rw-r--r--devel/cweb/patches/patch-ab22
-rw-r--r--devel/cweb/pkg/COMMENT1
-rw-r--r--devel/cweb/pkg/DESCR7
-rw-r--r--devel/cweb/pkg/INSTALL1
-rw-r--r--devel/cweb/pkg/PLIST29
9 files changed, 171 insertions, 0 deletions
diff --git a/devel/cweb/Makefile b/devel/cweb/Makefile
new file mode 100644
index 00000000000..71e7c60de79
--- /dev/null
+++ b/devel/cweb/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/11/25 17:23:27 jtb Exp $
+
+DISTNAME= cweb-3.62
+CATEGORIES= devel lang
+MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=web/cweb/}
+
+MAINTAINER= jtb@netbsd.org
+HOMEPAGE= http://www-cs-faculty.stanford.edu/~knuth/cweb.html
+
+DEPENDS+= teTeX-[0-9]*:../../print/teTeX
+
+NO_WRKSUBDIR= YES
+WRKSRC= ${WRKDIR}
+
+post-patch:
+ @for f in ${WRKSRC}/cweb.1 ; do \
+ ${SED} -e 's:%%PREFIX%%:'${PREFIX}':g' < $$f > $$f.tmp \
+ && ${MV} $$f.tmp $$f ; done
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/cweave ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/ctangle ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/cweb.1 ${PREFIX}/man/man1
+ ${INSTALL_DATA} ${WRKSRC}/cwebmac.tex \
+ ${PREFIX}/share/texmf/tex/plain/base
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/cweb
+ ${INSTALL_DATA} ${WRKSRC}/c++lib.w ${PREFIX}/share/cweb
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cweb
+ ${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/cweb
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cweb
+ ${INSTALL_DATA} ${WRKSRC}/cwebman.tex ${PREFIX}/share/doc/cweb
+.if !exists(${PREFIX}/share/emacs/site-lisp)
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
+.endif
+ ${INSTALL_DATA} ${WRKSRC}/cweb.el ${PREFIX}/share/emacs/site-lisp
+
+post-install:
+ @mktexlsr
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/cweb/files/md5 b/devel/cweb/files/md5
new file mode 100644
index 00000000000..c5837aa4c3d
--- /dev/null
+++ b/devel/cweb/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/11/25 17:23:27 jtb Exp $
+
+MD5 (cweb-3.62.tar.gz) = 0678c29c6c2c5328fe4e17c32a33a178
diff --git a/devel/cweb/files/patch-sum b/devel/cweb/files/patch-sum
new file mode 100644
index 00000000000..3c19051b39c
--- /dev/null
+++ b/devel/cweb/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/11/25 17:23:27 jtb Exp $
+
+MD5 (patch-aa) = c5e9e2ccdcd5f1ddedebf7ad972a5a25
+MD5 (patch-ab) = 16c0eb9b4ebd1c8686077884aa3d5a18
diff --git a/devel/cweb/patches/patch-aa b/devel/cweb/patches/patch-aa
new file mode 100644
index 00000000000..e48aa6dbbd2
--- /dev/null
+++ b/devel/cweb/patches/patch-aa
@@ -0,0 +1,64 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/11/25 17:23:28 jtb Exp $
+
+--- Makefile.orig Mon Jul 24 07:15:41 2000
++++ Makefile
+@@ -18,23 +18,23 @@
+ #
+
+ # directory for TeX inputs (cwebmac.tex goes here)
+-MACROSDIR= /usr/local/texmf/tex/generic
++MACROSDIR= ${PREFIX}/share/texmf/tex/plain/base
+
+ # directory for CWEB inputs in @i files
+-CWEBINPUTS= /usr/local/lib/cweb
++CWEBINPUTS= ${PREFIX}/share/cweb
+
+ # extension for manual pages ("l" distinguishes local from system stuff)
+-MANEXT= l
+-#MANEXT= 1
++#MANEXT= l
++MANEXT= 1
+
+ # directory for manual pages (cweb.1 goes here)
+-MANDIR= /usr/man/man$(MANEXT)
++MANDIR= ${PREFIX}/man/man$(MANEXT)
+
+ # destination directory for executables; must end in /
+-DESTDIR= /usr/local/bin/
++DESTDIR= ${PREFIX}/bin/
+
+ # directory for GNU EMACS Lisp code (cweb.el goes here)
+-EMACSDIR= /usr/local/emacs/lisp
++EMACSDIR= ${LOCALBASE}/share/emacs/site-lisp
+
+ # Set DESTPREF to null if you want to call the executables "tangle" and "weave"
+ # (probably NOT a good idea; we recommend leaving DESTPREF=c)
+@@ -50,21 +50,21 @@
+ WCHANGES=
+
+ # We keep debugging info around, for fun, but most users don't need it
+-CFLAGS = -g
+-#CFLAGS = -O
+-LINKFLAGS = -g
+-#LINKFLAGS = -s # for smaller (stripped) executables on many UNIX systems
++#CFLAGS = -g
++CFLAGS = -O
++#LINKFLAGS = -g
++LINKFLAGS = -s # for smaller (stripped) executables on many UNIX systems
+
+ # What C compiler are you using?
+-CC = cc
++#CC = cc
+
+ # RM and CP are used below in case rm and cp are aliased
+ RM= /bin/rm
+ CP= /bin/cp
+
+ # uncomment the second line if you use pdftex to bypass .dvi files
+-PDFTEX = dvipdfm
+-#PDFTEX = pdftex
++#PDFTEX = dvipdfm
++PDFTEX = pdftex
+
+ ########## You shouldn't have to change anything after this point #######
+
diff --git a/devel/cweb/patches/patch-ab b/devel/cweb/patches/patch-ab
new file mode 100644
index 00000000000..7884b633088
--- /dev/null
+++ b/devel/cweb/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/11/25 17:23:28 jtb Exp $
+
+--- cweb.1.orig Mon Oct 23 11:05:57 2000
++++ cweb.1
+@@ -77,13 +77,13 @@
+ means omit the index and table of contents.
+ .PP
+ .SH FILES
+-/usr/local/lib/tex/inputs/cwebmac.tex TeX macros used by cweave output.
++%%PREFIX%%/share/texmf/tex/plain/base/cwebmac.tex TeX macros used by cweave output.
+ .br
+-/usr/local/src/cweb/cwebman.tex The user manual.
++%%PREFIX%%/share/doc/cweb/cwebman.tex The user manual.
+ .br
+-/usr/local/src/cweb/examples/wc.w An introductory example.
++%%PREFIX%%/share/examples/cweb/wc.w An introductory example.
+ .br
+-/usr/local/lib/cweb Directory for cweb "include" files.
++%%PREFIX%%/share/cweb Directory for cweb "include" files.
+ .SH "SEE ALSO"
+ .I Literate Programming
+ by D.E. Knuth.
diff --git a/devel/cweb/pkg/COMMENT b/devel/cweb/pkg/COMMENT
new file mode 100644
index 00000000000..fda6548952e
--- /dev/null
+++ b/devel/cweb/pkg/COMMENT
@@ -0,0 +1 @@
+C based version of Knuth's literate programming system WEB
diff --git a/devel/cweb/pkg/DESCR b/devel/cweb/pkg/DESCR
new file mode 100644
index 00000000000..0770abf14bc
--- /dev/null
+++ b/devel/cweb/pkg/DESCR
@@ -0,0 +1,7 @@
+The philosophy behind CWEB is that programmers who want to provide the
+best possible documentation for their programs need two things
+simultaneously: a language like TeX for formatting, and a language
+like C for programming. Neither type of language can provide the best
+documentation by itself. But when both are appropriately combined, we
+obtain a system that is much more useful than either language
+separately.
diff --git a/devel/cweb/pkg/INSTALL b/devel/cweb/pkg/INSTALL
new file mode 100644
index 00000000000..675de46ddef
--- /dev/null
+++ b/devel/cweb/pkg/INSTALL
@@ -0,0 +1 @@
+mktexlsr
diff --git a/devel/cweb/pkg/PLIST b/devel/cweb/pkg/PLIST
new file mode 100644
index 00000000000..5620d525f41
--- /dev/null
+++ b/devel/cweb/pkg/PLIST
@@ -0,0 +1,29 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/11/25 17:23:27 jtb Exp $
+bin/ctangle
+bin/cweave
+man/man1/cweb.1
+share/cweb/c++lib.w
+share/doc/cweb/cwebman.tex
+share/emacs/site-lisp/cweb.el
+share/examples/cweb/Makefile
+share/examples/cweb/README
+share/examples/cweb/extex.ch
+share/examples/cweb/extex.w
+share/examples/cweb/kspell.el
+share/examples/cweb/oemacs.el
+share/examples/cweb/oemacs.w
+share/examples/cweb/treeprint.w
+share/examples/cweb/wc-dos.ch
+share/examples/cweb/wc.w
+share/examples/cweb/wmer-os2.ch
+share/examples/cweb/wmerg-pc.ch
+share/examples/cweb/wmerge.w
+share/examples/cweb/wordtest.w
+share/examples/cweb/xlib_types.w
+share/examples/cweb/xview_types.w
+share/texmf/tex/plain/base/cwebmac.tex
+@unexec mktexlsr
+@unexec rmdir share/emacs/site-lisp 2>/dev/null || true
+@dirrm share/examples/cweb
+@dirrm share/doc/cweb
+@dirrm share/cweb