diff options
author | petef <petef@FreeBSD.org> | 2001-12-03 06:20:00 +0000 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-12-03 06:20:00 +0000 |
commit | ba332dcce76f7982caa2e7c55b28e71b024da9e9 (patch) | |
tree | be70033a1dde6523fdcae19f1c23f1304bb855a4 /math/naturalmath/Makefile | |
parent | 006f6ab16034c7d61b9a938f2d5676ef8f710bee (diff) | |
download | FreeBSD-ports-ba332dcce76f7982caa2e7c55b28e71b024da9e9.zip FreeBSD-ports-ba332dcce76f7982caa2e7c55b28e71b024da9e9.tar.gz |
Add naturalmath-0.5, a script to turn intuitively written math into latex
PR: 31701
Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu>
Diffstat (limited to 'math/naturalmath/Makefile')
-rw-r--r-- | math/naturalmath/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/math/naturalmath/Makefile b/math/naturalmath/Makefile new file mode 100644 index 0000000..ff58fdc --- /dev/null +++ b/math/naturalmath/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: naturalmath +# Date created: 1 November 2001 +# Whom: Stephen Montgomery-Smith +# +# $FreeBSD$ +# + +PORTNAME= naturalmath +PORTVERSION= 0.5 +CATEGORIES= math +MASTER_SITES= http://www.math.missouri.edu/~stephen/naturalmath/ + +MAINTAINER= stephen@math.missouri.edu + +BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX + +USE_PERL5= yes + +post-patch: + @${PERL} -pi -e 's,^#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/naturalmath + +do-build: + (cd ${WRKSRC}; ./naturalmath tutor.nat; \ + ${LOCALBASE}/bin/latex tutor; ${LOCALBASE}/bin/latex tutor; \ + ${LOCALBASE}/bin/dvips tutor -o tutor.ps) + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/naturalmath ${PREFIX}/bin +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/install.html ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/tutor.nat ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/tutor.tex ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/tutor.dvi ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/tutor.ps ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/naturalmath.cgi ${DOCSDIR} +.endif + +.include <bsd.port.mk> |