summaryrefslogtreecommitdiff
path: root/devel/cweb/Makefile
diff options
context:
space:
mode:
authorjtb <jtb>2000-11-25 17:23:27 +0000
committerjtb <jtb>2000-11-25 17:23:27 +0000
commit0b2ac56595e9363bafa7f2c80320b083adbef638 (patch)
tree7d87ad47b48c91b59d90a744f36fb66f28cdb79e /devel/cweb/Makefile
parent933ab73f161efd76ec93c8e96c22f958efacbde4 (diff)
downloadpkgsrc-0b2ac56595e9363bafa7f2c80320b083adbef638.tar.gz
Initial import of new "cweb" package:
C based version of Knuth's literate programming system WEB
Diffstat (limited to 'devel/cweb/Makefile')
-rw-r--r--devel/cweb/Makefile40
1 files changed, 40 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"