svn commit: r487507 - head/editors/nano
Danilo Egea Gondolfo
danilo at FreeBSD.org
Sat Dec 15 11:55:14 UTC 2018
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>
More information about the svn-ports-head
mailing list