Index: head/print/html2latex/Makefile
===================================================================
--- head/print/html2latex/Makefile (revision 361081)
+++ head/print/html2latex/Makefile (revision 361082)
@@ -1,19 +1,16 @@
# Created by: joerg
# $FreeBSD$
PORTNAME= html2latex
PORTVERSION= 0.9c
CATEGORIES= print
# I can't seem to find the original dist site
MASTER_SITES= ftp://ftp.interface-business.de/pub/outgoing/
EXTRACT_SUFX= .tar.Z
MAINTAINER= joerg@FreeBSD.org
COMMENT= Convert HTML document into LaTeX
-MAN1= html2latex.1
-MANCOMPRESSED= yes
-PLIST_FILES= bin/html2latex
+PLIST_FILES= bin/html2latex man/man1/html2latex.1.gz
-NO_STAGE= yes
.include
Index: head/print/html2latex/files/patch-ab
===================================================================
--- head/print/html2latex/files/patch-ab (revision 361081)
+++ head/print/html2latex/files/patch-ab (nonexistent)
@@ -1,47 +0,0 @@
---- Makefile.orig Fri Mar 29 17:18:06 1996
-+++ Makefile Fri Mar 29 17:22:06 1996
-@@ -3,7 +3,7 @@
-
- # ----------------------------------------------------------------------------
- # For normal machines with normal compilers:
--CC = cc
-+# CC = cc
- # For testing:
- # CC = gcc
- # For Sun's and other non-at-least-pseudo-ANSI-C platforms:
-@@ -12,7 +12,7 @@
-
- # ----------------------------------------------------------------------------
- # For SGI's:
--CFLAGS = -g -cckr -DXMOSAIC -DNEED_GETOPT_H
-+# CFLAGS = -g -cckr -DXMOSAIC -DNEED_GETOPT_H
- # For testing:
- # CFLAGS = -g -Wall -DXMOSAIC -DNEED_GETOPT_H
- # For HP's:
-@@ -20,12 +20,13 @@
- # For everyone else:
- # CFLAGS = -g -DXMOSAIC
- # ----------------------------------------------------------------------------
-+CFLAGS+= -DXMOSAIC
-
- # ----------------------------------------------------------------------------
- # For SGI's:
--RANLIB = /bin/true
-+# RANLIB = /bin/true
- # For everyone else:
--# RANLIB = ranlib
-+RANLIB = ranlib
- # ----------------------------------------------------------------------------
-
- # You shouldn't need to edit below here.
-@@ -55,3 +56,10 @@
-
- clean:
- -rm $(EXETARGET) $(OBJS) $(LIBTARGET) $(DOCTARGET)
-+
-+PREFIX?= /usr/local
-+
-+install: all
-+ install -c -s $(EXETARGET) $(PREFIX)/bin
-+ gzip -c < html2latex.1 > html2latex.1.gz
-+ install -c html2latex.1.gz $(PREFIX)/man/man1
Property changes on: head/print/html2latex/files/patch-ab
___________________________________________________________________
Deleted: fbsd:nokeywords
## -1 +0,0 ##
-yes
\ No newline at end of property
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: head/print/html2latex/files/patch-Makefile
===================================================================
--- head/print/html2latex/files/patch-Makefile (nonexistent)
+++ head/print/html2latex/files/patch-Makefile (revision 361082)
@@ -0,0 +1,48 @@
+--- Makefile.orig 2014-07-07 21:24:49.187066431 +0800
++++ Makefile 2014-07-07 21:24:52.234066984 +0800
+@@ -3,7 +3,7 @@
+
+ # ----------------------------------------------------------------------------
+ # For normal machines with normal compilers:
+-CC = cc
++# CC = cc
+ # For testing:
+ # CC = gcc
+ # For Sun's and other non-at-least-pseudo-ANSI-C platforms:
+@@ -12,20 +12,21 @@ CC = cc
+
+ # ----------------------------------------------------------------------------
+ # For SGI's:
+-CFLAGS = -g -cckr -DXMOSAIC
++# CFLAGS = -g -cckr -DXMOSAIC -DNEED_GETOPT_H
+ # For testing:
+-# CFLAGS = -g -Wall -DXMOSAIC
++# CFLAGS = -g -Wall -DXMOSAIC -DNEED_GETOPT_H
+ # For HP's:
+ # CFLAGS = -g -DXMOSAIC -I/usr/include/Motif1.1 -I/usr/include/X11R4
+ # For everyone else:
+ # CFLAGS = -g -DXMOSAIC
+ # ----------------------------------------------------------------------------
++CFLAGS+= -DXMOSAIC
+
+ # ----------------------------------------------------------------------------
+ # For SGI's:
+-RANLIB = /bin/true
++# RANLIB = /bin/true
+ # For everyone else:
+-# RANLIB = ranlib
++RANLIB = ranlib
+ # ----------------------------------------------------------------------------
+
+ # You shouldn't need to edit below here.
+@@ -55,3 +56,10 @@ $(OBJS): HTMLparse.h
+
+ clean:
+ -rm $(EXETARGET) $(OBJS) $(LIBTARGET) $(DOCTARGET)
++
++PREFIX?= /usr/local
++
++install: all
++ install -c -s $(EXETARGET) $(DESTDIR)$(PREFIX)/bin
++ gzip -c < html2latex.1 > html2latex.1.gz
++ install -c html2latex.1.gz $(DESTDIR)$(PREFIX)/man/man1
Property changes on: head/print/html2latex/files/patch-Makefile
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: head/print/html2latex/files/patch-aa
===================================================================
--- head/print/html2latex/files/patch-aa (revision 361081)
+++ head/print/html2latex/files/patch-aa (revision 361082)
@@ -1,76 +1,60 @@
diff -u ../html2latex-0.9c.old/HTMLparse.c ./HTMLparse.c
--- ../html2latex-0.9c.old/HTMLparse.c Fri Mar 19 04:52:24 1993
+++ ./HTMLparse.c Fri Mar 29 16:36:35 1996
@@ -67,7 +67,8 @@
"title", "h1", "h2", "h3", "h4", "h5", "h6", "a", "p", "address",
"xmp", "ul", "li", "dl", "dt", "dd", "pre", "plaintext", "listing",
"isindex", "menu", "dir", "img", "ol", "em", "tt", "b", "i", "u",
- "strong", "code", "samp", "kbd", "var", "dfn", "cite", "gnat"
+ "strong", "code", "samp", "kbd", "var", "dfn", "cite", "gnat",
+ "!"
};
/*
@@ -454,7 +455,8 @@
{
if (*ptr == '<')
{
- if (isalpha((int)(*(ptr + 1))))
+ if (isalpha((int)(*(ptr + 1))) ||
+ *(ptr + 1) == '!')
{
break;
}
diff -u ../html2latex-0.9c.old/HTMLparse.h ./HTMLparse.h
--- ../html2latex-0.9c.old/HTMLparse.h Fri Mar 19 04:43:34 1993
+++ ./HTMLparse.h Fri Mar 29 16:25:48 1996
@@ -52,7 +52,7 @@
M_DESC_TITLE, M_DESC_TEXT, M_PREFORMAT, M_PLAIN_FILE, M_LISTING_TEXT,
M_INDEX, M_MENU, M_DIRECTORY, M_IMAGE, M_NUM_LIST, M_EM,
M_TT, M_B, M_I, M_U, M_STRONG, M_CODE, M_SAMP, M_KBD, M_VAR, M_DFN,
- M_CITE, M_SENTINEL
+ M_CITE, M_SENTINEL, M_COMMENT
} mark_t;
/* amperstand escapes */
-diff -u ../html2latex-0.9c.old/Makefile ./Makefile
---- ../html2latex-0.9c.old/Makefile Fri Mar 19 05:02:36 1993
-+++ ./Makefile Fri Mar 29 16:40:56 1996
-@@ -12,9 +12,9 @@
-
- # ----------------------------------------------------------------------------
- # For SGI's:
--CFLAGS = -g -cckr -DXMOSAIC
-+CFLAGS = -g -cckr -DXMOSAIC -DNEED_GETOPT_H
- # For testing:
--# CFLAGS = -g -Wall -DXMOSAIC
-+# CFLAGS = -g -Wall -DXMOSAIC -DNEED_GETOPT_H
- # For HP's:
- # CFLAGS = -g -DXMOSAIC -I/usr/include/Motif1.1 -I/usr/include/X11R4
- # For everyone else:
-Only in .: diff
diff -u ../html2latex-0.9c.old/html2latex.c ./html2latex.c
--- ../html2latex-0.9c.old/html2latex.c Wed Jun 16 05:55:10 1993
+++ ./html2latex.c Fri Mar 29 16:41:17 1996
@@ -9,7 +9,13 @@
#include "HTMLparse.h"
#include
#include
+#if NEED_GETOPT_H
#include
+#else
+#if defined(__FreeBSD__) && __FreeBSD__ >= 3
+#include
+#endif
+#endif
#include
#include
@@ -339,6 +341,7 @@
if (!mptr)
current = temp_s;
break;
+ case M_COMMENT:
default:
/* ignore things we know not wot of */
break;