svn commit: r332954 - head/sysutils/fpart
Alexey Dokuchaev
danfe at FreeBSD.org
Wed Nov 6 08:56:27 UTC 2013
On Wed, Nov 06, 2013 at 08:14:37AM +0000, Ganael LAPLANCHE wrote:
> New Revision: 332954
> URL: http://svnweb.freebsd.org/changeset/ports/332954
>
> post-install:
> .if ${PORT_OPTIONS:MDOCS}
> - ${MKDIR} ${DOCSDIR}
> + ${MKDIR} ${STAGEDIR}${DOCSDIR}
> .for doc in ${PORTDOCS}
> - ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
> + ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
In staging mode, it is no longer required to check for PORT_OPTIONS:MDOCS
(unless docs are actually being built via external dependency like Doxygen
or simply take way too much disk space). Dropping the check would also
allow you to not include anything other than b.p.m.
You could have also got rid of ".for doc in ${PORTDOCS}" loop by using this
nice little trick:
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
./danfe
More information about the svn-ports-all
mailing list