1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

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:22:07 +00:00
parent 9e675b852a
commit 39a0370b7b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360709
2 changed files with 10 additions and 4 deletions

View File

@ -57,6 +57,8 @@ SUB_LIST= APP_HOME=${DATADIR} \
STOP_TIMEOUT=${STOP_TIMEOUT} \
USER=${USER}
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.pre.mk>
@ -76,7 +78,7 @@ do-install:
(cd ${JBOSSOUTPUT}/client && ${FIND} jboss-remoting.jar jboss-serialization.jar |\
${CPIO} -pdmu -R ${USER}:${GROUP} ${DATADIR}/common/lib)
${INSTALL} -o ${USER} -g ${GROUP} -m 0640 /dev/null ${PID_FILE}
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
cd ${JBOSSOUTPUT}/docs \
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;

View File

@ -36,7 +36,11 @@ DISTFILES+= ${PORTNAME}CE-${PORTVERSION}${EXTRACT_SUFX} \
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
.endif
.if !defined(NOPORTDOCS)
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= *
PLIST_FILES+= %%DATADIR%%/docs %%DATADIR%%/examples
.endif
@ -62,7 +66,7 @@ do-install:
cd ${WRKSRC}/ \
&& ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; \
&& ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${LN} -s ${DOCSDIR} ${DATADIR}/docs
cd ${WRKSRC}/docs/ \
@ -82,7 +86,7 @@ post-install:
| ${SED} -ne 's,^${WRKSRC},@dirrm ${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm ${DATADIR:S,^${PREFIX}/,,}/bin" >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm ${DATADIR:S,^${PREFIX}/,,}" >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${FIND} -s ${WRKSRC}/examples -not -type d \
| ${SED} -ne 's,^${WRKSRC}/examples,${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
@${FIND} -s -d ${WRKSRC}/examples -type d \