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:
parent
3e97fc69e3
commit
5152fb93a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360692
@ -24,7 +24,8 @@ EXTRACT_AFTER_ARGS= -d ${WRKSRC}
|
||||
FENGOFFICE_DIR= www/${PORTNAME}
|
||||
FENGOFFICE_WWWDIR= ${PREFIX}/${FENGOFFICE_DIR}
|
||||
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
pre-extract:
|
||||
@${MKDIR} ${WRKDIR}/${PORTNAME}
|
||||
|
||||
@ -39,19 +40,15 @@ pre-install:
|
||||
${FIND} . -type f | ${SORT} | ${SED} -e 's|^|www/fengoffice/|' -e 's|\./||g' >> ${PLIST} && \
|
||||
${FIND} . -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm www/fengoffice|' -e 's|\.||g' >> ${PLIST}
|
||||
|
||||
. if !defined(NOPORTDOCS)
|
||||
@${ECHO_CMD} "%%PORTDOCS%%%%DOCSDIR%%/README" >> ${PLIST}
|
||||
@${ECHO_CMD} "%%PORTDOCS%%@dirrm %%DOCSDIR%%" >> ${PLIST}
|
||||
. endif
|
||||
@${ECHO_CMD} "%%PORTDOCS%%%%DOCSDIR%%/README" >> ${PLIST}
|
||||
@${ECHO_CMD} "%%PORTDOCS%%@dirrm %%DOCSDIR%%" >> ${PLIST}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${FENGOFFICE_WWWDIR}
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${FENGOFFICE_WWWDIR}
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${FENGOFFICE_WWWDIR}
|
||||
.if !defined (NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-docs/README ${DOCSDIR}
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${FENGOFFICE_WWWDIR}
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${FENGOFFICE_WWWDIR}
|
||||
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${FENGOFFICE_WWWDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-docs/README ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
@ -88,6 +88,8 @@ CONTRIBS= \
|
||||
scripts/staticmathjax/README.org \
|
||||
scripts/staticmathjax/README.txt \
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -i .pv 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/Makefile
|
||||
@ -107,10 +109,8 @@ post-install:
|
||||
.for i in ${CONTRIBS}
|
||||
${INSTALL_DATA} ${WRKSRC}/contrib/${i} ${DOCSDIR}/contrib/$$(dirname ${i})
|
||||
.endfor
|
||||
.if !defined(NOPORTDOCS)
|
||||
.for i in org.pdf orgcard.pdf orgguide.pdf
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user