Suggest current practice for autotools deps
This commit is contained in:
parent
fa667dc8d3
commit
6000c0caf9
@ -55,8 +55,9 @@ class ExampleFormula < Formula
|
|||||||
head do
|
head do
|
||||||
url "https://example.com/repo.git"
|
url "https://example.com/repo.git"
|
||||||
|
|
||||||
depends_on :autoconf
|
depends_on "autoconf" => :build
|
||||||
depends_on :automake
|
depends_on "automake" => :build
|
||||||
|
depends_on "libtool" => :build
|
||||||
end
|
end
|
||||||
|
|
||||||
# The optional devel block is only executed if the user passes `--devel`.
|
# The optional devel block is only executed if the user passes `--devel`.
|
||||||
@ -155,9 +156,6 @@ class ExampleFormula < Formula
|
|||||||
depends_on :arch => :ppc # Only builds on PowerPC?
|
depends_on :arch => :ppc # Only builds on PowerPC?
|
||||||
depends_on :ld64 # Sometimes ld fails on `MacOS.version < :leopard`. Then use this.
|
depends_on :ld64 # Sometimes ld fails on `MacOS.version < :leopard`. Then use this.
|
||||||
depends_on :x11 # X11/XQuartz components.
|
depends_on :x11 # X11/XQuartz components.
|
||||||
# autoconf/automake is sometimes needed for --HEAD checkouts:
|
|
||||||
depends_on :bsdmake
|
|
||||||
depends_on :libtool
|
|
||||||
depends_on :mysql => :recommended
|
depends_on :mysql => :recommended
|
||||||
# It is possible to only depend on something if
|
# It is possible to only depend on something if
|
||||||
# `build.with?` or `build.without? "another_formula"`:
|
# `build.with?` or `build.without? "another_formula"`:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user