View | Details | Raw Unified | Return to bug 41360
Collapse All | Expand All

(-)print/detex/Makefile (-3 / +5 lines)
Lines 7-15 Link Here
7
#
7
#
8
8
9
PORTNAME=	detex
9
PORTNAME=	detex
10
PORTVERSION=	2.6
10
PORTVERSION=	2.7
11
CATEGORIES=	print
11
CATEGORIES=	print
12
MASTER_SITES=	ftp://ftp.cs.purdue.edu/pub/trinkle/
12
MASTER_SITES=	http://www.cs.purdue.edu/homes/trinkle/detex/
13
EXTRACT_SUFX=	.tar
13
EXTRACT_SUFX=	.tar
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
Lines 17-28 Link Here
17
EXTRACT_CMD=		${TAR}
17
EXTRACT_CMD=		${TAR}
18
EXTRACT_BEFORE_ARGS=	-xf
18
EXTRACT_BEFORE_ARGS=	-xf
19
EXTRACT_AFTER_ARGS=	#empty
19
EXTRACT_AFTER_ARGS=	#empty
20
20
NO_WRKSUBDIR=	yes
21
NO_WRKSUBDIR=	yes
22
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
21
MAN1=		detex.1
23
MAN1=		detex.1
22
24
23
do-install:
25
do-install:
24
	${INSTALL_PROGRAM} ${WRKSRC}/detex ${PREFIX}/bin
26
	${INSTALL_PROGRAM} ${WRKSRC}/detex ${PREFIX}/bin
25
	${INSTALL_MAN} ${WRKSRC}/${MAN1}l ${PREFIX}/man/man1/${MAN1}
27
	${INSTALL_MAN} ${WRKSRC}/${MAN1}l ${MANPREFIX}/man/man1/${MAN1}
26
28
27
29
28
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)print/detex/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (detex-2.6.tar) = 410ce52761054c6af7059cb3d9f98e5b
1
MD5 (detex-2.7.tar) = df837b1adb40503f40b94b8169f0e154
(-)print/detex/files/patch-01 (-122 lines)
Lines 1-122 Link Here
1
--- detex.l.orig	Thu Aug 12 08:54:46 1993
2
+++ detex.l	Mon Feb 17 23:01:15 1997
3
@@ -76,7 +76,7 @@
4
 
5
 <Normal>"\\begin"{S}"{"{S}"document"{S}"}"	{fLatex = !fForcetex; IGNORE;}
6
 
7
-<Normal>"\\begin"     /* environment start */	{LaBEGIN LaBegin; IGNORE;}
8
+<Normal>"\\begin"     {/* environment start */	 LaBEGIN LaBegin; IGNORE;}
9
 
10
 <LaBegin>{S}"{"{S}"verbatim"{S}"}"		{   if (BeginEnv("verbatim"))
11
 							BEGIN LaEnv;
12
@@ -85,8 +85,8 @@
13
 						    IGNORE;
14
 						}
15
 
16
-<LaVerbatim>"\\end"{S}"{"{S}"verbatim"{S}"}" /* verbatim mode */
17
-						{BEGIN Normal; IGNORE;}
18
+<LaVerbatim>"\\end"{S}"{"{S}"verbatim"{S}"}" {/* verbatim mode */
19
+						BEGIN Normal; IGNORE;}
20
 <LaVerbatim>.					ECHO;
21
 
