Mike McQuaid 2b547583a3 postinstall: don't allow writes to prefix itself.
Only the top-level directories inside it. We don't want formulae writing
random junk in e.g. `/usr/local` even in `postinstall`.
2016-12-13 00:13:20 +00:00
..
2016-12-05 11:09:21 +00:00
2016-11-21 08:48:26 +00:00
2016-11-10 15:01:29 +01:00
2016-10-30 16:14:51 -04:00
2016-11-13 23:00:47 +01:00
2016-12-10 17:58:41 +00:00
2016-11-14 09:45:44 +01:00
2016-11-03 12:09:44 +00:00
2016-11-13 23:00:47 +01:00
2016-12-03 23:26:52 +00:00
2016-11-10 15:09:36 -08:00

Homebrew's Formula API

This is the (partially) documented public API for Homebrew.

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!