Remove NOPORTDOCS and NOPORTEXAMPLES from unstaged ports. Stage a couple while

we're here. Remove any other references to NOPORT*.

Approved by:	portmgr (blanket for modernization)
This commit is contained in:
Adam Weinberger 2014-07-05 00:20:38 +00:00
parent 8718389903
commit 9e675b852a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360708
2 changed files with 11 additions and 2 deletions

View file

@ -28,6 +28,8 @@ REINPLACE_SUB= PREFIX=${PREFIX}
# Post-patch
#
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} ${REINPLACE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
@ -42,8 +44,10 @@ pre-configure:
# Post-install
#
.include <bsd.port.options.mk>
post-install:
.if defined(NOPORTDOCS)
.if empty(PORT_OPTIONS:MDOCS)
@${RM} -rf ${DOCSDIR}
.endif

View file

@ -46,7 +46,12 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
TRASHFILES= lib/Conf.pm~ cgi-bin/.articlemodif.cgi.swp lib/.Conf.pm.swp \
html/UNGI/Editfacturemaj.pm.back html/temp/log_facture.gif.back
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "Vous pouvez définir trois variables :"
@ -102,7 +107,7 @@ do-install:
${ECHO_CMD} "Include ${ETCDIR}" >> ${APACHE_CONF} ; \
fi)
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}/
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."