From f5e8b2680e9a94d57666fc8b5e2ff324fb1bd143 Mon Sep 17 00:00:00 2001 From: Michihito Shigemura Date: Thu, 11 Jan 2018 21:05:14 +0900 Subject: docs: Fix depends_on examples in Formula page example: Error: depends_on :mysql Correct: depends_on "mysql" --- Library/Homebrew/formula.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 8e4f80260..7a2994b6b 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2207,19 +2207,19 @@ class Formula # depends_on :x11 # X11/XQuartz components. # depends_on :osxfuse # Permits the use of the upstream signed binary or our source package. # depends_on :tuntap # Does the same thing as above. This is vital for Yosemite and above. - # depends_on :mysql => :recommended + # depends_on "mysql" => :recommended #
# It is possible to only depend on something if
# # `build.with?` or `build.without? "another_formula"`:
- # depends_on :mysql # allows brewed or external mysql to be used
- # depends_on :postgresql if build.without? "sqlite"
- # depends_on :hg # Mercurial (external or brewed) is needed
+ # depends_on "mysql" # allows brewed or external mysql to be used
+ # depends_on "postgresql" if build.without? "sqlite"
+ # depends_on "hg" # Mercurial (external or brewed) is needed
#
# # If any Python >= 2.7 < 3.x is okay (either from macOS or brewed): - # depends_on :python+ # depends_on "python" #
# to depend on Python >= 2.7 but use system Python where possible - # depends_on :python if MacOS.version <= :snow_leopard+ # depends_on "python" if MacOS.version <= :snow_leopard #
# Python 3.x if the `--with-python3` is given to `brew install example` - # depends_on :python3 => :optional+ # depends_on "python3" => :optional def depends_on(dep) specs.each { |spec| spec.depends_on(dep) } end -- cgit v1.2.3 From e903a5f655f3692eeb70569ca8d55e638c3a09ae Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 11 Jan 2018 13:33:54 +0000 Subject: formula: tweak more depends_on examples. --- Library/Homebrew/formula.rb | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 7a2994b6b..7b1d94eb2 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2194,29 +2194,21 @@ class Formula #
# If a dependency is only needed in certain cases:
# depends_on "sqlite" if MacOS.version == :leopard
# depends_on :xcode # If the formula really needs full Xcode.
- # depends_on :tex # Homebrew does not provide a Tex Distribution.
- # depends_on :fortran # Checks that `gfortran` is available or `FC` is set.
- # depends_on :mpi => :cc # Needs MPI with `cc`
- # depends_on :mpi => [:cc, :cxx, :optional] # Is optional. MPI with `cc` and `cxx`.
# depends_on :macos => :lion # Needs at least OS X Lion (10.7).
- # depends_on :apr # If a formula requires the CLT-provided apr library to exist.
# depends_on :arch => :intel # If this formula only builds on Intel architecture.
# depends_on :arch => :x86_64 # If this formula only builds on Intel x86 64-bit.
# depends_on :arch => :ppc # Only builds on PowerPC?
# depends_on :ld64 # Sometimes ld fails on `MacOS.version < :leopard`. Then use this.
- # depends_on :x11 # X11/XQuartz components.
+ # depends_on :x11 => :optional # X11/XQuartz components.
# depends_on :osxfuse # Permits the use of the upstream signed binary or our source package.
# depends_on :tuntap # Does the same thing as above. This is vital for Yosemite and above.
- # depends_on "mysql" => :recommended
# # It is possible to only depend on something if
# # `build.with?` or `build.without? "another_formula"`:
- # depends_on "mysql" # allows brewed or external mysql to be used
# depends_on "postgresql" if build.without? "sqlite"
- # depends_on "hg" # Mercurial (external or brewed) is needed
#
- # # If any Python >= 2.7 < 3.x is okay (either from macOS or brewed): + ## Python 2.7: # depends_on "python"- ## to depend on Python >= 2.7 but use system Python where possible + ## Python 2.7 but use system Python where possible # depends_on "python" if MacOS.version <= :snow_leopard## Python 3.x if the `--with-python3` is given to `brew install example` # depends_on "python3" => :optional-- cgit v1.2.3