Carlo Cabrera 0780d06015
keg: create subdirectories of lib/lua instead of symlinks
Some formulae (e.g. `luv`) have a `lib/lua/5.1` subdirectory inside
their keg. Before this change, the `5.1` subdirectory is symlinked into
`HOMEBREW_PREFIX`.

This can result in `luarocks` installing things into a formula's keg,
which we don't want.

Let's fix that by making sure that `brew link` creates these
subdirectories instead of symlinking them. We already do this for
subdirectories of `share/lua`:

8dd96ae8ba/Library/Homebrew/keg.rb (L430)
2022-07-11 10:10:38 +08:00
..
2022-06-14 16:42:10 -04:00
2022-06-15 16:35:49 -04:00
2022-07-07 14:46:41 -07:00
2022-05-30 14:59:14 +01:00
2022-05-10 00:12:06 +00:00
2022-06-29 11:47:57 -04:00
2022-07-05 09:57:10 -07:00
2022-07-08 11:35:20 +00:00
2022-07-08 11:29:43 +00:00
2022-02-22 15:27:43 +00:00
2022-06-14 16:06:05 -04:00
2022-06-14 16:06:05 -04:00
2022-04-28 10:40:16 -04:00
2022-04-30 22:05:35 +02:00
2022-06-30 08:56:21 +01:00
2022-06-30 08:56:21 +01:00
2022-06-14 16:06:05 -04:00
2022-05-18 18:48:16 -04:00
2022-06-29 11:34:49 -04:00
2022-06-30 03:39:29 +01:00
2022-07-04 10:13:01 -04:00
2022-06-29 11:34:49 -04:00
2022-06-29 11:47:57 -04:00
2022-06-10 19:32:32 +01:00
2022-06-30 08:56:21 +01:00
2022-06-29 11:34:49 -04:00
2022-06-17 19:47:57 +01:00
2022-06-02 03:25:55 +01:00

Homebrew Ruby API

This is the 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!