aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1998-02-11 15:42:14 +0800
committertg <tg@FreeBSD.org>1998-02-11 15:42:14 +0800
commit2d89622b26a40de9c073bd5f40b35562707a664a (patch)
tree8a1b89434cc987a1075c257e395854c15fa92723 /devel
parent50750649c8aabfa17f7d4597100553df9cba7318 (diff)
downloadfreebsd-ports-gnome-2d89622b26a40de9c073bd5f40b35562707a664a.tar.gz
freebsd-ports-gnome-2d89622b26a40de9c073bd5f40b35562707a664a.tar.zst
freebsd-ports-gnome-2d89622b26a40de9c073bd5f40b35562707a664a.zip
Import cweb port. CWEB is Don Knuth's WEB system adapted for C.
Diffstat (limited to 'devel')
-rw-r--r--devel/cweb/Makefile31
-rw-r--r--devel/cweb/distinfo1
-rw-r--r--devel/cweb/files/patch-aa47
-rw-r--r--devel/cweb/pkg-comment1
-rw-r--r--devel/cweb/pkg-descr2
-rw-r--r--devel/cweb/pkg-message4
-rw-r--r--devel/cweb/pkg-plist13
7 files changed, 99 insertions, 0 deletions
diff --git a/devel/cweb/Makefile b/devel/cweb/Makefile
new file mode 100644
index 000000000000..226560fcf90f
--- /dev/null
+++ b/devel/cweb/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: cweb
+# Version required: 3.41
+# Date created: 10 Feb 1998
+# Whom: Thomas Gellekum <tg@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= cweb
+PKGNAME= cweb-3.41
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
+MASTER_SITE_SUBDIR= web/c_cpp/cweb
+
+MAINTAINER= tg@FreeBSD.ORG
+
+NO_WRKSUBDIR= yes
+MAN1= cweb.1
+
+pre-install:
+ @${MKDIR} ${PREFIX}/share/texmf/tex/generic/misc
+ @${MKDIR} ${PREFIX}/share/emacs/site-lisp
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/cweb
+ @${INSTALL_DATA} ${WRKDIR}/cwebman.tex ${PREFIX}/share/doc/cweb
+.endif
+ @${CAT} ${PKGDIR}/MESSAGE
+
+.include <bsd.port.mk>
diff --git a/devel/cweb/distinfo b/devel/cweb/distinfo
new file mode 100644
index 000000000000..fab98dec402a
--- /dev/null
+++ b/devel/cweb/distinfo
@@ -0,0 +1 @@
+MD5 (cweb.tar.gz) = 7cf1259e7d255656200c5ed5083abbcd
diff --git a/devel/cweb/files/patch-aa b/devel/cweb/files/patch-aa
new file mode 100644
index 000000000000..17ec8e81eb80
--- /dev/null
+++ b/devel/cweb/files/patch-aa
@@ -0,0 +1,47 @@
+--- Makefile.orig Thu Sep 21 22:32:18 1995
++++ Makefile Tue Feb 10 19:30:55 1998
+@@ -18,23 +18,23 @@
+ #
+
+ # directory for TeX inputs (cwebmac.tex goes here)
+-MACROSDIR= /usr/local/lib/tex/inputs
++MACROSDIR= ${PREFIX}/share/texmf/tex/generic/misc
+
+ # 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= ${PREFIX}/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,10 +50,10 @@
+ WCHANGES=
+
+ # We keep debugging info around, for fun, but most users don't need it
+-CFLAGS = -g
++#CFLAGS = -g
+ #CFLAGS = -O
+-LINKFLAGS = -g
+-#LINKFLAGS = -s # for smaller (stripped) executables on many UNIX systems
++#LINKFLAGS = -g
++LINKFLAGS = -s # for smaller (stripped) executables on many UNIX systems
+
+ # What C compiler are you using?
+ CC = cc
diff --git a/devel/cweb/pkg-comment b/devel/cweb/pkg-comment
new file mode 100644
index 000000000000..a546cea18219
--- /dev/null
+++ b/devel/cweb/pkg-comment
@@ -0,0 +1 @@
+Literate programming tools for the C language.
diff --git a/devel/cweb/pkg-descr b/devel/cweb/pkg-descr
new file mode 100644
index 000000000000..115a1fb2c35c
--- /dev/null
+++ b/devel/cweb/pkg-descr
@@ -0,0 +1,2 @@
+This is an adaptation of Donald Knuth's WEB system of
+literate programming for the C language.
diff --git a/devel/cweb/pkg-message b/devel/cweb/pkg-message
new file mode 100644
index 000000000000..0546538a7c9b
--- /dev/null
+++ b/devel/cweb/pkg-message
@@ -0,0 +1,4 @@
+
+You'll want to install some TeX package along with this.
+I recommend getting teTeX if you're not short on disk space.
+
diff --git a/devel/cweb/pkg-plist b/devel/cweb/pkg-plist
new file mode 100644
index 000000000000..63d46ed8b8d8
--- /dev/null
+++ b/devel/cweb/pkg-plist
@@ -0,0 +1,13 @@
+bin/ctangle
+bin/cweave
+man/man1/cweb.1.gz
+share/doc/cweb/cwebman.tex
+share/emacs/site-lisp/cweb.el
+share/texmf/tex/generic/misc/cwebmac.tex
+@dirrm share/texmf/tex/generic/misc
+@dirrm share/texmf/tex/generic
+@dirrm share/texmf/tex
+@dirrm share/texmf
+@dirrm share/emacs/site-lisp
+@dirrm share/emacs
+@dirrm share/doc/cweb