svn commit: r394970 - head/devel/love07

Alexey Dokuchaev danfe at FreeBSD.org
Fri Aug 21 17:15:23 UTC 2015


On Fri, Aug 21, 2015 at 04:00:05PM +0000, Dmitry Marakasov wrote:
> New Revision: 394970
> URL: https://svnweb.freebsd.org/changeset/ports/394970
> 
> Log:
>   - Switch to options helpers
>  
> [...]
> -.if ${PORT_OPTIONS:MDOCS}
> -post-install:
> +post-install-DOCS-on:
>  	${MKDIR} ${STAGEDIR}${DOCSDIR}
>  .for f in changes.txt readme.txt
>  	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
>  .endfor
> -.endif

(Picking a random commit) I don't quite get it.  Pregen'ed files like
changes.txt and readme.txt can be just always installed into stagedir, no?
So a port is built+installed once, then multiple flavors of packages are
generated by taking needed files from the stagedir.

That said, `post-install-FOO-on' target should be used when FOO bits are
not necessarily available (e.g. because they have to be built first, and
that step could/should be optional).

./danfe


More information about the svn-ports-head mailing list