From dada@balu.kfunigraz.ac.at Tue Mar 30 16:30:03 1999
Return-Path: <dada@balu.kfunigraz.ac.at>
Received: from kaa.kfunigraz.ac.at (KAA-ATM.kfunigraz.ac.at [143.50.202.22])
	by hub.freebsd.org (Postfix) with ESMTP id 2DFCD14D6B
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Mar 1999 16:29:23 -0800 (PST)
	(envelope-from dada@balu.kfunigraz.ac.at)
Received: from balu.kfunigraz.ac.at (balu [143.50.16.16])
	by kaa.kfunigraz.ac.at (8.9.2/8.9.2) with ESMTP id CAA15553
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 31 Mar 1999 02:28:30 +0100 (MET)
Received: from localhost.kfunigraz.ac.at (IDENT:lMoikhx4fIBHmOkY5cBanwKDQkp/Bsir@BONLINEA56.kfunigraz.ac.at [143.50.36.56])
	by balu.kfunigraz.ac.at (8.9.2/8.9.2) with ESMTP id CAA22506
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 31 Mar 1999 02:20:40 +0100 (MET)
Received: (from dada@localhost)
	by localhost.kfunigraz.ac.at (8.8.8/8.8.8) id CAA07849;
	Wed, 31 Mar 1999 02:08:24 +0200 (CEST)
	(envelope-from dada)
Message-Id: <199903310008.CAA07849@localhost.kfunigraz.ac.at>
Date: Wed, 31 Mar 1999 02:08:24 +0200 (CEST)
From: dada@sbox.tu-graz.ac.at
Sender: dada@balu.kfunigraz.ac.at
Reply-To: dada@sbox.tu-graz.ac.at
To: FreeBSD-gnats-submit@freebsd.org
Subject: [new port] java2html-0.4
X-Send-Pr-Version: 3.2

>Number:         10885
>Category:       ports
>Synopsis:       [new port] java2html-0.4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    steve
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 30 16:30:01 PST 1999
>Closed-Date:    Tue May 4 15:40:53 PDT 1999
>Last-Modified:  Tue May  4 15:41:19 PDT 1999
>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:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 2 19:56:07 PDT 1999 
State-Changed-Why:  
New port committed, thanks! 

From: Martin Kammerhofer <dada@balu.kfunigraz.ac.at>
To: FreeBSD problems <freebsd-gnats-submit@freebsd.org>
Cc:  
Subject: Re: ports/10885
Date: Mon, 3 May 1999 01:53:30 +0200 (CEST)

 The package has been updated on Sunsite to version 0.5 now.
 
 Since no initial version has been commited I submit another
 shar rather than a diff.
 Please consider the originally submitted sharfile as throwaway.
 
 <======= cut here ===================================================
 # 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
 #
 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 sources 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.5
 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.for file in AUTHORS NEWS README
 X	${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/share/doc/java2html
 X.endfor
 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.5.tar.gz) = 044f8ea3aee287f7b66ce14a5a93bb31
 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.orig	Wed Apr 14 18:28:16 1999
 X+++ Makefile.in	Thu Apr 15 22:55:00 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          = java2html
 X@@ -43,7 +43,7 @@
 X srcdir          = @srcdir@
 X CPPFLAGS        = @CPPFLAGS@
 X 
 X-CFLAGS += -O2 -Wall -pedantic
 X+CFLAGS ?= -O2 -Wall -pedantic
 X ALL_CFLAGS = $(CFLAGS) -I$(srcdir) $(COMPRESSION) 
 X 
 X all: $(TARGET)
 END-of-java2html/patches/patch-aa
 exit
 
 
State-Changed-From-To: closed->open 
State-Changed-By: steve 
State-Changed-When: Mon May 3 21:21:20 PDT 1999 
State-Changed-Why:  
New version available. 


Responsible-Changed-From-To: freebsd-ports->steve 
Responsible-Changed-By: steve 
Responsible-Changed-When: Mon May 3 21:21:20 PDT 1999 
Responsible-Changed-Why:  
I'll take care of this soon. 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Tue May 4 15:40:53 PDT 1999 
State-Changed-Why:  
Update to 0.5 now committed too.  Thanks! 
>Unformatted:
