homebrewnoweb

How to write homebrew formula that keep their files in the Cellar?


I'm trying to write a formula for the Icon programming language (necessary for noweb), but its binary distribution contains TONS of files (almost 1000) in the lib/ directory. I'd like to leave them out of the symlink-to-/usr/local/lib process since I only need the dependency when building noweb.

Is there a way I can specify that an installation should be kept in its cellar only?


Solution

  • Aha, finally found the command. Something like:

    keg_only "Icon has hundreds and hundreds of lib/ files so we leave them in the keg."
    

    Alternatively, you may write

    keg_only :provided_by_osx
    

    to have it print the following as rationale: "This is because the formula is already provided by OS X."