diff --git a/share/doc/homebrew/Formula-Cookbook.md b/share/doc/homebrew/Formula-Cookbook.md index 99ec05f1ff..914b23b40a 100644 --- a/share/doc/homebrew/Formula-Cookbook.md +++ b/share/doc/homebrew/Formula-Cookbook.md @@ -791,6 +791,11 @@ Generally we'd rather you were specific about what files or directories need to #{prefix}/share /usr/local/Cellar/foo/0.1/share + + pkgshare + #{prefix}/share/foo + /usr/local/Cellar/foo/0.1/share/foo + etc #{HOMEBREW_PREFIX}/etc @@ -847,6 +852,7 @@ class Yourformula < Formula ... option "with-ham", "Description of the option" option "without-spam", "Another description" + depends_on "foo" => :optional # will automatically add a with-foo option ... ```