svn commit: r338361 - in head/devel/silentbob: . files

John Marino freebsd.contact at marino.st
Mon Jan 13 08:35:14 UTC 2014


On 1/13/2014 09:29, Alexey Dokuchaev wrote:
> On Wed, Jan 01, 2014 at 06:49:19AM +0000, TAKATSU Tomonari wrote:
>> New Revision: 338361
>> URL: http://svnweb.freebsd.org/changeset/ports/338361
>>
>> +PORTDOCS=	README
> [...]
>> +.if ${PORT_OPTIONS:MDOCS}
>>  post-install:
>> -.if !defined(NOPORTDOCS)
>> -	@${MKDIR} ${DOCSDIR}
>> -	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
>> -	@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
>> +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
>> +	@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
> 
> For a simple cases like this one (when docs are not being built and are just
> a lonely README file), once staged, .if ${PORT_OPTIONS:MDOCS} is no longer
> necessary (and would allow you to remove .include <bsd.port.options.mk>).
> 
> Please note that INSTALL_* commands should not be muted (muting MKDIR is
> fine), thank you.

On the latter, maybe it would be worth your time to modify portlint to
flag muted install commands in the install and post-install targets?
stage targets too.





More information about the svn-ports-all mailing list