[MacPorts] #48937: New port: Bazel

MacPorts noreply at macports.org
Mon Jun 26 18:31:29 UTC 2017


#48937: New port: Bazel
-------------------------+--------------------------------
  Reporter:  ahh         |      Owner:  macports-tickets@…
      Type:  submission  |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  bazel       |
-------------------------+--------------------------------

Comment (by raimue):

 Do not install `bazel-complete.bash` to `${prefix}/bin`, it does not make
 sense to have it in `$PATH` as it is not meant to be executed directly.
 Depending on how they are written, bash-completion scripts need to go into
 either `${prefix}/share/bash-completion/completions/` (on-demand) or
 `${prefix}/etc/bash_completion.d/` (always loaded).

 However, this file does not look like a bash-completion script at all.
 Either the file should be built using bazel itself or replicate all
 arguments as in `${worksrcpath}/scripts/BUILD`, the missing bit would be
 the `--prepend` argument. The former would be more robust to future
 changes. I did not test it, but the resulting file should then be good to
 be installed at `${prefix}/share/bash-completion/completions/bazel` for
 on-demand loading.

--
Ticket URL: <https://trac.macports.org/ticket/48937#comment:21>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list