From bb4237a230d8ced25ef8f66101a7a1570a88db29 Mon Sep 17 00:00:00 2001
From: Dominyk Tiller
Date: Wed, 12 Aug 2015 15:58:23 +0100
Subject: cookbook: document pkgshare
---
share/doc/homebrew/Formula-Cookbook.md | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'share')
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
@@ -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
...
```
--
cgit v1.2.3
class='tabs'>
|
aboutsummaryrefslogtreecommitdiffstats |
|
| Age | Commit message (Expand) | Author |