From abe31a15a805b0d631230bd0897a9aaccc8d3f1c Mon Sep 17 00:00:00 2001 From: angelos Date: Sun, 17 May 1998 05:08:35 +0000 Subject: [PATCH] detex port --- print/detex/Makefile | 25 +++++++ print/detex/files/md5 | 1 + print/detex/patches/patch-01 | 122 +++++++++++++++++++++++++++++++++++ print/detex/pkg/COMMENT | 1 + print/detex/pkg/DESCR | 3 + print/detex/pkg/PLIST | 2 + 6 files changed, 154 insertions(+) create mode 100644 print/detex/Makefile create mode 100644 print/detex/files/md5 create mode 100644 print/detex/patches/patch-01 create mode 100644 print/detex/pkg/COMMENT create mode 100644 print/detex/pkg/DESCR create mode 100644 print/detex/pkg/PLIST diff --git a/print/detex/Makefile b/print/detex/Makefile new file mode 100644 index 00000000000..b94e9a6589b --- /dev/null +++ b/print/detex/Makefile @@ -0,0 +1,25 @@ +# OpenBSD makefile for: detex +# Version required: 2.6 +# Date created: May 17 1998 +# Whom: Angelos D. Keromytis +# +# $OpenBSD: Makefile,v 1.1.1.1 1998/05/17 05:08:35 angelos Exp $ +# + +DISTNAME= detex-2.6 +CATEGORIES= print +MASTER_SITES= ftp://ftp.cs.purdue.edu/pub/trinkle/ +EXTRACT_SUFX= .tar + +MAINTAINER= angelos@openbsd.org + +EXTRACT_BEFORE_ARGS= -C ${WRKDIR} -xf +NO_WRKSUBDIR= yes +MAN1= detex.1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/detex ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${MAN1}l ${PREFIX}/man/man1/${MAN1} + + +.include diff --git a/print/detex/files/md5 b/print/detex/files/md5 new file mode 100644 index 00000000000..bc869305560 --- /dev/null +++ b/print/detex/files/md5 @@ -0,0 +1 @@ +MD5 (detex-2.6.tar) = 410ce52761054c6af7059cb3d9f98e5b diff --git a/print/detex/patches/patch-01 b/print/detex/patches/patch-01 new file mode 100644 index 00000000000..74180e14f29 --- /dev/null +++ b/print/detex/patches/patch-01 @@ -0,0 +1,122 @@ +--- detex.l.orig Thu Aug 12 08:54:46 1993 ++++ detex.l Mon Feb 17 23:01:15 1997 +@@ -76,7 +76,7 @@ + + "\\begin"{S}"{"{S}"document"{S}"}" {fLatex = !fForcetex; IGNORE;} + +-"\\begin" /* environment start */ {LaBEGIN LaBegin; IGNORE;} ++"\\begin" {/* environment start */ LaBEGIN LaBegin; IGNORE;} + + {S}"{"{S}"verbatim"{S}"}" { if (BeginEnv("verbatim")) + BEGIN LaEnv; +@@ -85,8 +85,8 @@ + IGNORE; + } + +-"\\end"{S}"{"{S}"verbatim"{S}"}" /* verbatim mode */ +- {BEGIN Normal; IGNORE;} ++"\\end"{S}"{"{S}"verbatim"{S}"}" {/* verbatim mode */ ++ BEGIN Normal; IGNORE;} + . ECHO; + + {W} { if (BeginEnv(yytext)) +@@ -98,11 +98,11 @@ + "\n" NEWLINE; + . ; + +-"\\end" /* absorb some environments */ {LaBEGIN LaEnd; IGNORE;} ++"\\end" {/* absorb some environments */ LaBEGIN LaEnd; IGNORE;} + "\n" NEWLINE; + . ; + +-{W} /* end environment */ { if (EndEnv(yytext)) ++{W} {/* end environment */ if (EndEnv(yytext)) + BEGIN Normal; + IGNORE; + } +@@ -110,8 +110,8 @@ + "\n" NEWLINE; + . ; + +-"\\bibitem" /* ignore args */ {LaBEGIN LaMacro2; IGNORE;} +-"\\bibliography" /* of these \cs */ {LaBEGIN LaMacro; IGNORE;} ++"\\bibitem" {/* ignore args */ LaBEGIN LaMacro2; IGNORE;} ++"\\bibliography" {/* of these \cs */ LaBEGIN LaMacro; IGNORE;} + "\\bibstyle" {LaBEGIN LaMacro; IGNORE;} + "\\cite" {CITEBEGIN LaMacro2; IGNORE;} + "\\documentstyle" {LaBEGIN LaMacro; IGNORE;} +@@ -122,8 +122,8 @@ + "\\pagestyle" {LaBEGIN LaMacro; IGNORE;} + "\\ref" {CITEBEGIN LaMacro; IGNORE;} + "\\setcounter" {LaBEGIN LaMacro; IGNORE;} +-"\\verb" /* ignore \verb... */ +- { if (fLatex) { ++"\\verb" {/* ignore \verb... */ ++ if (fLatex) { + char verbchar, c; + verbchar = input(); + while ((c = input()) != verbchar) +@@ -143,33 +143,33 @@ + "\n" NEWLINE; + . ; + +-"\\def" /* ignore def begin */ {BEGIN Define; IGNORE;} ++"\\def" {/* ignore def begin */ BEGIN Define; IGNORE;} + "{" BEGIN Normal; + "\n" NEWLINE; + . ; + +-"\\(" /* formula mode */ {LaBEGIN LaFormula; IGNORE;} ++"\\(" {/* formula mode */ LaBEGIN LaFormula; IGNORE;} + "\\)" BEGIN Normal; + "\n" NEWLINE; + . ; + +-"\\[" /* display mode */ {LaBEGIN LaDisplay; IGNORE;} ++"\\[" {/* display mode */ LaBEGIN LaDisplay; IGNORE;} + "\\]" BEGIN Normal; + "\n" NEWLINE; + . ; + +-"$$" /* display mode */ {BEGIN Display; IGNORE;} ++"$$" {/* display mode */ BEGIN Display; IGNORE;} + "$$" BEGIN Normal; + "\n" NEWLINE; + . ; + +-"$" /* math mode */ {BEGIN Math; IGNORE;} ++"$" {/* math mode */ BEGIN Math; IGNORE;} + "$" BEGIN Normal; + "\n" NEWLINE; + "\\$" ; + . ; + +-"\\include" /* process files */ {LaBEGIN LaInclude; IGNORE;} ++"\\include" {/* process files */ LaBEGIN LaInclude; IGNORE;} + [^{ \t\n}]+ { IncludeFile(yytext); + BEGIN Normal; + } +@@ -192,11 +192,11 @@ +