mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cookbook: document pkgshare
This commit is contained in:
parent
aa394bad69
commit
bb4237a230
@ -791,6 +791,11 @@ Generally we'd rather you were specific about what files or directories need to
|
||||
<td><code>#{prefix}/share</code></td>
|
||||
<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>
|
||||
@ -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
|
||||
...
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user