docs: update sample formula
Also works around bug in Jekyll where a URL with a "#" will cause links in the same paragraph to not have their extensions replaced by using "#" instead.
This commit is contained in:
parent
422afa0b49
commit
59fab56afd
@ -59,10 +59,18 @@ class Foo < Formula
|
|||||||
# depends_on "cmake" => :build
|
# depends_on "cmake" => :build
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
# ENV.deparallelize
|
||||||
|
system "./configure", "--disable-debug",
|
||||||
|
"--disable-dependency-tracking",
|
||||||
|
"--disable-silent-rules",
|
||||||
|
"--prefix=#{prefix}"
|
||||||
# system "cmake", ".", *std_cmake_args
|
# system "cmake", ".", *std_cmake_args
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test do
|
||||||
|
system "false"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -259,7 +267,7 @@ Check the top of the e.g. `./configure` output. Some configure scripts do not re
|
|||||||
|
|
||||||
### Add a test to the formula
|
### Add a test to the formula
|
||||||
|
|
||||||
Please add a [`test do`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#test-class_method) block to the formula. This will be run by `brew test foo` and the [Brew Test Bot](Brew-Test-Bot.md).
|
Add a valid test to the [`test do`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#test-class_method) block of the formula. This will be run by `brew test foo` and the [Brew Test Bot](Brew-Test-Bot.md).
|
||||||
|
|
||||||
The
|
The
|
||||||
[`test do`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#test-class_method)
|
[`test do`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#test-class_method)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user