From nobody@FreeBSD.org  Thu May  5 09:36:14 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D00DC16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 May 2005 09:36:14 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BADD343D7E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 May 2005 09:36:14 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j459aDnr097813
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 5 May 2005 09:36:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j459aDql097793;
	Thu, 5 May 2005 09:36:13 GMT
	(envelope-from nobody)
Message-Id: <200505050936.j459aDql097793@www.freebsd.org>
Date: Thu, 5 May 2005 09:36:13 GMT
From: Patrick Dung <patrick_dkt@yahoo.com.hk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update print/pdftk ports (gcc33 to gcc34)
X-Send-Pr-Version: www-2.3

>Number:         80652
>Category:       ports
>Synopsis:       Update print/pdftk ports (gcc33 to gcc34)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 05 09:40:02 GMT 2005
>Closed-Date:    Thu May 05 15:57:53 GMT 2005
>Last-Modified:  Thu May 05 15:57:53 GMT 2005
>Originator:     Patrick Dung
>Release:        FreeBSD 5.4-STABLE
>Organization:
>Environment:
FreeBSD piii.nodomain 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun Apr 24 16:41:50 HKT 2005
>Description:
      GCC 3.3 no longer has gcj which this port needs. So we suggest updating to 3.4.
>How-To-Repeat:
      N/A
>Fix:
      The attached file is a generic patch (there will be fewer places needed to change for gcc version change)

--- Makefile.orig	Thu May  5 16:50:42 2005
+++ Makefile	Thu May  5 17:02:55 2005
@@ -15,13 +15,18 @@
 MAINTAINER=	patrick_dkt@yahoo.com.hk
 COMMENT=	A simple tool for doing everyday things with PDF documents
 
-# needs gcj
-BUILD_DEPENDS=	gcj33:${PORTSDIR}/lang/gcc33
-
-# gcj don't exist on (and gcc33 is broken on amd64)
+# gcj/libgcj don't exist on these platforms
 NOT_FOR_ARCHS=	amd64 ia64 sparc64
 
-USE_GCC=	3.3
+USE_GCC=	3.4
+
+# Get gcc version suffix without the dot in USE_GCC
+CSUFF=		${USE_GCC:S/.//}
+
+# needs gcj
+BUILD_DEPENDS=	gcj${CSUFF}:${PORTSDIR}/lang/gcc${CSUFF}
+
+USE_GCC=	3.4
 USE_GMAKE=	yes
 USE_ICONV=	yes
 USE_REINPLACE=	yes
@@ -29,14 +34,14 @@
 WRKSRC=		${WRKDIR}/${DISTNAME}/${PORTNAME}
 
 MAKEFILE=	Makefile.Generic
-MAKE_ENV=	CXX=g++33 GCJ=gcj33 GCJH=gcjh33
+MAKE_ENV=	CXX=g++${CSUFF} GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF}
 
 MAN1=		${PORTNAME}.1
 PLIST_FILES=	bin/pdftk
 
 post-extract:
 	@${REINPLACE_CMD} -e "s|TOOLPATH=|TOOLPATH=${LOCALBASE}/bin/|g" ${WRKSRC}/Makefile.Generic
-	@${REINPLACE_CMD} -e "s|VERSUFF=|VERSUFF=33|g" ${WRKSRC}/Makefile.Generic
+	@${REINPLACE_CMD} -e "s|VERSUFF=|VERSUFF=${CSUFF}|g" ${WRKSRC}/Makefile.Generic
 	@${REINPLACE_CMD} -e "s|CXXFLAGS= -lgcj|CXXFLAGS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz|g" ${WRKSRC}/Makefile.Generic
 
 do-install:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Thu May 5 15:57:47 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

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