Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2018 20:14:38 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r465027 - head/databases/rrdtool
Message-ID:  <201803192014.w2JKEcco003540@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Mon Mar 19 20:14:38 2018
New Revision: 465027
URL: https://svnweb.freebsd.org/changeset/ports/465027

Log:
  databases/rrdtool: Make groff a conditional dependency
  
  groff is required by rrdtool to format documentation, which
  is only required when documentation is being built.
  
  Accordingly, make groff conditional on the existing DOCS option.
  
  This precludes building a litany of dependencies, mostly due
  to groff requiring ghostscript.
  
  While here, remove unneeded post-patch in the case the DOCS option is
  switched off.
  
  Submitted by:	koobs
  Differential Revision:	https://reviews.freebsd.org/D14732

Modified:
  head/databases/rrdtool/Makefile

Modified: head/databases/rrdtool/Makefile
==============================================================================
--- head/databases/rrdtool/Makefile	Mon Mar 19 20:03:48 2018	(r465026)
+++ head/databases/rrdtool/Makefile	Mon Mar 19 20:14:38 2018	(r465027)
@@ -3,7 +3,7 @@
 
 PORTNAME=	rrdtool
 PORTVERSION=	1.7.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases graphics
 MASTER_SITES=	http://oss.oetiker.ch/rrdtool/pub/
 
@@ -20,7 +20,7 @@ CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/inclu
 USE_RC_SUBR=	rrdcached
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
-USES=		gmake groff libtool pathfix pkgconfig shebangfix
+USES=		gmake libtool pathfix pkgconfig shebangfix
 USE_GNOME=	glib20 libxml2
 INSTALL_TARGET=	install-strip
 
@@ -38,6 +38,10 @@ PYTHON_DESC=	Build PYTHON bindings
 RUBY_DESC=	Build RUBY bindings
 
 DEJAVU_RUN_DEPENDS=	dejavu>0:x11-fonts/dejavu
+
+DOCS_CONFIGURE_ENABLE=	docs
+DOCS_USES=		groff
+
 GRAPH_CONFIGURE_OFF=	--disable-rrdcgi --disable-rrd_graph
 GRAPH_LIB_DEPENDS=	libfreetype.so:print/freetype2 \
 			libpng.so:graphics/png
@@ -75,10 +79,6 @@ post-extract:
 
 	@${REINPLACE_CMD} -E 's|(^rrdtool_LDADD = librrd.la)|\1 $$\(ALL_LIBS\)|' \
 		${WRKSRC}/src/Makefile.in
-
-post-extract-DOCS-off:
-	@${REINPLACE_CMD} -e '/^SUBDIRS = /s| doc | |' \
-		${WRKSRC}/Makefile.in
 
 post-extract-EXAMPLES-off:
 	@${REINPLACE_CMD} -e '/^SUBDIRS = /s| examples | |' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803192014.w2JKEcco003540>