From hmo@sep.oldach.net  Wed May 20 07:59:56 2009
Return-Path: <hmo@sep.oldach.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 39C75106564A;
	Wed, 20 May 2009 07:59:56 +0000 (UTC)
	(envelope-from hmo@sep.oldach.net)
Received: from rigel.oldach.net (rigel.oldach.net [194.8.96.250])
	by mx1.freebsd.org (Postfix) with ESMTP id A82918FC24;
	Wed, 20 May 2009 07:59:55 +0000 (UTC)
	(envelope-from hmo@sep.oldach.net)
Received: from sep.oldach.net (hmo.in-dsl.de [217.197.85.210])
	by rigel.oldach.net (8.14.3/8.14.3/hmo30jul04) with ESMTP id n4K7RxIs085257
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 20 May 2009 09:28:00 +0200 (CEST)
	(envelope-from hmo@sep.oldach.net)
Received: from sep.oldach.net (localhost [127.0.0.1])
	by sep.oldach.net (8.14.3/8.14.3/hmo26jun05) with ESMTP id n4K7RxVd097331
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 20 May 2009 09:27:59 +0200 (CEST)
	(envelope-from hmo@sep.oldach.net)
Received: (from hmo@localhost)
	by sep.oldach.net (8.14.3/8.14.3/Submit/hmo26jun05) id n4K7RxWI097329;
	Wed, 20 May 2009 09:27:59 +0200 (CEST)
	(envelope-from hmo)
Message-Id: <200905200727.n4K7RxWI097329@sep.oldach.net>
Date: Wed, 20 May 2009 09:27:59 +0200 (CEST)
From: Helge Oldach <ports-ghostscript8-may09@oldach.net>
Reply-To: Helge Oldach <ports-ghostscript8-may09@oldach.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: doceng@freebsd.org
Subject: [patch] ports/print/ghostscript8: make cups-image optional
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         134742
>Category:       ports
>Synopsis:       [patch] ports/print/ghostscript8: make cups-image optional
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    doceng
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 20 08:00:09 UTC 2009
>Closed-Date:    Tue Jun 02 12:23:27 UTC 2009
>Last-Modified:  Tue Jun 02 12:23:27 UTC 2009
>Originator:     Helge Oldach
>Release:        FreeBSD 6.4-1455 i386
>Organization:
>Environment:

System: FreeBSD localhost 6.4-1455 FreeBSD 6.4-1455 #0: Thu May 7 15:24:21 CEST 2009 toor@localhost:/usr/obj/usr/src/sys/HMO i386

>Description:

cups-image support has been re-established for ghostscript8 recently
with Makefile rev. 1.182.

However, this should be made optional, for those who do not need or use
cups and/or cups-image. This avoids a rather lengthy dependency on CUPS
and re-enables the behaivour that we had until rev. 1.181.

Please see the rather trivial patch below.

>How-To-Repeat:

>Fix:


--- Makefile.ctm	2009-05-18 23:46:34.000000000 +0200
+++ Makefile	2009-05-20 09:05:43.000000000 +0200
@@ -22,8 +22,7 @@
 COMMENT=	Ghostscript 8.x PostScript interpreter
 
 LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
-		png.5:${PORTSDIR}/graphics/png \
-		cupsimage.2:${PORTSDIR}/print/cups-image
+		png.5:${PORTSDIR}/graphics/png
 RUN_DEPENDS=	${LOCALBASE}/share/${PORTNAME:S,8,,}/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
 
 CONFLICTS=	gambc-[0-9]* ghostscript7-[0-9]* ghostscript7-*-[0-9]*
@@ -60,7 +59,8 @@
 OPTIONS=	A4SIZE	"Set A4 (not Letter) as a default paper size"	off \
 		FONTCONFIG	"fontconfig support"	on \
 		FT_BRIDGE	"FreeType bridge"	off \
-		X11	"X11 support"	on
+		X11	"X11 support"	on \
+		CUPS_IMAGE	"enable cups-image" on
 
 MAN1=		dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 \
 		pdf2dsc.1 pdf2ps.1 pdfopt.1 pf2afm.1 pfbtopfa.1 printafm.1 \
@@ -78,6 +78,12 @@
 .include "Makefile.drivers"
 .include <bsd.port.pre.mk>
 
+.if !defined(WITHOUT_CUPS_IMAGE)
+LIB_DEPENDS+=	cupsimage.2:${PORTSDIR}/print/cups-image
+.else
+CONFIGURE_ARGS+=	--disable-cups
+.endif
+
 .for D in ${OPTIONS:MGS_*:S/^GS_//}
 .if !defined(WITHOUT_GS_${D})
 PLIST_SUB+=	GS_${D}=""

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->doceng 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed May 20 08:00:34 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134742 

From: Hiroki Sato <hrs@FreeBSD.org>
To: ports-ghostscript8-may09@oldach.net
Cc: FreeBSD-gnats-submit@FreeBSD.org, doceng@FreeBSD.org
Subject: Re: ports/134742: [patch] ports/print/ghostscript8: make
 cups-image optional
Date: Wed, 20 May 2009 17:08:10 +0900 (JST)

 ----Security_Multipart(Wed_May_20_17_08_10_2009_883)--
 Content-Type: Text/Plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 Helge Oldach <ports-ghostscript8-may09@oldach.net> wrote
   in <200905200727.n4K7RxWI097329@sep.oldach.net>:
 
 po> >Number:         134742
 po> >Category:       ports
 po> >Synopsis:       [patch] ports/print/ghostscript8: make cups-image optional
 
  Thank you for your patch.  We recevied similar requests to yours and
  considering to add a knob now.  Please wait a moment.
 
 -- Hiroki
 
 ----Security_Multipart(Wed_May_20_17_08_10_2009_883)--
 Content-Type: application/pgp-signature
 Content-Transfer-Encoding: 7bit
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (FreeBSD)
 
 iEYEABECAAYFAkoTumoACgkQTyzT2CeTzy2iXgCg3yZwibJWecN0qzgCStFBI1rJ
 ZXcAoIiZ32WvPEPViREadHbCieOL12hK
 =9qpV
 -----END PGP SIGNATURE-----
 
 ----Security_Multipart(Wed_May_20_17_08_10_2009_883)----
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Tue Jun 2 12:23:06 UTC 2009 
State-Changed-Why:  
This has been committed in rev 1.184 

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