From end@endif.cjb.net  Thu Feb  3 22:23:21 2005
Return-Path: <end@endif.cjb.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 45A0616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  3 Feb 2005 22:23:21 +0000 (GMT)
Received: from mail.halls.colostate.edu (mail.halls.colostate.edu [129.82.88.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B74C843D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  3 Feb 2005 22:23:18 +0000 (GMT)
	(envelope-from end@endif.cjb.net)
Received: from zork (inge069054.halls.colostate.edu [129.82.69.54])
	by mail.halls.colostate.edu (8.12.11/8.12.11) with ESMTP id j13MNHX7000505
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 3 Feb 2005 15:23:17 -0700
Message-Id: <1107469397.0@zork>
Date: Thu, 3 Feb 2005 15:23:17 -0700
From: "Robin Schoonover" <end@endif.cjb.net>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: Update Port: www/winhelpcgi
X-Send-Pr-Version: gtk-send-pr 0.4.3 
X-GNATS-Notify:

>Number:         77081
>Category:       ports
>Synopsis:       Update Port: www/winhelpcgi
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 03 22:30:22 GMT 2005
>Closed-Date:    Tue Feb 08 18:56:53 GMT 2005
>Last-Modified:  Tue Feb 08 18:56:53 GMT 2005
>Originator:     Robin Schoonover
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
>Environment:


System: FreeBSD 5.3-RELEASE-p5 #39: Tue Feb  1 14:10:21 MST 2005
    end@zork:/usr/obj/usr/src/sys/ZORK



>Description:


Update winhelpcgi to the latest version.

Also attempt to unbreak ia64 by getting the endianness from the system headers.


>How-To-Repeat:





>Fix:


Apply the follow patch from ${PORTSDIR}/www/

--- winhelpcgi.rc3.patch3 begins here ---
diff -ruN winhelpcgi.old/Makefile winhelpcgi/Makefile
--- winhelpcgi.old/Makefile	Thu Feb  3 14:52:56 2005
+++ winhelpcgi/Makefile	Thu Feb  3 14:58:42 2005
@@ -6,24 +6,21 @@
 #
 
 PORTNAME=	winhelpcgi
-PORTVERSION=	0.99
+PORTVERSION=	1.0r3
 CATEGORIES=	www textproc
 MASTER_SITES=	http://www.herdsoft.com/ftp/
-DISTNAME=	${PORTNAME}_0.99-3
+DISTNAME=	${PORTNAME}_1.0rc3-1
 
 MAINTAINER=	endx7@users.sf.net
 COMMENT=	A winhelp converter cgi program
 
 LIB_DEPENDS=	wmf.2:${PORTSDIR}/graphics/libwmf
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+WRKSRC=		${WRKDIR}/${PORTNAME}-1.0rc3
 GNU_CONFIGURE=	yes
 USE_AUTOMAKE_VER=	14
 USE_GETTEXT=		yes
 PKGMESSAGE=	${WRKDIR}/pkg-message
-
-pre-patch:
-	(cd ${WRKSRC}; ${TOUCH} config.h)
 
 post-build:
 	@${CAT} ${PKGDIR}/pkg-message | ${SED} -e 's:%%PREFIX%%:${PREFIX}:' > ${PKGMESSAGE}
diff -ruN winhelpcgi.old/distinfo winhelpcgi/distinfo
--- winhelpcgi.old/distinfo	Thu Feb  3 14:52:56 2005
+++ winhelpcgi/distinfo	Thu Feb  3 14:53:28 2005
@@ -1,2 +1,2 @@
-MD5 (winhelpcgi_0.99-3.tar.gz) = 94cdc550d320a78a71293e4d71b8006f
-SIZE (winhelpcgi_0.99-3.tar.gz) = 305524
+MD5 (winhelpcgi_1.0rc3-1.tar.gz) = ffea4a34898b3746184d50f5d2ea38c7
+SIZE (winhelpcgi_1.0rc3-1.tar.gz) = 338589
diff -ruN winhelpcgi.old/files/patch-bigend.h winhelpcgi/files/patch-bigend.h
--- winhelpcgi.old/files/patch-bigend.h	Wed Dec 31 17:00:00 1969
+++ winhelpcgi/files/patch-bigend.h	Thu Feb  3 14:55:24 2005
@@ -0,0 +1,17 @@
+--- libhlpaccess/bigend.h.orig	Sun May 16 13:35:18 2004
++++ libhlpaccess/bigend.h	Wed Jan  5 17:00:48 2005
+@@ -4,9 +4,11 @@
+  *
+  */
+ 
+-#if   defined(__powerpc__) || defined(__ppc__) || defined(__sparc__) || defined(_AIX)
++#include <sys/endian.h>
++
++#if BYTE_ORDER == BIG_ENDIAN
+ # define BIGENDIAN       /* This is a big-endian machine MSB is the first Byte */
+-#elif defined(__i386__) || defined(__alpha__) || defined(__amd64__)
++#elif BYTE_ORDER == LITTLE_ENDIAN
+ # define LITTLEENDIAN    /* This is a little-endian machine MSB is the last Byte */
+ #else
+ # error Endianness undefined
+
--- winhelpcgi.rc3.patch3 ends here ---



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Tue Feb 8 18:54:33 GMT 2005 
State-Changed-Why:  
Committed, thanks! 
Use the email address that set in MAINTAINER field please. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77081 
>Unformatted:
