On Wed,  2 Jan 2019 13:58:26 -0800
Georgy Yakovlev <gyakov...@gentoo.org> wrote:

> +# @CODE
> +# ECARGO_BUILD_FLAGS="$(usex pcre "--features pcre2" "")"
> +# @CODE

You may also want to provide user's hooks as well.

Similar to EXTRA_ECONF and EXTRA_EMAKE those might be
    ECARGO_EXTRA_BUILD_FLAGS
    ECARGO_EXTRA_INSTALL_FLAGS

That way user would be able to tweak cargo behaviour without
breaking ebuild behaviour too much via make.conf/package.env, like
    ECARGO_EXTRA_BUILD_FLAGS=--color=never

-- 

  Sergei

Reply via email to