bazel.eclass - Utility functions for packages using Bazel Build
A utility eclass providing functions to run the Bazel Build system.
This eclass does not export any phase functions.
Obtain and print the bazel flags for target and host *FLAGS.
To add more flags to this, append the flags to the
appropriate variable before calling this function
Creates the bazelrc with common options that will be passed
to bazel. This will be called by ebazel automatically so
does not need to be called from the ebuild.
Run bazel with the bazelrc and output_base.
output_base will be specific to $BUILD_DIR (if unset, $S).
bazel_setup_bazelrc will be called and the created bazelrc
will be passed to bazel.
Will automatically die if bazel does not exit cleanly.
Populate the bazel distdir to fetch from since it cannot use
the network. Bazel looks in distdir but will only look for the
original filename, not the possibly renamed one that portage
downloaded. If the line has -> we to rename it back. This also
handles use-conditionals that SRC_URI does.