Use OPTION helpers for DOCS

PR:		213975
Submitted by:	udvzsolt@gmail.com (maintainer)
This commit is contained in:
Thomas Zander 2016-11-13 14:13:42 +00:00
parent da704f951a
commit 74368fb2ba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426052
2 changed files with 11 additions and 3 deletions

View File

@ -25,6 +25,10 @@ DEFAULTCONF_DESC=Install default configuration (requires bash)
OPTIONS_DEFAULT+=DEFAULTCONF
OPTIONS_SUB= yes
ALL_TARGET= all-nodoc
INSTALL_TARGET= install-nodoc
DOCS_ALL_TARGET= doc
DOCS_INSTALL_TARGET= install
DEFAULTCONF_RUN_DEPENDS=bash:shells/bash
.include <bsd.port.options.mk>
@ -37,9 +41,6 @@ post-patch:
.if ! ${PORT_OPTIONS:MZSH}
${REINPLACE_CMD} -e '/ZSHCOMPLETIONDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MEXAMPLES}
${REINPLACE_CMD} -e '/EXAMPLESDIR/d' ${WRKSRC}/Makefile
.endif
@ -47,6 +48,12 @@ post-patch:
${REINPLACE_CMD} -e '/CONFIGDIR/d' ${WRKSRC}/Makefile
.endif
do-install-DOCS-off:
${MKDIR} ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
${MKDIR} ${STAGEDIR}${MANPREFIX}/man/man7
${INSTALL_MAN} ${WRKSRC}/doc/*.7 ${STAGEDIR}${MANPREFIX}/man/man7
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/herbst*

View File

@ -1,2 +1,3 @@
TIMESTAMP = 1477994139
SHA256 (herbstluftwm-0.7.0.tar.gz) = 7e2ffc30b7911407230a5eeb61e044cea78557999107d372bc2dbc3d82d0ae27
SIZE (herbstluftwm-0.7.0.tar.gz) = 247469