Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 1999 02:08:24 +0200 (CEST)
From:      dada@sbox.tu-graz.ac.at
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/10885: [new port] java2html-0.4
Message-ID:  <199903310008.CAA07849@localhost.kfunigraz.ac.at>

next in thread | raw e-mail | index | archive | help

>Number:         10885
>Category:       ports
>Synopsis:       [new port] java2html-0.4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 30 16:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 2.2.8-STABLE i386
>Organization:
Graz University of Technology
>Environment:
>Description:

Java, C and C++ to HTML converter

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	java2html
#	java2html/pkg
#	java2html/pkg/COMMENT
#	java2html/pkg/DESCR
#	java2html/pkg/PLIST
#	java2html/Makefile
#	java2html/files
#	java2html/files/md5
#	java2html/patches
#	java2html/patches/patch-aa
#	java2html/patches/patch-ab
#
echo c - java2html
mkdir -p java2html > /dev/null 2>&1
echo c - java2html/pkg
mkdir -p java2html/pkg > /dev/null 2>&1
echo x - java2html/pkg/COMMENT
sed 's/^X//' >java2html/pkg/COMMENT << 'END-of-java2html/pkg/COMMENT'
XJava, C and C++ to HTML converter
END-of-java2html/pkg/COMMENT
echo x - java2html/pkg/DESCR
sed 's/^X//' >java2html/pkg/DESCR << 'END-of-java2html/pkg/DESCR'
XJava2html is  a syntax highlighter for  Java and C++  source code that
Xproduces a highlighted html file as output.
X
XJava2html offers the following features:
X   
X    - support for Java and C++
X    - fast (single pass conversion using flex)
X    - doesn't change formatting - only adds <FONT COLOR=#XXXX> tags
X        and properly escapes non-ascii characters
X    - easy integration with webservers - browse your sources colourized
X    - gzips http output for browsers to save bandwidth (only in CGI mode)
X    - documentation and manpage included
END-of-java2html/pkg/DESCR
echo x - java2html/pkg/PLIST
sed 's/^X//' >java2html/pkg/PLIST << 'END-of-java2html/pkg/PLIST'
Xbin/java2html
Xshare/doc/java2html/AUTHORS
Xshare/doc/java2html/NEWS
Xshare/doc/java2html/README
X@dirrm share/doc/java2html
END-of-java2html/pkg/PLIST
echo x - java2html/Makefile
sed 's/^X//' >java2html/Makefile << 'END-of-java2html/Makefile'
X# New ports collection makefile for:	java2html
X# Version required:			0.4
X# Date created:				21 March 1999
X# Whom:					Martin Kammerhofer
X#
X# $Id$
X#
X
XDISTNAME=		java2html-0.4
XCATEGORIES=		textproc www
XMASTER_SITES=		${MASTER_SITE_SUNSITE}
XMASTER_SITE_SUBDIR=	apps/www/converters
X
XMAINTAINER=		mkamm@gmx.net
X
XUSE_AUTOCONF=		yes
X
XMAN1=			java2html.1
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X	${MKDIR} ${PREFIX}/share/doc/java2html
X	${INSTALL_MAN} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/java2html
X	${INSTALL_MAN} ${WRKSRC}/NEWS    ${PREFIX}/share/doc/java2html
X	${INSTALL_MAN} ${WRKSRC}/README  ${PREFIX}/share/doc/java2html
X.endif
X
X.include <bsd.port.mk>
END-of-java2html/Makefile
echo c - java2html/files
mkdir -p java2html/files > /dev/null 2>&1
echo x - java2html/files/md5
sed 's/^X//' >java2html/files/md5 << 'END-of-java2html/files/md5'
XMD5 (java2html-0.4.tar.gz) = c13dd7e6a90cbc38a7db7472bc3b35bd
END-of-java2html/files/md5
echo c - java2html/patches
mkdir -p java2html/patches > /dev/null 2>&1
echo x - java2html/patches/patch-aa
sed 's/^X//' >java2html/patches/patch-aa << 'END-of-java2html/patches/patch-aa'
X--- Makefile.in~	Wed Mar 10 22:14:48 1999
X+++ Makefile.in	Sun Mar 21 18:19:16 1999
X@@ -12,7 +12,7 @@
X # for gzip because otherwise the load on the web server
X # grows without having big benefits.
X # COMPRESSION = -DCOMPRESSION=4
X-COMPRESSION = -DCOMPRESSION=1
X+COMPRESSION ?= -DCOMPRESSION=1
X 
X # Dont change things beyond this line.
X TARGET          = c2html
X@@ -40,7 +40,7 @@
X srcdir          = @srcdir@
X CPPFLAGS        = @CPPFLAGS@
X 
X-CFLAGS  = -O2 -Wall -pedantic $(COMPRESSION) 
X+CFLAGS  ?= -O2 -Wall -pedantic
X-ALL_CFLAGS = $(CFLAGS) -I$(srcdir)
X+ALL_CFLAGS = $(CFLAGS) -I$(srcdir) $(COMPRESSION) 
X 
X all: $(TARGET)
END-of-java2html/patches/patch-aa
echo x - java2html/patches/patch-ab
sed 's/^X//' >java2html/patches/patch-ab << 'END-of-java2html/patches/patch-ab'
X--- java2html.l.orig	Fri Mar 26 15:09:48 1999
X+++ java2html.l	Wed Mar 31 01:30:38 1999
X@@ -1,4 +1,4 @@
X-%{ /* -*- makefile -*- */
X+%{ /* make it look better in emacs: -*- mode: c; -*- */
X /* 
X  * We build a lexical analyzer that converts a Java source file to 
X  * a beautifully highlighted HTML file now.
X@@ -9,6 +9,9 @@
X #include <stdio.h>
X #include <stdlib.h>
X #include <string.h>
X+#include <time.h>
X+#include <sys/stat.h>
X+#include <locale.h>
X 
X #ifdef HAVE_UNISTD_H
X #include <unistd.h>
X@@ -412,12 +415,14 @@
X   int  rc           = 0;
X   char *title       = (char *) NULL;
X   char *pt          = (char *) NULL;
X+  int  nocgi        = 0; /* don't generate HTTP headers */
X+  struct stat sb;
X 
X   char gzipcmd[10];
X 
X   pt = strrchr(argv[0], '/');
X   prog = (pt)? ++pt : argv[0]; /* basename */
X-  while (-1 != (ch = getopt(argc, argv, "h?t:w:V")))
X+  while (-1 != (ch = getopt(argc, argv, "h?t:w:nV")))
X     {
X       switch(ch) 
X 	{
X@@ -428,6 +433,9 @@
X 	  if (1 != sscanf(optarg, "%d", &width))
X 	    { usage(); }
X 	  break;
X+        case 'n':
X+          nocgi = 1 - nocgi; /* toggle noCGI flag */
X+          break;
X 	case 'V':
X 	  fprintf(stderr, "java2html version %s%s\n",
X 		  VERSION, 
X@@ -446,7 +454,7 @@
X       actout = stdout;
X       
X       if ((pt = getenv("PATH_TRANSLATED")) 
X-	  && getenv("GATEWAY_INTERFACE")) 
X+	  && getenv("GATEWAY_INTERFACE") && nocgi == 0) 
X 	{
X 	  /* CGI */
X 	  if (!title)
X@@ -463,6 +471,16 @@
X 	      exit(1);
X 	    }
X 	  fprintf (actout, "Content-Type: text/html\n");
X+          if (fstat(fileno(actin), &sb) == 0) {
X+              /* report last modification date */
X+              char rfc1123date[32];
X+
X+              (void) setlocale(LC_TIME, "C");
X+              if (strftime(rfc1123date, sizeof(rfc1123date),
X+                           "%a, %e %b %Y %T %Z", gmtime(&sb.st_mtime)))
X+                  fprintf(actout, "Last-Modified: %.*s\n",
X+                          (int)sizeof(rfc1123date), rfc1123date);
X+          }
X           if (COMPRESSION)
X 	    {
X 	      /* should we compress output with gzip? */
END-of-java2html/patches/patch-ab
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903310008.CAA07849>