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:03:38 +00:00
parent 2e07114854
commit 6041163193
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360701
2 changed files with 12 additions and 4 deletions

View file

@ -34,7 +34,12 @@ MAN5= awesome2rc.5
PORTDOCS= AUTHORS LICENSE README STYLE UPGRADE
PORTEXAMPLES= awesomerc
OPTIONS_DEFINE= DOCS EXAMPLES
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's, "$$(DESTDIR)$$(docdir)";,;,g' \
-e 's,\([[:space:]]\)install-docDATA ,\1,g' \
@ -58,14 +63,14 @@ post-configure:
${WRKSRC}/Makefile
post-install:
. if !defined(NOPORTDOCS)
. if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
@${MKDIR} ${DOCSDIR}
. for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
. endfor
. endif
. if !defined(NOPORTEXAMPLES)
. if ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_MSG} "installing example config file to ${EXAMPLESDIR}"
@${MKDIR} ${EXAMPLESDIR}
. for example in ${PORTEXAMPLES}

View file

@ -17,8 +17,11 @@ USES= gmake
REINPLACE_ARGS= -i '' -e
CC= ${CXX}
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
post-extract:
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/data.inst
@ -36,7 +39,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/data/menu/default ${PREFIX}/share/sapphire/menu/default.orig
@${MKDIR} ${PREFIX}/share/sapphire/themes
${INSTALL_DATA} ${WRKSRC}/data/themes/*.theme ${PREFIX}/share/sapphire/themes
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
.endif