From c10e18c06ef914de60f556e7bc2aee62d10a33b2 Mon Sep 17 00:00:00 2001 From: "Thomas L. Kjeldsen" Date: Tue, 19 Jan 2021 13:53:12 +0100 Subject: [PATCH] Replace :x11 symbol as it is no longer available The :x11 symbol was deprecated in https://github.com/Homebrew/brew/commit/87dd13aea6691e9d5e0f3ba8d1d1f862a809212a --- docs/Formula-Cookbook.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/Formula-Cookbook.md b/docs/Formula-Cookbook.md index 58fa1c271b..734206a469 100644 --- a/docs/Formula-Cookbook.md +++ b/docs/Formula-Cookbook.md @@ -148,14 +148,13 @@ class Foo < Formula depends_on "readline" => :recommended depends_on "gtk+" => :optional depends_on "httpd" => [:build, :test] - depends_on :x11 => :optional depends_on :xcode => "9.3" end ``` A String (e.g. `"jpeg"`) specifies a formula dependency. -A Symbol (e.g. `:x11`) specifies a [`Requirement`](https://rubydoc.brew.sh/Requirement) which can be fulfilled by one or more formulae, casks or other system-wide installed software (e.g. X11). +A Symbol (e.g. `:xcode`) specifies a [`Requirement`](https://rubydoc.brew.sh/Requirement) which can be fulfilled by one or more formulae, casks or other system-wide installed software (e.g. Xcode). A Hash (e.g. `=>`) adds information to a dependency. Given a String or Symbol, the value can be one or more of the following values: