1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Import cweb port. CWEB is Don Knuth's WEB system adapted for C.

This commit is contained in:
Thomas Gellekum 1998-02-11 07:42:14 +00:00
parent ae12c9c842
commit ebdaa8da51
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=9658
7 changed files with 99 additions and 0 deletions

31
devel/cweb/Makefile Normal file
View File

@ -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>

1
devel/cweb/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (cweb.tar.gz) = 7cf1259e7d255656200c5ed5083abbcd

47
devel/cweb/files/patch-aa Normal file
View File

@ -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

1
devel/cweb/pkg-comment Normal file
View File

@ -0,0 +1 @@
Literate programming tools for the C language.

2
devel/cweb/pkg-descr Normal file
View File

@ -0,0 +1,2 @@
This is an adaptation of Donald Knuth's WEB system of
literate programming for the C language.

4
devel/cweb/pkg-message Normal file
View File

@ -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.

13
devel/cweb/pkg-plist Normal file
View File

@ -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