22
 <LaBegin>{W}					{   if (BeginEnv(yytext))
23
@@ -98,11 +98,11 @@
24
 <LaBegin>"\n"					NEWLINE;
25
 <LaBegin>.					;
26
 
27
-<LaEnv>"\\end"  /* absorb some environments */	{LaBEGIN LaEnd; IGNORE;}
28
+<LaEnv>"\\end"  {/* absorb some environments */	LaBEGIN LaEnd; IGNORE;}
29
 <LaEnv>"\n"					NEWLINE;
30
 <LaEnv>.					;
31
 
32
-<LaEnd>{W}		 /* end environment */	{   if (EndEnv(yytext))
33
+<LaEnd>{W}		 {/* end environment */	   if (EndEnv(yytext))
34
 							BEGIN Normal;
35
 						    IGNORE;
36
 						}
37
@@ -110,8 +110,8 @@
38
 <LaEnd>"\n"					NEWLINE;
39
 <LaEnd>.					;
40
 
41
-<Normal>"\\bibitem"	    /* ignore args  */	{LaBEGIN LaMacro2; IGNORE;}
42
-<Normal>"\\bibliography"    /* of these \cs */	{LaBEGIN LaMacro; IGNORE;}
43
+<Normal>"\\bibitem"	    {/* ignore args  */	 LaBEGIN LaMacro2; IGNORE;}
44
+<Normal>"\\bibliography"    {/* of these \cs */	LaBEGIN LaMacro; IGNORE;}
45
 <Normal>"\\bibstyle"				{LaBEGIN LaMacro; IGNORE;}
46
 <Normal>"\\cite"				{CITEBEGIN LaMacro2; IGNORE;}
47
 <Normal>"\\documentstyle"			{LaBEGIN LaMacro; IGNORE;}
48
@@ -122,8 +122,8 @@
49
 <Normal>"\\pagestyle"				{LaBEGIN LaMacro; IGNORE;}
50
 <Normal>"\\ref"					{CITEBEGIN LaMacro; IGNORE;}
51
 <Normal>"\\setcounter"				{LaBEGIN LaMacro; IGNORE;}
52
-<Normal>"\\verb" /* ignore \verb<char>...<char> */
53
-						{   if (fLatex) {
54
+<Normal>"\\verb" {/* ignore \verb<char>...<char> */
55
+						   if (fLatex) {
56
 						 	char verbchar, c;
57
 						 	verbchar = input();
58
 						 	while ((c = input()) != verbchar)
59
@@ -143,33 +143,33 @@
60
 <LaMacro2>"\n"					NEWLINE;
61
 <LaMacro2>.					;
62
 
63
-<Normal>"\\def"		/* ignore def begin */	{BEGIN Define; IGNORE;}
64
+<Normal>"\\def"		{/* ignore def begin */	BEGIN Define; IGNORE;}
65
 <Define>"{"					BEGIN Normal;
66
 <Define>"\n"					NEWLINE;
67
 <Define>.					;
68
 
69
-<Normal>"\\("		/* formula mode */	{LaBEGIN LaFormula; IGNORE;}
70
+<Normal>"\\("		{/* formula mode */	LaBEGIN LaFormula; IGNORE;}
71
 <LaFormula>"\\)"				BEGIN Normal;
72
 <LaFormula>"\n"					NEWLINE;
73
 <LaFormula>.					;
74
 
75
-<Normal>"\\["		/* display mode */	{LaBEGIN LaDisplay; IGNORE;}
76
+<Normal>"\\["		{/* display mode */	LaBEGIN LaDisplay; IGNORE;}
77
 <LaDisplay>"\\]"				BEGIN Normal;
78
 <LaDisplay>"\n"					NEWLINE;
79
 <LaDisplay>.					;
80
 
81
-<Normal>"$$"		/* display mode */	{BEGIN Display; IGNORE;}
82
+<Normal>"$$"		{/* display mode */	BEGIN Display; IGNORE;}
83
 <Display>"$$"					BEGIN Normal;
84
 <Display>"\n"					NEWLINE;
85
 <Display>.					;
86
 
87
-<Normal>"$"		/* math mode */		{BEGIN Math; IGNORE;}
88
+<Normal>"$"		{/* math mode */		BEGIN Math; IGNORE;}
89
 <Math>"$"					BEGIN Normal;
90
 <Math>"\n"					NEWLINE;
91
 <Math>"\\$"					;
92
 <Math>.						;
93
 
94
-<Normal>"\\include"	/* process files */	{LaBEGIN LaInclude; IGNORE;}
95
+<Normal>"\\include"	{/* process files */	LaBEGIN LaInclude; IGNORE;}
96
 <LaInclude>[^{ \t\n}]+				{   IncludeFile(yytext);
97
 						    BEGIN Normal;
98
 						}
99
@@ -192,11 +192,11 @@
100
 <Input>"\n"					NEWLINE;
101
 <Input>.					;
102
 
103
-<Normal>\\(aa|AA|ae|AE|oe|OE|ss)[ \t]*[ \t\n}] /* handle ligatures */
104
-						{(void)printf("%.2s", yytext+1);}
105
+<Normal>\\(aa|AA|ae|AE|oe|OE|ss)[ \t]*[ \t\n}] {/* handle ligatures */
106
+						(void)printf("%.2s", yytext+1);}
107
 <Normal>\\[OoijLl][ \t]*[ \t\n}]		{(void)printf("%.1s", yytext+1);}
108
 
109
-<Normal>\\[a-zA-Z@]+	/* ignore other \cs */	{BEGIN Control; IGNORE;}
110
+<Normal>\\[a-zA-Z@]+	{/* ignore other \cs */	BEGIN Control; IGNORE;}
111
 <Normal>"\\ "					SPACE;
112
 <Normal>\\.					IGNORE;
113
 <Control>\\[a-zA-Z@]+				IGNORE;
114
@@ -205,7 +205,7 @@
115
 <Control>[ \t]*[{]*				{BEGIN Normal; IGNORE;}
116
 <Control>.					{yyless(0);BEGIN Normal;}
117
 
118
-<Normal>[{}\\|]	/* special characters */	IGNORE;
119
+<Normal>[{}\\|]	{/* special characters */	IGNORE;}
120
 <Normal>[!?]"`"					IGNORE;
121
 <Normal>~					SPACE;
122
 
(-)print/detex/pkg-descr (+2 lines)
Lines 1-3 Link Here
1
detex takes as input a TeX source file and strips the TeX commands.
1
detex takes as input a TeX source file and strips the TeX commands.
2
The result is output to stdout.  This is useful if you need a pure ASCII
2
The result is output to stdout.  This is useful if you need a pure ASCII
3
version of a TeX/LaTeX file.
3
version of a TeX/LaTeX file.
4
5
WWW: http://www.cs.purdue.edu/homes/trinkle/detex/

Return to bug 41360