bazel.eclass
Description
A utility eclass providing functions to run the Bazel Build system.
This eclass does not export any phase functions.
Functions
- bazel_get_flags
 - 
            
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
 - bazel_setup_bazelrc
 - 
            
Creates the
bazelrcwith common options that will be passed to bazel. This will be called byebazelautomatically so does not need to be called from the ebuild. - ebazel [<args>...]
 - 
            
Run bazel with the
bazelrcandoutput_base.output_basewill be specific to$BUILD_DIR(if unset,$S).bazel_setup_bazelrcwill be called and the created bazelrc will be passed to bazel.Will automatically die if bazel does not exit cleanly.
 - bazel_load_distfiles <distfiles>...
 - 
            
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 thatSRC_URIdoes.Example:
bazel_external_uris="http://a/file-2.0.tgz python? ( http://b/1.0.tgz -> foo-1.0.tgz )" SRC_URI="http://c/${PV}.tgz ${bazel_external_uris}" src_unpack() { unpack ${PV}.tgz bazel_load_distfiles "${bazel_external_uris}" } 
Authors
Jason Zaman <perfinion@gentoo.org>
Maintainers
Jason Zaman <perfinion@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/