Skip to content
Snippets Groups Projects
Commit 59fab56a authored by EricFromCanada's avatar EricFromCanada
Browse files

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.
parent 422afa0b
No related branches found
No related tags found
No related merge requests found
...@@ -59,10 +59,18 @@ class Foo < Formula ...@@ -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 ...@@ -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&num;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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment