Index: head/editors/nano/Makefile =================================================================== --- head/editors/nano/Makefile (revision 487506) +++ head/editors/nano/Makefile (revision 487507) @@ -1,50 +1,47 @@ # Created by: Philippe Lefebvre # $FreeBSD$ PORTNAME= nano PORTVERSION= 3.2 CATEGORIES= editors MASTER_SITES= http://www.nano-editor.org/dist/v${PORTVERSION:R}/ GNU MAINTAINER= danilo@FreeBSD.org COMMENT= Nano's ANOther editor, an enhanced free Pico clone LICENSE= GPLv3 USES= charsetfix ncurses CONFLICTS= nano-devel-2* GNU_CONFIGURE= yes CONFIGURE_ARGS= --docdir=${DOCSDIR} --enable-utf8 MAKE_ARGS+= install_htmlmanDATA=install-htmlmanDATA CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= DOCS EXAMPLES NLS OPTIONS_SUB= yes -DOCS_USES= groff - NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls 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