Tim D. Smith f81d561b67 always use opt_prefix in install_name
dylib install_names are presently rewritten relative to HOMEBREW_PREFIX,
except for keg-only formulas, which are rewritten relative to
opt_prefix.

If we make a formula keg_only, all of its dependents need to be bumped,
since it will no longer exist in HOMEBREW_PREFIX and all of the links
will be written incorrectly.

If we always use opt_prefix, we avoid that dilemma, and make installed
packages more robust if a dependency is `brew unlink`ed.

Closes Homebrew/homebrew#43518.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-16 17:22:35 +01:00
..
2015-08-03 13:22:35 +01:00
2015-08-03 13:22:35 +01:00
2015-08-03 13:22:35 +01:00
2015-10-01 05:54:14 +01:00
2015-09-10 23:10:26 -07:00
2015-10-04 10:31:46 +02:00
2015-08-03 13:22:35 +01:00
2015-08-03 13:22:35 +01:00
2015-08-29 15:43:16 +01:00
2015-08-28 17:15:29 +08:00
2015-08-03 13:22:35 +01:00
2015-08-29 15:43:16 +01:00
2015-08-03 13:22:35 +01:00
2015-08-03 13:22:35 +01:00
2015-08-03 13:22:35 +01:00
2014-06-23 22:34:41 -05:00
2015-08-06 22:33:46 +08:00
2015-08-03 13:22:35 +01:00
2015-08-03 13:22:35 +01:00
2015-10-08 16:23:40 +08:00
2015-08-03 13:22:35 +01:00
2015-08-29 15:43:16 +01:00
2015-08-03 14:34:12 -07:00
2015-08-03 13:22:35 +01:00
2015-08-03 13:22:35 +01:00
2015-08-29 15:43:16 +01:00
2015-09-01 19:19:13 +08:00
2015-08-03 13:22:35 +01:00
2015-08-03 13:22:35 +01:00
2015-10-02 07:58:19 +02:00
2015-08-03 13:22:35 +01:00
2015-10-04 10:31:46 +02:00

Homebrew's Formula API

This is the (partially) documented public API for Homebrew. It's currently a work in progress. Sorry about that!

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!