svn commit: r348866 - head/ports-mgmt/poudriere-devel
Bryan Drewery
bdrewery at FreeBSD.org
Sun Mar 23 16:20:53 UTC 2014
On 3/23/2014 11:18 AM, Mathieu Arnold wrote:
>
>
> +--On 23 mars 2014 11:15:51 -0500 Bryan Drewery <bdrewery at FreeBSD.org>
> wrote:
> | On 3/23/2014 11:11 AM, Mathieu Arnold wrote:
> |> +--On 23 mars 2014 15:40:11 +0000 Bryan Drewery <bdrewery at FreeBSD.org>
> |> wrote:
> |> | .include <bsd.port.options.mk>
> |> |
> |> | +post-install:
> |> | .if ${PORT_OPTIONS:MZSH}
> |> | -PLIST_FILES+= share/zsh/site-functions/_poudriere
> |> | -PLIST_DIRSTRY+= share/zsh/site-functions
> |> | -PLIST_DIRSTRY+= share/zsh/
> |> | -.else
> |> | -MAKE_ENV+= NO_ZSH=yes
> |> | + @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
> |> | + ${INSTALL_DATA} ${WRKSRC}/completions/zsh/_poudriere \
> |> | + ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
> |> | .endif
> |>
> |> I think you could do without the include and always install the file.
> |>
> |
> | What?
>
> Replace:
>
> .include <bsd.port.options.mk>
>
> post-install:
> .if ${PORT_OPTIONS:MZSH}
> @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
> ${INSTALL_DATA} ${WRKSRC}/completions/zsh/_poudriere \
> ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
> .endif
>
> With:
>
> post-install:
> @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
> ${INSTALL_DATA} ${WRKSRC}/completions/zsh/_poudriere \
> ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
>
> The package won't register the file if the option is disabled, and it
> removes the need for make to parse bsd.port.mk twice.
>
And then there is a stage orphan.
No.
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20140323/1938112b/attachment.sig>
More information about the svn-ports-all
mailing list