Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2018 11:55:13 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r487507 - head/editors/nano
Message-ID:  <201812151155.wBFBtDX3069051@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sat Dec 15 11:55:13 2018
New Revision: 487507
URL: https://svnweb.freebsd.org/changeset/ports/487507

Log:
  - Remove groff dependency. The tarball already has the HTML files
  - Remove unecessary REINPLACE_CMD
  - Use post-install-{EXAMPLES,DOCS}-on to install the extra files
  
  while here:
  - Disable groff execution by the configure script
  
  PR:		234000
  Submitted by:	Daniel Eisele <daniel_eisele AT gmx.de>

Modified:
  head/editors/nano/Makefile

Modified: head/editors/nano/Makefile
==============================================================================
--- head/editors/nano/Makefile	Sat Dec 15 11:50:31 2018	(r487506)
+++ head/editors/nano/Makefile	Sat Dec 15 11:55:13 2018	(r487507)
@@ -25,8 +25,6 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 OPTIONS_DEFINE=	DOCS EXAMPLES NLS
 OPTIONS_SUB=	yes
 
-DOCS_USES=	groff
-
 NLS_USES=		gettext
 NLS_CONFIGURE_ENABLE=	nls
 
@@ -34,17 +32,16 @@ INFO=		nano
 
 PORTSCOUT=	limitw:1,even
 
-post-configure:
-	${REINPLACE_CMD} -e 's/update_revision//g' ${WRKSRC}/src/Makefile
+post-patch:
+	${REINPLACE_CMD} -e 's/^groff.*/false/' ${WRKSRC}/configure
 
-post-build:
-	cd ${WRKSRC}/doc; ${REINPLACE_CMD} \
-		-e 's:SYSCONFDIR:${PREFIX}/etc:g' \
-		-e 's:EXAMPLESDIR:${EXAMPLESDIR}:g' \
-		nano.1 rnano.1 nanorc.5 ${WRKSRC}/doc/${INFO:=.info}
-
-post-install:
+post-install-EXAMPLES-on:
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/sample.nanorc ${STAGEDIR}${EXAMPLESDIR}
+
+post-install-DOCS-on:
+.for doc in nano.1.html rnano.1.html nanorc.5.html
+	${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${STAGEDIR}${DOCSDIR}
+.endfor
 
 .include <bsd.port.mk>



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