From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 20 02:00:25 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC2701065674 for ; Fri, 20 May 2011 02:00:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A2DF18FC26 for ; Fri, 20 May 2011 02:00:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4K20PoX040092 for ; Fri, 20 May 2011 02:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4K20Pg7040091; Fri, 20 May 2011 02:00:25 GMT (envelope-from gnats) Resent-Date: Fri, 20 May 2011 02:00:25 GMT Resent-Message-Id: <201105200200.p4K20Pg7040091@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Steve Wills Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11076106566B for ; Fri, 20 May 2011 01:56:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D9FBA8FC0C for ; Fri, 20 May 2011 01:56:16 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4K1uGZu074363 for ; Fri, 20 May 2011 01:56:16 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p4K1uGlA074362; Fri, 20 May 2011 01:56:16 GMT (envelope-from nobody) Message-Id: <201105200156.p4K1uGlA074362@red.freebsd.org> Date: Fri, 20 May 2011 01:56:16 GMT From: Steve Wills To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/157198: [PATCH] add option to disable GD/Graph/Graphviz (diagram) supportr to databases/p5-SQL-Translator X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 02:00:26 -0000 >Number: 157198 >Category: ports >Synopsis: [PATCH] add option to disable GD/Graph/Graphviz (diagram) supportr to databases/p5-SQL-Translator >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 20 02:00:24 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Steve Wills >Release: >Organization: >Environment: >Description: The databases/p5-SQL-Translator port pulls in GD and Graphviz, and thus pulls in X11 related ports, which is not always desired on servers. The attached patch makes these dependencies optional. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/databases/p5-SQL-Translator/Makefile,v retrieving revision 1.26 diff -u -r1.26 Makefile --- Makefile 13 Dec 2010 08:34:30 -0000 1.26 +++ Makefile 20 May 2011 01:40:28 -0000 @@ -7,6 +7,7 @@ PORTNAME= SQL-Translator PORTVERSION= 0.11007 +PORTREVISION= 1 CATEGORIES= databases perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -24,15 +25,16 @@ p5-Class-Accessor>=0:${PORTSDIR}/devel/p5-Class-Accessor \ p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \ p5-Template-Toolkit>=2.20:${PORTSDIR}/www/p5-Template-Toolkit \ - p5-GD>=0:${PORTSDIR}/graphics/p5-GD \ - p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz \ - p5-Graph>=0:${PORTSDIR}/math/p5-Graph \ p5-IO-stringy>=0:${PORTSDIR}/devel/p5-IO-stringy \ p5-Spreadsheet-ParseExcel>=0.41:${PORTSDIR}/textproc/p5-Spreadsheet-ParseExcel \ + p5-Text-ParseWords>0:${PORTSDIR}/textproc/p5-Text-ParseWords \ p5-Text-RecordParser>=0.02:${PORTSDIR}/textproc/p5-Text-RecordParser \ - p5-XML-Writer>=0.500:${PORTSDIR}/textproc/p5-XML-Writer + p5-XML-Writer>=0.500:${PORTSDIR}/textproc/p5-XML-Writer \ + p5-XML-LibXML>=1.69:${PORTSDIR}/textproc/p5-XML-LibXML RUN_DEPENDS= ${BUILD_DEPENDS} +OPTIONS= DIAGRAM "Diagram generation support" Off + PERL_CONFIGURE= yes MAN1= sqlt-diagram.1 \ @@ -114,4 +116,10 @@ BUILD_DEPENDS+= p5-Scalar-List-Utils>=0:${PORTSDIR}/lang/p5-Scalar-List-Utils .endif +.if defined(WITH_DIAGRAM) +BUILD_DEPENDS+= p5-GD>=0:${PORTSDIR}/graphics/p5-GD \ + p5-Graph>=0:${PORTSDIR}/math/p5-Graph \ + p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz +.endif + .include >Release-Note: >Audit-Trail: >Unformatted: