ports/157198: [PATCH] add option to disable GD/Graph/Graphviz (diagram) supportr to databases/p5-SQL-Translator
Steve Wills
swills at FreeBSD.org
Fri May 20 02:00:26 UTC 2011
>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 <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list