aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorDominyk Tiller2015-08-12 15:58:23 +0100
committerDominyk Tiller2015-08-12 15:58:23 +0100
commitbb4237a230d8ced25ef8f66101a7a1570a88db29 (patch)
tree155df8424f1d6d2aef5aa4f36b0773840de2c0df /share
parentaa394bad698cebc01e7389adead07a4d0d8bbd1d (diff)
downloadbrew-bb4237a230d8ced25ef8f66101a7a1570a88db29.tar.bz2
cookbook: document pkgshare
Diffstat (limited to 'share')
-rw-r--r--share/doc/homebrew/Formula-Cookbook.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/doc/homebrew/Formula-Cookbook.md b/share/doc/homebrew/Formula-Cookbook.md
index 99ec05f1f..914b23b40 100644
--- a/share/doc/homebrew/Formula-Cookbook.md
+++ b/share/doc/homebrew/Formula-Cookbook.md
@@ -792,6 +792,11 @@ Generally we'd rather you were specific about what files or directories need to
<td><code>/usr/local/Cellar/foo/0.1/share</code></td>
</tr>
<tr>
+ <th><code>pkgshare</code></th>
+ <td><code>#{prefix}/share/foo</code></td>
+ <td><code>/usr/local/Cellar/foo/0.1/share/foo</code></td>
+ </tr>
+ <tr>
<th><code>etc</code></th>
<td><code>#{HOMEBREW_PREFIX}/etc</code></td>
<td><code>/usr/local/etc</code></td>
@@ -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
...
```