svn commit: r529901 - head/editors/jove

Olivier Cochard olivier at FreeBSD.org
Mon Mar 30 17:02:45 UTC 2020


Author: olivier
Date: Mon Mar 30 17:01:46 2020
New Revision: 529901
URL: https://svnweb.freebsd.org/changeset/ports/529901

Log:
  Move groff dependency to an option.
  
  Submitted by:	glebius
  Sponsored by:	Netflix

Modified:
  head/editors/jove/Makefile
  head/editors/jove/pkg-plist

Modified: head/editors/jove/Makefile
==============================================================================
--- head/editors/jove/Makefile	Mon Mar 30 16:04:22 2020	(r529900)
+++ head/editors/jove/Makefile	Mon Mar 30 17:01:46 2020	(r529901)
@@ -16,12 +16,22 @@ LICENSE_NAME=	JOVE License
 LICENSE_FILE=	${WRKSRC}/README
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-USES=		groff ncurses
+USES=		ncurses
 MAKE_ARGS=	LIBS="${LDFLAGS} -lncurses"
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
+OPTIONS_DEFINE=	EXTRADOCS
+EXTRADOCS_DESC=	Build and install cmds.doc
+EXTRADOCS_USES=	groff
+OPTIONS_DEFAULT=
+OPTIONS_SUB=	yes
+
 post-patch:
 # Fix collisions with getline(3)
 	@${REINPLACE_CMD} 's|[[:<:]]getline[[:>:]]|get_line|g' ${WRKSRC}/*.c ${WRKSRC}/*.h
+
+post-patch-EXTRADOCS-off:
+	@${REINPLACE_CMD} -E 's|^(all:.*) doc/cmds\.doc$$|\1|' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} 's|^CMDS.DOC = .*|CMDS.DOC=|' ${WRKSRC}/Makefile
 
 .include <bsd.port.mk>

Modified: head/editors/jove/pkg-plist
==============================================================================
--- head/editors/jove/pkg-plist	Mon Mar 30 16:04:22 2020	(r529900)
+++ head/editors/jove/pkg-plist	Mon Mar 30 17:01:46 2020	(r529901)
@@ -5,7 +5,7 @@ libexec/jove/recover
 man/man1/jove.1.gz
 man/man1/teachjove.1.gz
 %%DATADIR%%/XTermresource
-%%DATADIR%%/cmds.doc
+%%EXTRADOCS%%%%DATADIR%%/cmds.doc
 %%DATADIR%%/jove.rc
 %%DATADIR%%/jove.rc.3022
 %%DATADIR%%/jove.rc.sun


More information about the svn-ports-head mailing list