language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | Homebrew | brew | 575b75fced18ef98f110db0bf8efb1f6561049db.json | LanguageModuleRequirement: remove jruby support | Library/Homebrew/dependency_collector.rb | @@ -18,7 +18,7 @@
class DependencyCollector
# Define the languages that we can handle as external dependencies.
LANGUAGE_MODULES = Set[
- :jruby, :lua, :perl, :python, :python3, :ruby
+ :lua, :perl, :python, :python3, :ruby
].freeze
CACHE = {} | true |
Other | Homebrew | brew | 575b75fced18ef98f110db0bf8efb1f6561049db.json | LanguageModuleRequirement: remove jruby support | Library/Homebrew/requirements/language_module_requirement.rb | @@ -21,10 +21,8 @@ def message; <<-EOS.undent
def the_test
case @language
- when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}']
when :lua then %W[/usr/bin/env luarocks-5.2 show #{@import_name}]
when :lua51 then %W[/usr/bin/env luarocks-5.1 show #{@import_name}]
- when :ocaml then %W[/usr/bin/env opam list --installed #{@import_name}]
when :perl then %W[/usr/bin/env perl -e use\ #{@import_name}]
when :python then %W[/usr/bin/env python -c import\ #{@import_name}]
when :python3 then %W[/usr/bin/env python3 -c import\ #{@import_name}]
@@ -34,10 +32,8 @@ def the_test
def command_line
case @language
- when :jruby then "jruby -S gem install"
when :lua then "luarocks-5.2 install"
when :lua51 then "luarocks-5.1 install"
- when :ocaml then "opam install"
when :perl then "cpan -i"
when :python then "pip install"
when :python3 then "pip3 install" | true |
Other | Homebrew | brew | aa1461b7d67e5c0f0f37420c8168b38f9784e28f.json | LanguageModuleRequirement: remove ocaml support | Library/Homebrew/dependency_collector.rb | @@ -18,7 +18,7 @@
class DependencyCollector
# Define the languages that we can handle as external dependencies.
LANGUAGE_MODULES = Set[
- :jruby, :lua, :ocaml, :perl, :python, :python3, :ruby
+ :jruby, :lua, :perl, :python, :python3, :ruby
].freeze
CACHE = {} | false |
Other | Homebrew | brew | 36cef3c9744c7bc5d7215c5b79ea304a3aa2cfc2.json | LanguageModuleRequirement: remove node support | Library/Homebrew/dependency_collector.rb | @@ -18,7 +18,7 @@
class DependencyCollector
# Define the languages that we can handle as external dependencies.
LANGUAGE_MODULES = Set[
- :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby
+ :jruby, :lua, :ocaml, :perl, :python, :python3, :ruby
].freeze
CACHE = {} | true |
Other | Homebrew | brew | 36cef3c9744c7bc5d7215c5b79ea304a3aa2cfc2.json | LanguageModuleRequirement: remove node support | Library/Homebrew/requirements/language_module_requirement.rb | @@ -24,7 +24,6 @@ def the_test
when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}']
when :lua then %W[/usr/bin/env luarocks-5.2 show #{@import_name}]
when :lua51 then %W[/usr/bin/env luarocks-5.1 show #{@import_name}]
- when :node then %W[/usr/bin/env node -e require('#{@import_name}');]
when :ocaml then %W[/usr/bin/env opam list --installed #{@import_name}]
when :perl then %W[/usr/bin/env perl -e use\ #{@import_name}]
when :python then %W[/usr/bin/env python -c import\ #{@import_name}]
@@ -38,7 +37,6 @@ def command_line
when :jruby then "jruby -S gem install"
when :lua then "luarocks-5.2 install"
when :lua51 then "luarocks-5.1 install"
- when :node then "npm install"
when :ocaml then "opam install"
when :perl then "cpan -i"
when :python then "pip install" | true |
Other | Homebrew | brew | 36cef3c9744c7bc5d7215c5b79ea304a3aa2cfc2.json | LanguageModuleRequirement: remove node support | Library/Homebrew/test/test_language_module_requirement.rb | @@ -50,14 +50,4 @@ def test_bad_ruby_deps
def test_good_ruby_deps
assert_deps_pass "date" => :ruby
end
-
- if which("node")
- def test_bad_node_deps
- assert_deps_fail "notapackage" => :node
- end
-
- def test_good_node_deps
- assert_deps_pass "util" => :node
- end
- end
end | true |
Other | Homebrew | brew | 1ad2aeef86e6f0261a55d588a658a084a8f31ede.json | LanguageModuleRequirement: remove chicken support | Library/Homebrew/dependency_collector.rb | @@ -18,7 +18,7 @@
class DependencyCollector
# Define the languages that we can handle as external dependencies.
LANGUAGE_MODULES = Set[
- :chicken, :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby
+ :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby
].freeze
CACHE = {} | true |
Other | Homebrew | brew | 1ad2aeef86e6f0261a55d588a658a084a8f31ede.json | LanguageModuleRequirement: remove chicken support | Library/Homebrew/requirements/language_module_requirement.rb | @@ -21,7 +21,6 @@ def message; <<-EOS.undent
def the_test
case @language
- when :chicken then %W[/usr/bin/env csi -e (use\ #{@import_name})]
when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}']
when :lua then %W[/usr/bin/env luarocks-5.2 show #{@import_name}]
when :lua51 then %W[/usr/bin/env luarocks-5.1 show #{@import_name}]
@@ -36,7 +35,6 @@ def the_test
def command_line
case @language
- when :chicken then "chicken-install"
when :jruby then "jruby -S gem install"
when :lua then "luarocks-5.2 install"
when :lua51 then "luarocks-5.1 install" | true |
Other | Homebrew | brew | 1ad2aeef86e6f0261a55d588a658a084a8f31ede.json | LanguageModuleRequirement: remove chicken support | Library/Homebrew/test/test_language_module_requirement.rb | @@ -51,16 +51,6 @@ def test_good_ruby_deps
assert_deps_pass "date" => :ruby
end
- if which("csc")
- def test_bad_chicken_deps
- assert_deps_fail "notapackage" => :chicken
- end
-
- def test_good_chicken_deps
- assert_deps_pass "extras" => :chicken
- end
- end
-
if which("node")
def test_bad_node_deps
assert_deps_fail "notapackage" => :node | true |
Other | Homebrew | brew | d4db443b1926b97660399f361e0b7a98ea24c608.json | LanguageModuleRequirement: remove rbx support
This test wasn't running by default, so we missed that it wasn't
actually being executed - or that it was failing when running in the
testing environment.
As far as I can tell this is not, and has not, been used either in core
or in any tap, third party or otherwise, so just remove the feature and
its test. | Library/Homebrew/dependency_collector.rb | @@ -18,7 +18,7 @@
class DependencyCollector
# Define the languages that we can handle as external dependencies.
LANGUAGE_MODULES = Set[
- :chicken, :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :rbx, :ruby
+ :chicken, :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby
].freeze
CACHE = {} | true |
Other | Homebrew | brew | d4db443b1926b97660399f361e0b7a98ea24c608.json | LanguageModuleRequirement: remove rbx support
This test wasn't running by default, so we missed that it wasn't
actually being executed - or that it was failing when running in the
testing environment.
As far as I can tell this is not, and has not, been used either in core
or in any tap, third party or otherwise, so just remove the feature and
its test. | Library/Homebrew/requirements/language_module_requirement.rb | @@ -31,7 +31,6 @@ def the_test
when :python then %W[/usr/bin/env python -c import\ #{@import_name}]
when :python3 then %W[/usr/bin/env python3 -c import\ #{@import_name}]
when :ruby then %W[/usr/bin/env ruby -rubygems -e require\ '#{@import_name}']
- when :rbx then %W[/usr/bin/env rbx -rubygems -e require\ '#{@import_name}']
end
end
@@ -46,7 +45,6 @@ def command_line
when :perl then "cpan -i"
when :python then "pip install"
when :python3 then "pip3 install"
- when :rbx then "rbx gem install"
when :ruby then "gem install"
end
end | true |
Other | Homebrew | brew | d4db443b1926b97660399f361e0b7a98ea24c608.json | LanguageModuleRequirement: remove rbx support
This test wasn't running by default, so we missed that it wasn't
actually being executed - or that it was failing when running in the
testing environment.
As far as I can tell this is not, and has not, been used either in core
or in any tap, third party or otherwise, so just remove the feature and
its test. | Library/Homebrew/test/test_language_module_requirement.rb | @@ -51,16 +51,6 @@ def test_good_ruby_deps
assert_deps_pass "date" => :ruby
end
- if which("rbx")
- def test_bad_rubinius_deps
- assert_deps_fail "notapackage" => :rbx
- end
-
- def test_good_rubinius_deps
- assert_deps_pass "date" => :rbx
- end
- end
-
if which("csc")
def test_bad_chicken_deps
assert_deps_fail "notapackage" => :chicken | true |
Other | Homebrew | brew | 482481d24c7d66cdc2a6fdfb9933cf6fb7b429c9.json | pathname: fix use of `find` on Ruby 1.8. | Library/Homebrew/extend/pathname.rb | @@ -28,7 +28,7 @@ def abv
def compute_disk_usage
if self.directory?
@file_count, @disk_usage = [0, 0]
- self.find.each do |f|
+ self.find do |f|
if !File.directory?(f) and !f.to_s.match(/\.DS_Store/)
@file_count += 1
@disk_usage += File.size(f) | false |
Other | Homebrew | brew | 090b133a01d3918ea6a0d73768b836185a8dce35.json | cleanup: display total disk space to be cleared
Closes Homebrew/homebrew#45642.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/cleanup.rb | @@ -2,8 +2,15 @@
require "keg"
require "bottles"
require "thread"
+require "utils"
module Homebrew
+ @@disk_cleanup_size = 0
+
+ def update_disk_cleanup_size(path_size)
+ @@disk_cleanup_size += path_size
+ end
+
def cleanup
if ARGV.named.empty?
cleanup_cellar
@@ -16,6 +23,15 @@ def cleanup
else
ARGV.resolved_formulae.each { |f| cleanup_formula(f) }
end
+
+ if @@disk_cleanup_size > 0
+ disk_space = disk_usage_readable(@@disk_cleanup_size)
+ if ARGV.dry_run?
+ ohai "This operation would free approximately #{disk_space} of disk space."
+ else
+ ohai "This operation has freed approximately #{disk_space} of disk space."
+ end
+ end
end
def cleanup_logs
@@ -113,6 +129,7 @@ def cleanup_path(path)
puts "Removing: #{path}... (#{path.abv})"
yield
end
+ update_disk_cleanup_size(path.disk_usage)
end
def cleanup_lockfiles | false |
Other | Homebrew | brew | a96a9004f4600ed71b0d9f6a22fbc9b2a2fe41f8.json | utils: add readable disk space, numbers methods. | Library/Homebrew/utils.rb | @@ -592,3 +592,32 @@ def private_repo?(user, repo)
open(uri) { |json| json["private"] }
end
end
+
+def disk_usage_readable(size_in_bytes)
+ len = size_in_bytes.to_s.length
+ case
+ when len > 9
+ sym, unit = ["G", 1_073_741_824]
+ when len > 6
+ sym, unit = ["M", 1_048_576]
+ when len > 3
+ sym, unit = ["K", 1_024]
+ else
+ sym, unit = ["B", 1]
+ end
+
+ num = "%.1f" % [size_in_bytes.to_f / unit]
+ # check whether the rounded value has a zero after decimal point,
+ # if true, then display just the integer value.
+ if num.split(".").last.to_i == 0
+ "%d#{sym}" % num.to_i
+ else
+ "#{num}#{sym}"
+ end
+end
+
+def number_readable(number)
+ numstr = number.to_i.to_s
+ (numstr.size - 3).step(1, -3) { |i| numstr.insert(i, ",") }
+ numstr
+end | false |
Other | Homebrew | brew | 4b2eb86bbf5bb0ae76619e67be1bc99e8b68ee40.json | audit: allow whitelisting of versioned Kibana.
This commit modifies the whitelisting of the Kibama formula from the
npm audit check to allow the versioned Kibana formulae to receive the
same whitelisting.
Closes Homebrew/homebrew#47500.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/audit.rb | @@ -614,7 +614,7 @@ def audit_text
problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\""
end
- if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name != "kibana"
+ if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name !~ /^kibana(\d{2})?$/
need_npm = "\#{Formula[\"node\"].opt_libexec\}/npm/bin"
problem <<-EOS.undent
Please add ENV.prepend_path \"PATH\", \"#{need_npm}"\ to def install | false |
Other | Homebrew | brew | 2af64920fac8b892cc55cbfe9f6cd064def5a267.json | formula: pass sdk_path in std_cmake_args | Library/Homebrew/formula.rb | @@ -1047,6 +1047,7 @@ def std_cmake_args
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
+ -DCMAKE_OSX_SYSROOT=#{MacOS.sdk_path}
-Wno-dev
]
end | false |
Other | Homebrew | brew | 618123e4bfe09fe17e488a9386b353e55b77adf7.json | test-bot: skip more building.
There should be no compilation happening with `--fast`. | Library/Homebrew/cmd/test-bot.rb | @@ -553,11 +553,13 @@ def formula(formula_name)
unless changed_dependences.empty?
test "brew", "fetch", "--retry", "--build-bottle", *changed_dependences
- # Install changed dependencies as new bottles so we don't have checksum problems.
- test "brew", "install", "--build-bottle", *changed_dependences
- # Run postinstall on them because the tested formula might depend on
- # this step
- test "brew", "postinstall", *changed_dependences
+ unless ARGV.include?("--fast")
+ # Install changed dependencies as new bottles so we don't have checksum problems.
+ test "brew", "install", "--build-bottle", *changed_dependences
+ # Run postinstall on them because the tested formula might depend on
+ # this step
+ test "brew", "postinstall", *changed_dependences
+ end
end
test "brew", "fetch", "--retry", *fetch_args
test "brew", "uninstall", "--force", canonical_formula_name if formula.installed?
@@ -619,8 +621,10 @@ def formula(formula_name)
conflicts.each do |conflict|
test "brew", "unlink", conflict.name
end
- run_as_not_developer { test "brew", "install", dependent.name }
- next if steps.last.failed?
+ unless ARGV.include?("--fast")
+ run_as_not_developer { test "brew", "install", dependent.name }
+ next if steps.last.failed?
+ end
end
if dependent.installed?
test "brew", "test", "--verbose", dependent.name | false |
Other | Homebrew | brew | 1f0267bb6dfdfc1871a488b35fe7d2821b73ffac.json | SUPPORTERS.md: update a link.
Closes Homebrew/homebrew#47434.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | SUPPORTERS.md | @@ -325,7 +325,7 @@ These brilliant people supported our Kickstarter by giving us £15 or more:
* [Chuck Fouts](https://github.com/gnarl)
* [Chip Warden](https://twitter.com/lgw4)
* [Ethan Schoonover](http://ethanschoonover.com)
-* [Chi Trung Nguyen](http://www.napcaesmind.de)
+* [Chi Trung Nguyen](http://ctnguyen.net)
* [Danny Amey](http://www.dannyamey.com/)
* Oscar
* [Brian Pollack](http://www.protovate.com) | false |
Other | Homebrew | brew | b7e98b129cc19d0d4ce283a358785665ac100212.json | cmd/options.rb: move common code in options.rb
Closes Homebrew/homebrew#47423.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr> | Library/Homebrew/cmd/info.rb | @@ -1,6 +1,6 @@
require "blacklist"
require "caveats"
-require "cmd/options"
+require "options"
require "formula"
require "keg"
require "tab" | true |
Other | Homebrew | brew | b7e98b129cc19d0d4ce283a358785665ac100212.json | cmd/options.rb: move common code in options.rb
Closes Homebrew/homebrew#47423.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr> | Library/Homebrew/cmd/options.rb | @@ -1,4 +1,5 @@
require "formula"
+require "options"
module Homebrew
def options
@@ -24,12 +25,4 @@ def puts_options(formulae)
end
end
end
-
- def dump_options_for_formula(f)
- f.options.sort_by(&:flag).each do |opt|
- puts "#{opt.flag}\n\t#{opt.description}"
- end
- puts "--devel\n\tInstall development version #{f.devel.version}" if f.devel
- puts "--HEAD\n\tInstall HEAD version" if f.head
- end
end | true |
Other | Homebrew | brew | b7e98b129cc19d0d4ce283a358785665ac100212.json | cmd/options.rb: move common code in options.rb
Closes Homebrew/homebrew#47423.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr> | Library/Homebrew/options.rb | @@ -112,3 +112,13 @@ def inspect
"#<#{self.class.name}: #{to_a.inspect}>"
end
end
+
+module Homebrew
+ def dump_options_for_formula(f)
+ f.options.sort_by(&:flag).each do |opt|
+ puts "#{opt.flag}\n\t#{opt.description}"
+ end
+ puts "--devel\n\tInstall development version #{f.devel.version}" if f.devel
+ puts "--HEAD\n\tInstall HEAD version" if f.head
+ end
+end | true |
Other | Homebrew | brew | e865cee3d33e38485a46e1b88f8aa9466f31633f.json | Fix version parsing on URLs with no extensions | Library/Homebrew/test/test_versions.rb | @@ -361,4 +361,8 @@ def test_opam_version
assert_version_detected "1.0.2",
"https://opam.ocaml.org/archives/easy-format.1.0.2+opam.tar.gz"
end
+
+ def test_waf_version
+ assert_version_detected "1.8.12", "https://waf.io/waf-1.8.12"
+ end
end | true |
Other | Homebrew | brew | e865cee3d33e38485a46e1b88f8aa9466f31633f.json | Fix version parsing on URLs with no extensions | Library/Homebrew/version.rb | @@ -307,6 +307,10 @@ def self._parse(spec)
m = /[-_]((?:\d+\.)*\d\.\d+-(?:p|rc|RC)?\d+)(?:[-._](?:bin|dist|stable|src|sources))?$/.match(stem)
return m.captures.first unless m.nil?
+ # URL with no extension e.g. https://waf.io/waf-1.8.12
+ m = /-((?:\d+\.)*\d+)$/.match(spec_s)
+ return m.captures.first unless m.nil?
+
# e.g. lame-398-1
m = /-((?:\d)+-\d)/.match(stem)
return m.captures.first unless m.nil? | true |
Other | Homebrew | brew | 30455d0fb5fce2652ca8cadd5941aecccc611e5b.json | Formula-Cookbook: recommend gdm for go resources
Closes Homebrew/homebrew#46889.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com> | share/doc/homebrew/Formula-Cookbook.md | @@ -225,7 +225,7 @@ end
[jrnl](https://github.com/Homebrew/homebrew/blob/master/Library/Formula/jrnl.rb) is an example of a formula that does this well. The end result means the user doesn't have use `pip` or Python and can just run `jrnl`.
-[homebrew-pypi-poet](https://github.com/tdsmith/homebrew-pypi-poet) can help you generate resource stanzas for the dependencies of your Python application and [homebrew-go-resources](https://github.com/samertm/homebrew-go-resources) can help you generate go\_resource stanzas for the dependencies of your go application.
+[homebrew-pypi-poet](https://github.com/tdsmith/homebrew-pypi-poet) can help you generate resource stanzas for the dependencies of your Python application and [gdm](https://github.com/sparrc/gdm#homebrew) can help you generate go\_resource stanzas for the dependencies of your go application.
## Install the formula
| false |
Other | Homebrew | brew | e27bddc82ae85e94a2f0016b176ea2a9c6dd824d.json | IntegrationCommandTests: improve bottle test
Also let `cmd_output` capture `$stderr`
Closes Homebrew/homebrew#47383.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/test/test_integration_cmds.rb | @@ -1,5 +1,6 @@
require "bundler"
require "testing_env"
+require "core_formula_repository"
class IntegrationCommandTests < Homebrew::TestCase
def cmd_output(*args)
@@ -15,7 +16,21 @@ def cmd_output(*args)
ENV["HOMEBREW_BREW_FILE"] = HOMEBREW_PREFIX/"bin/brew"
ENV["HOMEBREW_INTEGRATION_TEST"] = args.join " "
ENV["HOMEBREW_TEST_TMPDIR"] = TEST_TMPDIR
- Utils.popen_read(RUBY_PATH, *cmd_args).chomp
+ read, write = IO.pipe
+ begin
+ pid = fork do
+ read.close
+ $stdout.reopen(write)
+ $stderr.reopen(write)
+ write.close
+ exec RUBY_PATH, *cmd_args
+ end
+ write.close
+ read.read.chomp
+ ensure
+ Process.wait(pid)
+ read.close
+ end
end
end
@@ -89,17 +104,26 @@ def test_install
def test_bottle
cmd("install", "--build-bottle", testball)
+ assert_match "Formula not from core or any taps",
+ cmd_fail("bottle", "--no-revision", testball)
+ formula_file = CoreFormulaRepository.new.formula_dir/"testball.rb"
+ formula_file.write <<-EOS.undent
+ class Testball < Formula
+ url "https://example.com/testabll-0.1.tar.gz"
+ end
+ EOS
HOMEBREW_CACHE.cd do
- assert_match(/testball-0\.1.*\.bottle\.tar\.gz/,
- cmd_output("bottle", "--no-revision", testball))
+ assert_match /testball-0\.1.*\.bottle\.tar\.gz/,
+ cmd_output("bottle", "--no-revision", "testball")
end
ensure
- cmd("uninstall", "--force", testball)
+ cmd("uninstall", "--force", "testball")
cmd("cleanup", "--force", "--prune=all")
+ formula_file.unlink
end
def test_uninstall
- cmd("install", "--build-bottle", testball)
+ cmd("install", testball)
assert_match "Uninstalling testball", cmd("uninstall", "--force", testball)
ensure
cmd("cleanup", "--force", "--prune=all") | false |
Other | Homebrew | brew | f37f8b5c7ac97f5c370c55d3c2a447766bdc90c2.json | bottle: prevent bottling formula outside core or taps
Closes Homebrew/homebrew#47233. | Library/Homebrew/cmd/bottle.rb | @@ -149,6 +149,10 @@ def bottle_formula(f)
return ofail "Formula not installed or up-to-date: #{f.full_name}"
end
+ unless f.tap
+ return ofail "Formula not from core or any taps: #{f.full_name}"
+ end
+
if f.bottle_disabled?
ofail "Formula has disabled bottle: #{f.full_name}"
puts f.bottle_disable_reason | false |
Other | Homebrew | brew | c318a9a03e2cf70c946c60e4807813d1efd417a5.json | tap: improve arguments resolution
* Use `ARGV.include?` instead of `ARGV.first ==`, so users can pass
`-v`/`-d` before the function flags(i.e. `--list-pinned` etc)
* Restore the ability to call `brew tap --flags tap/name`. | Library/Homebrew/cmd/tap.rb | @@ -3,18 +3,18 @@
module Homebrew
def tap
- if ARGV.empty?
- puts Tap.names
- elsif ARGV.first == "--repair"
+ if ARGV.include? "--repair"
Tap.each(&:link_manpages)
migrate_taps :force => true
- elsif ARGV.first == "--list-official"
+ elsif ARGV.include? "--list-official"
require "official_taps"
puts OFFICIAL_TAPS.map { |t| "homebrew/#{t}" }
- elsif ARGV.first == "--list-pinned"
+ elsif ARGV.include? "--list-pinned"
puts Tap.select(&:pinned?).map(&:name)
+ elsif ARGV.named.empty?
+ puts Tap.names
else
- tap = Tap.fetch(ARGV[0])
+ tap = Tap.fetch(ARGV.named[0])
begin
tap.install(:clone_target => ARGV.named[1],
:full_clone => ARGV.include?("--full")) | false |
Other | Homebrew | brew | 86bd9c9f39fbe4aa88791f3973d41b26ac37e036.json | tests: pass --trace and named args to rake
Closes Homebrew/homebrew#47279.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr> | Library/Homebrew/cmd/tests.rb | @@ -4,11 +4,19 @@ def tests
ENV["TESTOPTS"] = "-v" if ARGV.verbose?
ENV["HOMEBREW_TESTS_COVERAGE"] = "1" if ARGV.include? "--coverage"
ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat"
+
Homebrew.install_gem_setup_path! "bundler"
- quiet_system("bundle", "check") || \
- system("bundle", "install", "--path", "vendor/bundle")
- system "bundle", "exec", "rake", "test"
+ unless quiet_system("bundle", "check")
+ system "bundle", "install", "--path", "vendor/bundle"
+ end
+
+ args = []
+ args << "--trace" if ARGV.include? "--trace"
+ args += ARGV.named
+ system "bundle", "exec", "rake", "test", *args
+
Homebrew.failed = !$?.success?
+
if (fs_leak_log = HOMEBREW_LIBRARY/"Homebrew/test/fs_leak_log").file?
fs_leak_log_content = fs_leak_log.read
unless fs_leak_log_content.empty? | false |
Other | Homebrew | brew | 28776ee1c342c4be755a597812d47d547238a08b.json | tests: add coveralls support
Closes Homebrew/homebrew#47185.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/test/.simplecov | @@ -23,3 +23,8 @@ if name = ENV["HOMEBREW_INTEGRATION_TEST"]
exit! exit_code
end
end
+
+if RUBY_VERSION.split(".").first.to_i >= 2 && !ENV["HOMEBREW_INTEGRATION_TEST"]
+ require "coveralls"
+ Coveralls.wear!
+end | true |
Other | Homebrew | brew | 28776ee1c342c4be755a597812d47d547238a08b.json | tests: add coveralls support
Closes Homebrew/homebrew#47185.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/test/Gemfile | @@ -4,3 +4,4 @@ gem "mocha", "~> 1.1"
gem "minitest", "~> 5.3"
gem "rake", "~> 10.3"
gem "simplecov", "~> 0.10.0", :require => false
+gem "coveralls", "0.8.9", :require => false | true |
Other | Homebrew | brew | 28776ee1c342c4be755a597812d47d547238a08b.json | tests: add coveralls support
Closes Homebrew/homebrew#47185.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/test/Gemfile.lock | @@ -1,24 +1,42 @@
GEM
remote: https://rubygems.org/
specs:
+ coveralls (0.8.9)
+ json (~> 1.8)
+ rest-client (>= 1.6.8, < 2)
+ simplecov (~> 0.10.0)
+ term-ansicolor (~> 1.3)
+ thor (~> 0.19.1)
+ tins (~> 1.6.0)
docile (1.1.5)
json (1.8.3)
metaclass (0.0.4)
- minitest (5.7.0)
+ mime-types (1.25.1)
+ minitest (5.8.3)
mocha (1.1.0)
metaclass (~> 0.0.1)
rake (10.4.2)
+ rest-client (1.6.9)
+ mime-types (~> 1.16)
simplecov (0.10.0)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
+ term-ansicolor (1.3.2)
+ tins (~> 1.0)
+ thor (0.19.1)
+ tins (1.6.0)
PLATFORMS
ruby
DEPENDENCIES
+ coveralls (= 0.8.9)
minitest (~> 5.3)
mocha (~> 1.1)
rake (~> 10.3)
simplecov (~> 0.10.0)
+
+BUNDLED WITH
+ 1.11.2 | true |
Other | Homebrew | brew | 51efa46fcc91f4cc635ed8b7bd77a0a35f7656b6.json | test-bot: enable coverage on travis | Library/Homebrew/cmd/test-bot.rb | @@ -651,9 +651,13 @@ def homebrew
if @tap
test "brew", "readall", @tap.name
else
- test "brew", "tests", "--no-compat"
+ tests_args = ["--no-compat"]
readall_args = ["--aliases"]
- readall_args << "--syntax" if RUBY_VERSION.split(".").first.to_i >= 2
+ if RUBY_VERSION.split(".").first.to_i >= 2
+ tests_args << "--coverage" if ENV["TRAVIS"]
+ readall_args << "--syntax"
+ end
+ test "brew", "tests", *tests_args
test "brew", "readall", *readall_args
test "brew", "update-test"
end | false |
Other | Homebrew | brew | ef7a5cfa3acd85efc55b6aff97f55ddecb238b8b.json | Tap#unlink_manpages: fix symlink path | Library/Homebrew/tap.rb | @@ -196,7 +196,7 @@ def unlink_manpages
return unless (path/"man").exist?
(path/"man").find do |src|
next if src.directory?
- dst = HOMEBREW_PREFIX/src.relative_path_from(path)
+ dst = HOMEBREW_PREFIX/"share"/src.relative_path_from(path)
dst.delete if dst.symlink? && src == dst.resolved_path
dst.parent.rmdir_if_possible
end | false |
Other | Homebrew | brew | 7efae4635be1eec5dad066d2c52616a48f890700.json | Tap#unpin: remove PinnedTaps directory if it's empty | Library/Homebrew/tap.rb | @@ -299,6 +299,7 @@ def unpin
raise TapPinStatusError.new(name, false) unless pinned?
pinned_symlink_path.delete
pinned_symlink_path.parent.rmdir_if_possible
+ pinned_symlink_path.parent.parent.rmdir_if_possible
@pinned = false
end
| false |
Other | Homebrew | brew | f72d4f17221e2c313e7076ac0b7b79c0a76018dd.json | readall: use Tap object to locate alias directory
Let's hide implementation detail on where to find alias directory.
This will benefit future core code and formulae separation.
Also let `brew readall` check aliases for all taps. | Library/Homebrew/cmd/readall.rb | @@ -33,22 +33,29 @@ def readall
Homebrew.failed = failed
end
- if ARGV.delete("--aliases")
- Pathname.glob("#{HOMEBREW_LIBRARY}/Aliases/*").each do |f|
- next unless f.symlink?
- next if f.file?
- onoe "Broken alias: #{f}"
- Homebrew.failed = true
- end
- end
-
formulae = []
+ alias_dirs = []
if ARGV.named.empty?
formulae = Formula.files
+ alias_dirs = Tap.map(&:alias_dir)
+ alias_dirs.unshift CoreFormulaRepository.instance.alias_dir
else
tap = Tap.fetch(ARGV.named.first)
raise TapUnavailableError, tap.name unless tap.installed?
formulae = tap.formula_files
+ alias_dirs = [tap.alias_dir]
+ end
+
+ if ARGV.delete("--aliases")
+ alias_dirs.each do |alias_dir|
+ next unless alias_dir.directory?
+ Pathname.glob("#{alias_dir}/*").each do |f|
+ next unless f.symlink?
+ next if f.file?
+ onoe "Broken alias: #{f}"
+ Homebrew.failed = true
+ end
+ end
end
formulae.each do |file| | false |
Other | Homebrew | brew | b331e03c39f247beeee8c6083745d48b35b138f4.json | env: add java_cache env | Library/Homebrew/extend/ENV/shared.rb | @@ -240,6 +240,10 @@ def fortran
set_cpu_flags(flags)
end
+ def java_cache
+ append "_JAVA_OPTIONS", "-Duser.home=#{HOMEBREW_CACHE}/java_cache"
+ end
+
# ld64 is a newer linker provided for Xcode 2.5
# @private
def ld64 | false |
Other | Homebrew | brew | 6d802d808727e3e13aeab93ef5fac7ee831fca07.json | travis: use Xcode 7.2 on 10.11 and 7.1.1 on 10.10
Closes Homebrew/homebrew#47056.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de> | .travis.yml | @@ -4,11 +4,11 @@ matrix:
include:
- env: OSX=10.11
os: osx
- osx_image: osx10.11
+ osx_image: xcode7.2
rvm: system
- env: OSX=10.10
os: osx
- osx_image: xcode7
+ osx_image: xcode7.1
rvm: system
- env: OSX=10.9 HOMEBREW_RUBY=1.8.7
os: osx | false |
Other | Homebrew | brew | 02cd2c899a02b1271cf6e4dd8ce816e5513d9f9c.json | bottle: fix Ruby 1.8 breakage
`OpenStruct` (of which `Tab` is a subclass) doesn't support subscripting
with square brackets. Use normal dot notation to restore compatibility. | Library/Homebrew/cmd/bottle.rb | @@ -203,9 +203,9 @@ def bottle_formula(f)
tab = Tab.for_keg(keg)
original_tab = tab.dup
- tab["poured_from_bottle"] = false
- tab["HEAD"] = nil
- tab["time"] = nil
+ tab.poured_from_bottle = false
+ tab.HEAD = nil
+ tab.time = nil
tab.write
keg.find {|k| File.utime(File.atime(k), formula_source_time, k) } | false |
Other | Homebrew | brew | e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json | Allow multiple option_names in dep/reqs.
This means that dependencies can be merged but still maintain all
their option names.
Closes Homebrew/homebrew#46916.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/build_options.rb | @@ -24,21 +24,23 @@ def include?(name)
# args << "--with-example1"
# end</pre>
def with?(val)
- name = val.respond_to?(:option_name) ? val.option_name : val
+ option_names = val.respond_to?(:option_names) ? val.option_names : [val]
- if option_defined? "with-#{name}"
- include? "with-#{name}"
- elsif option_defined? "without-#{name}"
- !include? "without-#{name}"
- else
- false
+ option_names.any? do |name|
+ if option_defined? "with-#{name}"
+ include? "with-#{name}"
+ elsif option_defined? "without-#{name}"
+ !include? "without-#{name}"
+ else
+ false
+ end
end
end
# True if a {Formula} is being built without a specific option.
# <pre>args << "--no-spam-plz" if build.without? "spam"
- def without?(name)
- !with? name
+ def without?(val)
+ !with?(val)
end
# True if a {Formula} is being built as a bottle (i.e. binary package). | true |
Other | Homebrew | brew | e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json | Allow multiple option_names in dep/reqs.
This means that dependencies can be merged but still maintain all
their option names.
Closes Homebrew/homebrew#46916.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/dependency.rb | @@ -4,15 +4,15 @@
class Dependency
include Dependable
- attr_reader :name, :tags, :env_proc, :option_name
+ attr_reader :name, :tags, :env_proc, :option_names
DEFAULT_ENV_PROC = proc {}
- def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_name = name)
+ def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_names = [name])
@name = name
@tags = tags
@env_proc = env_proc
- @option_name = option_name
+ @option_names = option_names
end
def to_s
@@ -125,7 +125,8 @@ def merge_repeats(all)
deps = grouped.fetch(name)
dep = deps.first
tags = deps.flat_map(&:tags).uniq
- dep.class.new(name, tags, dep.env_proc)
+ option_names = deps.flat_map(&:option_names).uniq
+ dep.class.new(name, tags, dep.env_proc, option_names)
end
end
end
@@ -134,9 +135,9 @@ def merge_repeats(all)
class TapDependency < Dependency
attr_reader :tap
- def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_name = name.split("/").last)
+ def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_names = [name.split("/").last])
@tap = name.rpartition("/").first
- super(name, tags, env_proc, option_name)
+ super(name, tags, env_proc, option_names)
end
def installed? | true |
Other | Homebrew | brew | e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json | Allow multiple option_names in dep/reqs.
This means that dependencies can be merged but still maintain all
their option names.
Closes Homebrew/homebrew#46916.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/requirement.rb | @@ -10,7 +10,6 @@ class Requirement
include Dependable
attr_reader :tags, :name, :cask, :download, :default_formula
- alias_method :option_name, :name
def initialize(tags = [])
@default_formula = self.class.default_formula
@@ -26,6 +25,10 @@ def initialize(tags = [])
@name ||= infer_name
end
+ def option_names
+ [name]
+ end
+
# The message to show when the requirement is not met.
def message
s = "" | true |
Other | Homebrew | brew | e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json | Allow multiple option_names in dep/reqs.
This means that dependencies can be merged but still maintain all
their option names.
Closes Homebrew/homebrew#46916.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/software_spec.rb | @@ -185,12 +185,12 @@ def add_legacy_patches(list)
end
def add_dep_option(dep)
- name = dep.option_name
-
- if dep.optional? && !option_defined?("with-#{name}")
- options << Option.new("with-#{name}", "Build with #{name} support")
- elsif dep.recommended? && !option_defined?("without-#{name}")
- options << Option.new("without-#{name}", "Build without #{name} support")
+ dep.option_names.each do |name|
+ if dep.optional? && !option_defined?("with-#{name}")
+ options << Option.new("with-#{name}", "Build with #{name} support")
+ elsif dep.recommended? && !option_defined?("without-#{name}")
+ options << Option.new("without-#{name}", "Build without #{name} support")
+ end
end
end
end | true |
Other | Homebrew | brew | e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json | Allow multiple option_names in dep/reqs.
This means that dependencies can be merged but still maintain all
their option names.
Closes Homebrew/homebrew#46916.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/tab.rb | @@ -147,12 +147,15 @@ def self.empty
end
def with?(val)
- name = val.respond_to?(:option_name) ? val.option_name : val
- include?("with-#{name}") || unused_options.include?("without-#{name}")
+ option_names = val.respond_to?(:option_names) ? val.option_names : [val]
+
+ option_names.any? do |name|
+ include?("with-#{name}") || unused_options.include?("without-#{name}")
+ end
end
- def without?(name)
- !with? name
+ def without?(val)
+ !with?(val)
end
def include?(opt) | true |
Other | Homebrew | brew | e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json | Allow multiple option_names in dep/reqs.
This means that dependencies can be merged but still maintain all
their option names.
Closes Homebrew/homebrew#46916.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/test/test_dependency.rb | @@ -49,13 +49,13 @@ def test_merge_repeats
foo_named_dep = merged.find {|d| d.name == "foo"}
assert_equal [:build, "bar"], foo_named_dep.tags
- assert_includes foo_named_dep.option_name, "foo"
- assert_includes foo_named_dep.option_name, "foo2"
+ assert_includes foo_named_dep.option_names, "foo"
+ assert_includes foo_named_dep.option_names, "foo2"
xyz_named_dep = merged.find {|d| d.name == "xyz"}
assert_equal ["abc"], xyz_named_dep.tags
- assert_includes xyz_named_dep.option_name, "foo"
- refute_includes xyz_named_dep.option_name, "foo2"
+ assert_includes xyz_named_dep.option_names, "foo"
+ refute_includes xyz_named_dep.option_names, "foo2"
end
def test_equality
@@ -73,8 +73,8 @@ def test_equality
end
class TapDependencyTests < Homebrew::TestCase
- def test_option_name
+ def test_option_names
dep = TapDependency.new("foo/bar/dog")
- assert_equal "dog", dep.option_name
+ assert_equal %w[dog], dep.option_names
end
end | true |
Other | Homebrew | brew | e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802.json | Allow multiple option_names in dep/reqs.
This means that dependencies can be merged but still maintain all
their option names.
Closes Homebrew/homebrew#46916.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/test/test_requirement.rb | @@ -14,9 +14,9 @@ def test_accepts_multiple_tags
assert_equal %w[bar baz].sort, dep.tags.sort
end
- def test_option_name
+ def test_option_names
dep = TestRequirement.new
- assert_equal "test", dep.option_name
+ assert_equal %w[test], dep.option_names
end
def test_preserves_symbol_tags | true |
Other | Homebrew | brew | 7095378b31374323d613de448901731ed2b87b63.json | Add option_name tests. | Library/Homebrew/test/test_build_options.rb | @@ -20,6 +20,7 @@ def test_with_without
assert @build.with?("bar")
assert @build.with?("baz")
assert @build.without?("qux")
+ assert @build.without?("xyz")
end
def test_used_options | true |
Other | Homebrew | brew | 7095378b31374323d613de448901731ed2b87b63.json | Add option_name tests. | Library/Homebrew/test/test_dependency.rb | @@ -52,3 +52,10 @@ def test_equality
refute_eql foo1, foo3
end
end
+
+class TapDependencyTests < Homebrew::TestCase
+ def test_option_name
+ dep = TapDependency.new("foo/bar/dog")
+ assert_equal "dog", dep.option_name
+ end
+end | true |
Other | Homebrew | brew | 7095378b31374323d613de448901731ed2b87b63.json | Add option_name tests. | Library/Homebrew/test/test_requirement.rb | @@ -2,6 +2,8 @@
require "requirement"
class RequirementTests < Homebrew::TestCase
+ class TestRequirement < Requirement; end
+
def test_accepts_single_tag
dep = Requirement.new(%w[bar])
assert_equal %w[bar], dep.tags
@@ -12,6 +14,11 @@ def test_accepts_multiple_tags
assert_equal %w[bar baz].sort, dep.tags.sort
end
+ def test_option_name
+ dep = TestRequirement.new
+ assert_equal "test", dep.option_name
+ end
+
def test_preserves_symbol_tags
dep = Requirement.new([:build])
assert_equal [:build], dep.tags | true |
Other | Homebrew | brew | 4a89cfb1dc75a1fae98809868b26d98eda1f8c6f.json | man: remove broken --verbose functionality | Library/Homebrew/cmd/man.rb | @@ -25,15 +25,12 @@ def man
puts "Writing HTML fragments to #{DOC_PATH}"
puts "Writing manpages to #{TARGET_PATH}"
- target_file = nil
Dir["#{SOURCE_PATH}/*.md"].each do |source_file|
target_html = DOC_PATH/"#{File.basename(source_file, ".md")}.html"
safe_system "ronn --fragment --pipe --organization='Homebrew' --manual='brew' #{source_file} > #{target_html}"
target_man = TARGET_PATH/File.basename(source_file, ".md")
safe_system "ronn --roff --pipe --organization='Homebrew' --manual='brew' #{source_file} > #{target_man}"
end
-
- system "man", target_file if ARGV.flag? "--verbose"
end
end
end | false |
Other | Homebrew | brew | 3cc101ec5ea20f46e104aba26d3dc16b7d763fca.json | pull: use tap object
Fix the regression introduced by Homebrew/homebrew#46735. | Library/Homebrew/cmd/pull.rb | @@ -6,13 +6,6 @@
require "cmd/tap"
module Homebrew
- HOMEBREW_PULL_API_REGEX = %r{https://api\.github\.com/repos/([\w-]+)/homebrew(-[\w-]+)?/pulls/(\d+)}
-
- def tap(arg)
- match = arg.match(%r{homebrew-([\w-]+)/})
- match[1].downcase if match
- end
-
def pull_url(url)
# GitHub provides commits/pull-requests raw patches using this URL.
url += ".patch"
@@ -61,37 +54,31 @@ def pull
ARGV.named.each do |arg|
if arg.to_i > 0
- url = "https://github.com/Homebrew/homebrew/pull/#{arg}"
issue = arg
+ url = "https://github.com/Homebrew/homebrew/pull/#{arg}"
+ tap = CoreFormulaRepository.instance
elsif (testing_match = arg.match %r{brew.sh/job/Homebrew.*Testing/(\d+)/})
_, testing_job = *testing_match
url = "https://github.com/Homebrew/homebrew/compare/master...BrewTestBot:testing-#{testing_job}"
+ tap = CoreFormulaRepository.instance
odie "Testing URLs require `--bottle`!" unless ARGV.include?("--bottle")
+ elsif (api_match = arg.match HOMEBREW_PULL_API_REGEX)
+ _, user, repo, issue = *api_match
+ url = "https://github.com/#{user}/homebrew#{repo}/pull/#{issue}"
+ tap = Tap.fetch(user, "homebrew#{repo}")
+ elsif (url_match = arg.match HOMEBREW_PULL_OR_COMMIT_URL_REGEX)
+ url, user, repo, issue = *url_match
+ tap = Tap.fetch(user, "homebrew#{repo}")
else
- if (api_match = arg.match HOMEBREW_PULL_API_REGEX)
- _, user, tap, pull = *api_match
- arg = "https://github.com/#{user}/homebrew#{tap}/pull/#{pull}"
- end
-
- url_match = arg.match HOMEBREW_PULL_OR_COMMIT_URL_REGEX
- odie "Not a GitHub pull request or commit: #{arg}" unless url_match
-
- url = url_match[0]
- issue = url_match[3]
+ odie "Not a GitHub pull request or commit: #{arg}"
end
if !testing_job && ARGV.include?("--bottle") && issue.nil?
raise "No pull request detected!"
end
- if !testing_job && tap_name = tap(url)
- user = url_match[1].downcase
- tap_dir = HOMEBREW_REPOSITORY/"Library/Taps/#{user}/homebrew-#{tap_name}"
- safe_system "brew", "tap", "#{user}/#{tap_name}" unless tap_dir.exist?
- Dir.chdir tap_dir
- else
- Dir.chdir HOMEBREW_REPOSITORY
- end
+ tap.install unless tap.installed?
+ Dir.chdir tap.path
# The cache directory seems like a good place to put patches.
HOMEBREW_CACHE.mkpath
@@ -108,15 +95,9 @@ def pull
changed_formulae = []
- if tap_dir
- formula_dir = %w[Formula HomebrewFormula].find { |d| tap_dir.join(d).directory? } || ""
- else
- formula_dir = "Library/Formula"
- end
-
Utils.popen_read(
"git", "diff-tree", "-r", "--name-only",
- "--diff-filter=AM", revision, "HEAD", "--", formula_dir
+ "--diff-filter=AM", revision, "HEAD", "--", tap.formula_dir.to_s
).each_line do |line|
name = File.basename(line.chomp, ".rb")
@@ -170,10 +151,10 @@ def pull
url
else
bottle_branch = "pull-bottle-#{issue}"
- if tap_name
- "https://github.com/BrewTestBot/homebrew-#{tap_name}/compare/homebrew:master...pr-#{issue}"
- else
+ if tap.core_formula_repository?
"https://github.com/BrewTestBot/homebrew/compare/homebrew:master...pr-#{issue}"
+ else
+ "https://github.com/BrewTestBot/homebrew-#{tap.repo}/compare/homebrew:master...pr-#{issue}"
end
end
curl "--silent", "--fail", "-o", "/dev/null", "-I", bottle_commit_url
@@ -190,7 +171,7 @@ def pull
bintray_key = ENV["BINTRAY_KEY"]
if bintray_user && bintray_key
- repo = Bintray.repository(tap_name)
+ repo = Bintray.repository(tap)
changed_formulae.each do |f|
next if f.bottle_unneeded? || f.bottle_disabled?
ohai "Publishing on Bintray:" | true |
Other | Homebrew | brew | 3cc101ec5ea20f46e104aba26d3dc16b7d763fca.json | pull: use tap object
Fix the regression introduced by Homebrew/homebrew#46735. | Library/Homebrew/global.rb | @@ -41,6 +41,7 @@ module Homebrew
alias_method :failed?, :failed
end
+HOMEBREW_PULL_API_REGEX = %r{https://api\.github\.com/repos/([\w-]+)/homebrew(-[\w-]+)?/pulls/(\d+)}
HOMEBREW_PULL_OR_COMMIT_URL_REGEX = %r[https://github\.com/([\w-]+)/homebrew(-[\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})]
require "compat" unless ARGV.include?("--no-compat") || ENV["HOMEBREW_NO_COMPAT"] | true |
Other | Homebrew | brew | 43713afa5f87d15c4ab82602c27d17cea65dd62c.json | test-bot: remove dead code | Library/Homebrew/cmd/test-bot.rb | @@ -898,9 +898,7 @@ def test_bot
safe_system "brew", "tap", tap.name
end
- if ARGV.include? "--ci-reset-and-update"
- return test_bot_ci_reset_and_update
- elsif ARGV.include? "--ci-upload"
+ if ARGV.include? "--ci-upload"
return test_ci_upload(tap)
end
| false |
Other | Homebrew | brew | 5773ca64c509094b261bdcfc43cadc9c8fd566c5.json | test-bot: fix Bintray url for bottle uploading | Library/Homebrew/cmd/test-bot.rb | @@ -830,11 +830,7 @@ def test_ci_upload(tap)
tag = pr ? "pr-#{pr}" : "testing-#{number}"
safe_system "git", "push", "--force", remote, "master:master", ":refs/tags/#{tag}"
- bintray_repo = if tap.nil?
- Bintray.repository(tap)
- else
- Bintray.repository(tap.name)
- end
+ bintray_repo = Bintray.repository(tap)
bintray_repo_url = "https://api.bintray.com/packages/homebrew/#{bintray_repo}"
formula_packaged = {}
| false |
Other | Homebrew | brew | 65b197d2e085e683b56b504b4981247ed6d33949.json | test-bot: fix tap URL detection from Jenkins. | Library/Homebrew/cmd/test-bot.rb | @@ -56,7 +56,7 @@ def resolve_test_tap
# Also can get tap from Jenkins GIT_URL.
url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/")
begin
- tap = Tap.fetch(tap)
+ tap = Tap.fetch(url_path)
return tap unless tap.core_formula_repository?
rescue
end | false |
Other | Homebrew | brew | e3dcf7776ab5854cf7e0e28527cc70b79aec2c60.json | Revert "test-bot: remove dead code."
This reverts commit 373da8666e633b06d8a5bb98621461b700f4b2d7. | Library/Homebrew/cmd/test-bot.rb | @@ -52,6 +52,16 @@ def resolve_test_tap
end
end
+ if git_url = ENV["UPSTREAM_GIT_URL"] || ENV["GIT_URL"]
+ # Also can get tap from Jenkins GIT_URL.
+ url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/")
+ begin
+ tap = Tap.fetch(tap)
+ return tap unless tap.core_formula_repository?
+ rescue
+ end
+ end
+
# return nil means we are testing core repo.
end
| false |
Other | Homebrew | brew | 50dc5f7a3db7af2ff222c756e06fa0debf46b4ef.json | os/mac/xcode: expect xcode 7.2 | Library/Homebrew/os/mac/xcode.rb | @@ -14,12 +14,12 @@ def latest_version
when "10.7" then "4.6.3"
when "10.8" then "5.1.1"
when "10.9" then "6.2"
- when "10.10" then "7.1.1"
- when "10.11" then "7.1.1"
+ when "10.10" then "7.2"
+ when "10.11" then "7.2"
else
# Default to newest known version of Xcode for unreleased OSX versions.
if OS::Mac.prerelease?
- "7.1.1"
+ "7.2"
else
raise "OS X '#{MacOS.version}' is invalid"
end
@@ -165,8 +165,8 @@ def installed?
def latest_version
case MacOS.version
- when "10.11" then "700.1.76"
- when "10.10" then "700.1.76"
+ when "10.11" then "700.1.81"
+ when "10.10" then "700.1.81"
when "10.9" then "600.0.57"
when "10.8" then "503.0.40"
else | false |
Other | Homebrew | brew | 6b42a0c1f535676a63cba4e09ebc8e1c618eaf41.json | os/mac: add xcode 7.2 | Library/Homebrew/os/mac.rb | @@ -263,6 +263,7 @@ def preferred_arch
"7.0.1" => { :clang => "7.0", :clang_build => 700 },
"7.1" => { :clang => "7.0", :clang_build => 700 },
"7.1.1" => { :clang => "7.0", :clang_build => 700 },
+ "7.2" => { :clang => "7.0", :clang_build => 700 },
}
def compilers_standard? | false |
Other | Homebrew | brew | 233a38ac9542db8eff93ffbcb305694da875bb69.json | brew.rb: improve handling of --version/-v option
Make both `--version` and `-v` print the Homebrew version and exit, if
provided as first and sole argument. `brew --version` no longer accepts
additional arguments (they were previously ignored). Otherwise interpret
`brew -v <arguments>` as if `brew <arguments> -v` was executed instead
(no change here), but no longer print a line with the Homebrew version.
Closes Homebrew/homebrew#46790.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de> | Library/brew.rb | @@ -14,15 +14,12 @@
$:.unshift(HOMEBREW_LIBRARY_PATH.to_s)
require "global"
-if ARGV.first == "--version"
- puts Homebrew.homebrew_version_string
+if ARGV == %w[--version] || ARGV == %w[-v]
+ puts "Homebrew #{Homebrew.homebrew_version_string}"
exit 0
elsif ARGV.first == "-v"
- puts "Homebrew #{Homebrew.homebrew_version_string}"
# Shift the -v to the end of the parameter list
ARGV << ARGV.shift
- # If no other arguments, just quit here.
- exit 0 if ARGV.length == 1
end
if OS.mac? | false |
Other | Homebrew | brew | 85181a067f0f79599d149775f8b2b57fa7388bfa.json | manpage: remove superfluous spaces for consistency
All other alternatives already don't use spaces around the pipe symbol.
Closes Homebrew/homebrew#46825.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de> | Library/Homebrew/manpages/brew.1.md | @@ -29,7 +29,7 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
* `list`:
List all installed formulae.
- * `search` <text> | `/`<text>`/`:
+ * `search` <text>|`/`<text>`/`:
Perform a substring search of formula names for <text>. If <text> is
surrounded with slashes, then it is interpreted as a regular expression.
The search for <text> is extended online to some popular taps. | true |
Other | Homebrew | brew | 85181a067f0f79599d149775f8b2b57fa7388bfa.json | manpage: remove superfluous spaces for consistency
All other alternatives already don't use spaces around the pipe symbol.
Closes Homebrew/homebrew#46825.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de> | share/doc/homebrew/brew.1.html | @@ -25,7 +25,7 @@ <h2 id="ESSENTIAL-COMMANDS">ESSENTIAL COMMANDS</h2>
<dt><code>remove</code> <var>formula</var></dt><dd><p>Uninstall <var>formula</var>.</p></dd>
<dt class="flush"><code>update</code></dt><dd><p>Fetch the newest version of Homebrew from GitHub using <code>git</code>(1).</p></dd>
<dt class="flush"><code>list</code></dt><dd><p>List all installed formulae.</p></dd>
-<dt><code>search</code> <var>text</var> | <code>/</code><var>text</var><code>/</code></dt><dd><p>Perform a substring search of formula names for <var>text</var>. If <var>text</var> is
+<dt><code>search</code> <var>text</var>|<code>/</code><var>text</var><code>/</code></dt><dd><p>Perform a substring search of formula names for <var>text</var>. If <var>text</var> is
surrounded with slashes, then it is interpreted as a regular expression.
The search for <var>text</var> is extended online to some popular taps.
If no search term is given, all locally available formulae are listed.</p></dd> | true |
Other | Homebrew | brew | 85181a067f0f79599d149775f8b2b57fa7388bfa.json | manpage: remove superfluous spaces for consistency
All other alternatives already don't use spaces around the pipe symbol.
Closes Homebrew/homebrew#46825.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de> | share/man/man1/brew.1 | @@ -38,7 +38,7 @@ Fetch the newest version of Homebrew from GitHub using \fBgit\fR(1)\.
List all installed formulae\.
.
.TP
-\fBsearch\fR \fItext\fR | \fB/\fR\fItext\fR\fB/\fR
+\fBsearch\fR \fItext\fR|\fB/\fR\fItext\fR\fB/\fR
Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is surrounded with slashes, then it is interpreted as a regular expression\. The search for \fItext\fR is extended online to some popular taps\. If no search term is given, all locally available formulae are listed\.
.
.SH "COMMANDS" | true |
Other | Homebrew | brew | 8144f90eac3103c369af1435440c7387ab583091.json | manpage: fix formatting of command list
Restore definition list in `COMMANDS` section, thus massively improve
formatting. In theory, `ronn` supports nested (definition) lists. In
practice, this does not work (and is unlikely to be fixed soon because
upstream seems to be rather inactive) causing the entire definition list
to be longer recognized because of a single nested list. Work around by
rearranging the `tap` documentation (sole command with a nested list). | Library/Homebrew/manpages/brew.1.md | @@ -377,21 +377,21 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
* `switch` <name> <version>:
Symlink all of the specific <version> of <name>'s install to Homebrew prefix.
- * `tap` [`--full`] <user>`/`<repo> [<URL>]:
- Tap a formula repository or list existing taps. This command can be invoked
- in three ways.
+ * `tap`:
+ List all installed taps.
- + `tap` without arguments displays existing taps.
+ * `tap` [`--full`] <user>`/`<repo> [<URL>]:
+ Tap a formula repository.
- + `tap` <user>`/`<repo> taps a formula repository from GitHub using HTTPS.
- Since so many taps are hosted on GitHub, this command is a shortcut for
- `tap <user>/<repo> https://github.com/<user>/homebrew-<repo>`.
+ With <URL> unspecified, taps a formula repository from GitHub using HTTPS.
+ Since so many taps are hosted on GitHub, this command is a shortcut for
+ `tap <user>/<repo> https://github.com/<user>/homebrew-<repo>`.
- + `tap` <user>`/`<repo> <URL> taps a formula repository from anywhere, using
- any transport protocol that `git` handles. The one-argument form of `tap`
- simplifies but also limits. This two-argument command makes no
- assumptions, so taps can be cloned from places other than GitHub and
- using protocols other than HTTPS, e.g., SSH, GIT, HTTP, FTP(S), RSYNC.
+ With <URL> specified, taps a formula repository from anywhere, using
+ any transport protocol that `git` handles. The one-argument form of `tap`
+ simplifies but also limits. This two-argument command makes no
+ assumptions, so taps can be cloned from places other than GitHub and
+ using protocols other than HTTPS, e.g., SSH, GIT, HTTP, FTP(S), RSYNC.
By default, the repository is cloned as a shallow copy (`--depth=1`), but
if `--full` is passed, a full clone will be used. | true |
Other | Homebrew | brew | 8144f90eac3103c369af1435440c7387ab583091.json | manpage: fix formatting of command list
Restore definition list in `COMMANDS` section, thus massively improve
formatting. In theory, `ronn` supports nested (definition) lists. In
practice, this does not work (and is unlikely to be fixed soon because
upstream seems to be rather inactive) causing the entire definition list
to be longer recognized because of a single nested list. Work around by
rearranging the `tap` documentation (sole command with a nested list). | share/doc/homebrew/brew.1.html | @@ -34,9 +34,8 @@ <h2 id="ESSENTIAL-COMMANDS">ESSENTIAL COMMANDS</h2>
<h2 id="COMMANDS">COMMANDS</h2>
-<ul>
-<li><p><code>audit</code> [<code>--strict</code>] [<code>--online</code>] [<var>formulae</var>]:
-Check <var>formulae</var> for Homebrew coding style violations. This should be
+<dl>
+<dt><code>audit</code> [<code>--strict</code>] [<code>--online</code>] [<var>formulae</var>]</dt><dd><p>Check <var>formulae</var> for Homebrew coding style violations. This should be
run before submitting a new formula.</p>
<p>If no <var>formulae</var> are provided, all of them are checked.</p>
@@ -48,11 +47,9 @@ <h2 id="COMMANDS">COMMANDS</h2>
connection are run. This should be used when creating for new formulae.</p>
<p><code>audit</code> exits with a non-zero status if any errors are found. This is useful,
-for instance, for implementing pre-commit hooks.</p></li>
-<li><p><code>cat</code> <var>formula</var>:
-Display the source to <var>formula</var>.</p></li>
-<li><p><code>cleanup</code> [<code>--force</code>] [<code>--prune=</code><var>days</var>] [<code>-n</code>] [<code>-s</code>] [<var>formulae</var>]:
-For all installed or specific formulae, remove any older versions from the
+for instance, for implementing pre-commit hooks.</p></dd>
+<dt><code>cat</code> <var>formula</var></dt><dd><p>Display the source to <var>formula</var>.</p></dd>
+<dt><code>cleanup</code> [<code>--force</code>] [<code>--prune=</code><var>days</var>] [<code>-n</code>] [<code>-s</code>] [<var>formulae</var>]</dt><dd><p>For all installed or specific formulae, remove any older versions from the
cellar. By default, does not remove out-of-date keg-only brews, as other
software may link directly to specific versions. In addition, old downloads from
the Homebrew download-cache are deleted.</p>
@@ -65,20 +62,16 @@ <h2 id="COMMANDS">COMMANDS</h2>
<p>If <code>-s</code> is passed, scrubs the cache, removing downloads for even the latest
versions of formulae. Note downloads for any installed formulae will still not be
-deleted. If you want to delete those too: <code>rm -rf $(brew --cache)</code></p></li>
-<li><p><code>command</code> <var>cmd</var>:
-Display the path to the file which is used when invoking <code>brew</code> <var>cmd</var>.</p></li>
-<li><p><code>commands</code> [<code>--quiet</code> [<code>--include-aliases</code>]]:
-Show a list of built-in and external commands.</p>
+deleted. If you want to delete those too: <code>rm -rf $(brew --cache)</code></p></dd>
+<dt><code>command</code> <var>cmd</var></dt><dd><p>Display the path to the file which is used when invoking <code>brew</code> <var>cmd</var>.</p></dd>
+<dt><code>commands</code> [<code>--quiet</code> [<code>--include-aliases</code>]]</dt><dd><p>Show a list of built-in and external commands.</p>
<p>If <code>--quiet</code> is passed, list only the names of commands without the header.
-With <code>--include-aliases</code>, the aliases of internal commands will be included.</p></li>
-<li><p><code>config</code>:
-Show Homebrew and system configuration useful for debugging. If you file
+With <code>--include-aliases</code>, the aliases of internal commands will be included.</p></dd>
+<dt class="flush"><code>config</code></dt><dd><p>Show Homebrew and system configuration useful for debugging. If you file
a bug report, you will likely be asked for this information if you do not
-provide it.</p></li>
-<li><p><code>create</code> <var>URL</var> [<code>--autotools</code>|<code>--cmake</code>] [<code>--no-fetch</code>] [<code>--set-name</code> <var>name</var>] [<code>--set-version</code> <var>version</var>]:
-Generate a formula for the downloadable file at <var>URL</var> and open it in the editor.
+provide it.</p></dd>
+<dt><code>create</code> <var>URL</var> [<code>--autotools</code>|<code>--cmake</code>] [<code>--no-fetch</code>] [<code>--set-name</code> <var>name</var>] [<code>--set-version</code> <var>version</var>]</dt><dd><p>Generate a formula for the downloadable file at <var>URL</var> and open it in the editor.
Homebrew will attempt to automatically derive the formula name
and version, but if it fails, you'll have to make your own template. The <code>wget</code>
formula serves as a simple example. For the complete API have a look at</p>
@@ -92,9 +85,8 @@ <h2 id="COMMANDS">COMMANDS</h2>
will thus not add the SHA256 to the formula for you.</p>
<p>The options <code>--set-name</code> and <code>--set-version</code> each take an argument and allow
-you to explicitly set the name and version of the package you are creating.</p></li>
-<li><p><code>deps</code> [<code>--1</code>] [<code>-n</code>] [<code>--union</code>] [<code>--tree</code>] [<code>--all</code>] [<code>--installed</code>] [<code>--skip-build</code>] [<code>--skip-optional</code>] <var>formulae</var>:
-Show dependencies for <var>formulae</var>. When given multiple formula arguments,
+you to explicitly set the name and version of the package you are creating.</p></dd>
+<dt><code>deps</code> [<code>--1</code>] [<code>-n</code>] [<code>--union</code>] [<code>--tree</code>] [<code>--all</code>] [<code>--installed</code>] [<code>--skip-build</code>] [<code>--skip-optional</code>] <var>formulae</var></dt><dd><p>Show dependencies for <var>formulae</var>. When given multiple formula arguments,
show the intersection of dependencies for <var>formulae</var>, except when passed
<code>--tree</code>, <code>--all</code>, or <code>--installed</code>.</p>
@@ -114,33 +106,26 @@ <h2 id="COMMANDS">COMMANDS</h2>
<p>By default, <code>deps</code> shows dependencies for <var>formulae</var>. To skip the <code>:build</code>
type dependencies, pass <code>--skip-build</code>. Similarly, pass <code>--skip-optional</code>
-to skip <code>:optional</code> dependencies.</p></li>
-<li><p><code>desc</code> <var>formula</var>:
-Display <var>formula</var>'s name and one-line description.</p></li>
-<li><p><code>desc</code> [<code>-s</code>|<code>-n</code>|<code>-d</code>] <var>pattern</var>:
-Search both name and description (<code>-s</code>), just the names (<code>-n</code>), or just the
+to skip <code>:optional</code> dependencies.</p></dd>
+<dt><code>desc</code> <var>formula</var></dt><dd><p>Display <var>formula</var>'s name and one-line description.</p></dd>
+<dt><code>desc</code> [<code>-s</code>|<code>-n</code>|<code>-d</code>] <var>pattern</var></dt><dd><p>Search both name and description (<code>-s</code>), just the names (<code>-n</code>), or just the
descriptions (<code>-d</code>) for <code><pattern></code>. <code><pattern></code> is by default interpreted
as a literal string; if flanked by slashes, it is instead interpreted as a
regular expression. Formula descriptions are cached; the cache is created on
-the first search, making that search slower than subsequent ones.</p></li>
-<li><p><code>diy</code> [<code>--name=</code><var>name</var>] [<code>--version=</code><var>version</var>]:
-Automatically determine the installation prefix for non-Homebrew software.</p>
+the first search, making that search slower than subsequent ones.</p></dd>
+<dt><code>diy</code> [<code>--name=</code><var>name</var>] [<code>--version=</code><var>version</var>]</dt><dd><p>Automatically determine the installation prefix for non-Homebrew software.</p>
<p>Using the output from this command, you can install your own software into
the Cellar and then link it into Homebrew's prefix with <code>brew link</code>.</p>
<p>The options <code>--name=</code><var>name</var> and <code>--version=</code><var>version</var> each take an argument
and allow you to explicitly set the name and version of the package you are
-installing.</p></li>
-<li><p><code>doctor</code>:
-Check your system for potential problems. Doctor exits with a non-zero status
-if any problems are found.</p></li>
-<li><p><code>edit</code>:
-Open all of Homebrew for editing.</p></li>
-<li><p><code>edit</code> <var>formula</var>:
-Open <var>formula</var> in the editor.</p></li>
-<li><p><code>fetch</code> [<code>--force</code>] [<code>-v</code>] [<code>--devel</code>|<code>--HEAD</code>] [<code>--deps</code>] [<code>--build-from-source</code>|<code>--force-bottle</code>] <var>formulae</var>:
-Download the source packages for the given <var>formulae</var>.
+installing.</p></dd>
+<dt class="flush"><code>doctor</code></dt><dd><p>Check your system for potential problems. Doctor exits with a non-zero status
+if any problems are found.</p></dd>
+<dt class="flush"><code>edit</code></dt><dd><p>Open all of Homebrew for editing.</p></dd>
+<dt><code>edit</code> <var>formula</var></dt><dd><p>Open <var>formula</var> in the editor.</p></dd>
+<dt><code>fetch</code> [<code>--force</code>] [<code>-v</code>] [<code>--devel</code>|<code>--HEAD</code>] [<code>--deps</code>] [<code>--build-from-source</code>|<code>--force-bottle</code>] <var>formulae</var></dt><dd><p>Download the source packages for the given <var>formulae</var>.
For tarballs, also print SHA-1 and SHA-256 checksums.</p>
<p>If <code>--HEAD</code> or <code>--devel</code> is passed, fetch that version instead of the
@@ -157,28 +142,22 @@ <h2 id="COMMANDS">COMMANDS</h2>
bottle.</p>
<p>If <code>--force-bottle</code> is passed, download a bottle if it exists for the current
-version of OS X, even if it would not be used during installation.</p></li>
-<li><p><code>home</code>:
-Open Homebrew's own homepage in a browser.</p></li>
-<li><p><code>home</code> <var>formula</var>:
-Open <var>formula</var>'s homepage in a browser.</p></li>
-<li><p><code>info</code> <var>formula</var>:
-Display information about <var>formula</var>.</p></li>
-<li><p><code>info</code> <code>--github</code> <var>formula</var>:
-Open a browser to the GitHub History page for formula <var>formula</var>.</p>
-
-<p>To view formula history locally: <code>brew log -p <formula></code>.</p></li>
-<li><p><code>info --json=</code><var>version</var> (<code>--all</code>|<code>--installed</code>|<var>formulae</var>):
-Print a JSON representation of <var>formulae</var>. Currently the only accepted value
+version of OS X, even if it would not be used during installation.</p></dd>
+<dt class="flush"><code>home</code></dt><dd><p>Open Homebrew's own homepage in a browser.</p></dd>
+<dt><code>home</code> <var>formula</var></dt><dd><p>Open <var>formula</var>'s homepage in a browser.</p></dd>
+<dt><code>info</code> <var>formula</var></dt><dd><p>Display information about <var>formula</var>.</p></dd>
+<dt><code>info</code> <code>--github</code> <var>formula</var></dt><dd><p>Open a browser to the GitHub History page for formula <var>formula</var>.</p>
+
+<p>To view formula history locally: <code>brew log -p <formula></code>.</p></dd>
+<dt><code>info --json=</code><var>version</var> (<code>--all</code>|<code>--installed</code>|<var>formulae</var>)</dt><dd><p>Print a JSON representation of <var>formulae</var>. Currently the only accepted value
for <var>version</var> is <code>v1</code>.</p>
<p>Pass <code>--all</code> to get information on all formulae, or <code>--installed</code> to get
information on all installed formulae.</p>
<p>See the docs for examples of using the JSON:
-<a href="https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying-Brew.md" data-bare-link="true">https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying-Brew.md</a></p></li>
-<li><p><code>install</code> [<code>--debug</code>] [<code>--env=</code><var>std</var>|<var>super</var>] [<code>--ignore-dependencies</code>] [<code>--only-dependencies</code>] [<code>--cc=</code><var>compiler</var>] [<code>--build-from-source</code>|<code>--force-bottle</code>] [<code>--devel</code>|<code>--HEAD</code>] <var>formula</var>:
-Install <var>formula</var>.</p>
+<a href="https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying-Brew.md" data-bare-link="true">https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying-Brew.md</a></p></dd>
+<dt><code>install</code> [<code>--debug</code>] [<code>--env=</code><var>std</var>|<var>super</var>] [<code>--ignore-dependencies</code>] [<code>--only-dependencies</code>] [<code>--cc=</code><var>compiler</var>] [<code>--build-from-source</code>|<code>--force-bottle</code>] [<code>--devel</code>|<code>--HEAD</code>] <var>formula</var></dt><dd><p>Install <var>formula</var>.</p>
<p><var>formula</var> is usually the name of the formula to install, but it can be specified
several different ways. See <a href="#SPECIFYING-FORMULAE" title="SPECIFYING FORMULAE" data-bare-link="true">SPECIFYING FORMULAE</a>.</p>
@@ -215,22 +194,18 @@ <h2 id="COMMANDS">COMMANDS</h2>
aka master, trunk, unstable.</p>
<p>To install a newer version of HEAD use
-<code>brew rm <foo> && brew install --HEAD <foo></code>.</p></li>
-<li><p><code>install --interactive</code> [<code>--git</code>] <var>formula</var>:
-Download and patch <var>formula</var>, then open a shell. This allows the user to
+<code>brew rm <foo> && brew install --HEAD <foo></code>.</p></dd>
+<dt><code>install --interactive</code> [<code>--git</code>] <var>formula</var></dt><dd><p>Download and patch <var>formula</var>, then open a shell. This allows the user to
run <code>./configure --help</code> and otherwise determine how to turn the software
package into a Homebrew formula.</p>
<p>If <code>--git</code> is passed, Homebrew will create a Git repository, useful for
-creating patches to the software.</p></li>
-<li><p><code>irb</code> [<code>--examples</code>]:
-Enter the interactive Homebrew Ruby shell.</p>
-
-<p>If <code>--examples</code> is passed, several examples will be shown.</p></li>
-<li><p><code>leaves</code>:
-Show installed formulae that are not dependencies of another installed formula.</p></li>
-<li><p><code>ln</code>, <code>link</code> [<code>--overwrite</code>] [<code>--dry-run</code>] [<code>--force</code>] <var>formula</var>:
-Symlink all of <var>formula</var>'s installed files into the Homebrew prefix. This
+creating patches to the software.</p></dd>
+<dt><code>irb</code> [<code>--examples</code>]</dt><dd><p>Enter the interactive Homebrew Ruby shell.</p>
+
+<p>If <code>--examples</code> is passed, several examples will be shown.</p></dd>
+<dt class="flush"><code>leaves</code></dt><dd><p>Show installed formulae that are not dependencies of another installed formula.</p></dd>
+<dt><code>ln</code>, <code>link</code> [<code>--overwrite</code>] [<code>--dry-run</code>] [<code>--force</code>] <var>formula</var></dt><dd><p>Symlink all of <var>formula</var>'s installed files into the Homebrew prefix. This
is done automatically when you install formulae but can be useful for DIY
installations.</p>
@@ -241,23 +216,19 @@ <h2 id="COMMANDS">COMMANDS</h2>
be linked or which would be deleted by <code>brew link --overwrite</code>, but will not
actually link or delete any files.</p>
-<p>If <code>--force</code> is passed, Homebrew will allow keg-only formulae to be linked.</p></li>
-<li><p><code>linkapps</code> [<code>--local</code>] [<var>formulae</var>]:
-Find installed formulae that have compiled <code>.app</code>-style "application"
+<p>If <code>--force</code> is passed, Homebrew will allow keg-only formulae to be linked.</p></dd>
+<dt><code>linkapps</code> [<code>--local</code>] [<var>formulae</var>]</dt><dd><p>Find installed formulae that have compiled <code>.app</code>-style "application"
packages for OS X, and symlink those apps into <code>/Applications</code>, allowing
for easier access.</p>
<p>If no <var>formulae</var> are provided, all of them will have their .apps symlinked.</p>
<p>If provided, <code>--local</code> will move them into the user's <code>~/Applications</code>
-directory instead of the system directory. It may need to be created, first.</p></li>
-<li><p><code>ls</code>, <code>list</code> [<code>--full-name</code>]:
-List all installed formulae. If <code>--full-name</code> is passed, print formulae with
-full-qualified names.</p></li>
-<li><p><code>ls</code>, <code>list --unbrewed</code>:
-List all files in the Homebrew prefix not installed by Homebrew.</p></li>
-<li><p><code>ls</code>, <code>list</code> [<code>--versions</code> [<code>--multiple</code>]] [<code>--pinned</code>] [<var>formulae</var>]:
-List the installed files for <var>formulae</var>. Combined with <code>--verbose</code>, recursively
+directory instead of the system directory. It may need to be created, first.</p></dd>
+<dt><code>ls</code>, <code>list</code> [<code>--full-name</code>]</dt><dd><p>List all installed formulae. If <code>--full-name</code> is passed, print formulae with
+full-qualified names.</p></dd>
+<dt><code>ls</code>, <code>list --unbrewed</code></dt><dd><p>List all files in the Homebrew prefix not installed by Homebrew.</p></dd>
+<dt><code>ls</code>, <code>list</code> [<code>--versions</code> [<code>--multiple</code>]] [<code>--pinned</code>] [<var>formulae</var>]</dt><dd><p>List the installed files for <var>formulae</var>. Combined with <code>--verbose</code>, recursively
list the contents of all subdirectories in each <var>formula</var>'s keg.</p>
<p>If <code>--versions</code> is passed, show the version number for installed formulae,
@@ -266,31 +237,26 @@ <h2 id="COMMANDS">COMMANDS</h2>
<p>If <code>--pinned</code> is passed, show the versions of pinned formulae, or only the
specified (pinned) formulae if <var>formulae</var> are given.
-See also <code>pin</code>, <code>unpin</code>.</p></li>
-<li><p><code>log</code> [<code>git-log-options</code>] <var>formula</var> ...:
-Show the git log for the given formulae. Options that <code>git-log</code>(1)
-recognizes can be passed before the formula list.</p></li>
-<li><p><code>missing</code> [<var>formulae</var>]:
-Check the given <var>formulae</var> for missing dependencies.</p>
-
-<p>If no <var>formulae</var> are given, check all installed brews.</p></li>
-<li><p><code>migrate</code> [<code>--force</code>] <var>formulae</var>:
-Migrate renamed packages to new name, where <var>formulae</var> are old names of
+See also <code>pin</code>, <code>unpin</code>.</p></dd>
+<dt><code>log</code> [<code>git-log-options</code>] <var>formula</var> ...</dt><dd><p>Show the git log for the given formulae. Options that <code>git-log</code>(1)
+recognizes can be passed before the formula list.</p></dd>
+<dt><code>missing</code> [<var>formulae</var>]</dt><dd><p>Check the given <var>formulae</var> for missing dependencies.</p>
+
+<p>If no <var>formulae</var> are given, check all installed brews.</p></dd>
+<dt><code>migrate</code> [<code>--force</code>] <var>formulae</var></dt><dd><p>Migrate renamed packages to new name, where <var>formulae</var> are old names of
packages.</p>
<p>If <code>--force</code> is passed, then treat installed <var>formulae</var> and passed <var>formulae</var>
-like if they are from same taps and migrate them anyway.</p></li>
-<li><p><code>options</code> [<code>--compact</code>] [<code>--all</code>] [<code>--installed</code>] <var>formula</var>:
-Display install options specific to <var>formula</var>.</p>
+like if they are from same taps and migrate them anyway.</p></dd>
+<dt><code>options</code> [<code>--compact</code>] [<code>--all</code>] [<code>--installed</code>] <var>formula</var></dt><dd><p>Display install options specific to <var>formula</var>.</p>
<p>If <code>--compact</code> is passed, show all options on a single line separated by
spaces.</p>
<p>If <code>--all</code> is passed, show options for all formulae.</p>
-<p>If <code>--installed</code> is passed, show options for all installed formulae.</p></li>
-<li><p><code>outdated</code> [<code>--quiet</code>|<code>--verbose</code>|<code>--json=v1</code>]:
-Show formulae that have an updated version available.</p>
+<p>If <code>--installed</code> is passed, show options for all installed formulae.</p></dd>
+<dt><code>outdated</code> [<code>--quiet</code>|<code>--verbose</code>|<code>--json=v1</code>]</dt><dd><p>Show formulae that have an updated version available.</p>
<p>By default, version information is displayed in interactive shells, and
suppressed otherwise.</p>
@@ -301,79 +267,58 @@ <h2 id="COMMANDS">COMMANDS</h2>
<p>If <code>--verbose</code> is passed, display detailed version information.</p>
<p>If <code>--json=</code><var>version</var> is passed, the output will be in JSON format. The only
-valid version is <code>v1</code>.</p></li>
-<li><p><code>pin</code> <var>formulae</var>:
-Pin the specified <var>formulae</var>, preventing them from being upgraded when
-issuing the <code>brew upgrade</code> command. See also <code>unpin</code>.</p></li>
-<li><p><code>prune</code>:
-Remove dead symlinks from the Homebrew prefix. This is generally not
-needed, but can be useful when doing DIY installations.</p></li>
-<li><p><code>reinstall</code> <var>formula</var>:
-Uninstall then install <var>formula</var></p></li>
-<li><p><code>rm</code>, <code>remove</code>, <code>uninstall</code> [<code>--force</code>] <var>formula</var>:
-Uninstall <var>formula</var>.</p>
+valid version is <code>v1</code>.</p></dd>
+<dt><code>pin</code> <var>formulae</var></dt><dd><p>Pin the specified <var>formulae</var>, preventing them from being upgraded when
+issuing the <code>brew upgrade</code> command. See also <code>unpin</code>.</p></dd>
+<dt class="flush"><code>prune</code></dt><dd><p>Remove dead symlinks from the Homebrew prefix. This is generally not
+needed, but can be useful when doing DIY installations.</p></dd>
+<dt><code>reinstall</code> <var>formula</var></dt><dd><p>Uninstall then install <var>formula</var></p></dd>
+<dt><code>rm</code>, <code>remove</code>, <code>uninstall</code> [<code>--force</code>] <var>formula</var></dt><dd><p>Uninstall <var>formula</var>.</p>
<p>If <code>--force</code> is passed, and there are multiple versions of <var>formula</var>
-installed, delete all installed versions.</p></li>
-<li><p><code>search</code>, <code>-S</code>:
-Display all locally available formulae for brewing (including tapped ones).
-No online search is performed if called without arguments.</p></li>
-<li><p><code>search</code>, <code>-S</code> <var>text</var>|<code>/</code><var>text</var><code>/</code>:
-Perform a substring search of formula names for <var>text</var>. If <var>text</var> is
+installed, delete all installed versions.</p></dd>
+<dt><code>search</code>, <code>-S</code></dt><dd><p>Display all locally available formulae for brewing (including tapped ones).
+No online search is performed if called without arguments.</p></dd>
+<dt><code>search</code>, <code>-S</code> <var>text</var>|<code>/</code><var>text</var><code>/</code></dt><dd><p>Perform a substring search of formula names for <var>text</var>. If <var>text</var> is
surrounded with slashes, then it is interpreted as a regular expression.
-The search for <var>text</var> is extended online to some popular taps.</p></li>
-<li><p><code>search --debian</code>|<code>--fedora</code>|<code>--fink</code>|<code>--macports</code>|<code>--opensuse</code>|<code>--ubuntu</code> <var>text</var>:
-Search for <var>text</var> in the given package manager's list.</p></li>
-<li><p><code>sh</code> [<code>--env=std</code>]:
-Instantiate a Homebrew build environment. Uses our years-battle-hardened
+The search for <var>text</var> is extended online to some popular taps.</p></dd>
+<dt><code>search --debian</code>|<code>--fedora</code>|<code>--fink</code>|<code>--macports</code>|<code>--opensuse</code>|<code>--ubuntu</code> <var>text</var></dt><dd><p>Search for <var>text</var> in the given package manager's list.</p></dd>
+<dt><code>sh</code> [<code>--env=std</code>]</dt><dd><p>Instantiate a Homebrew build environment. Uses our years-battle-hardened
Homebrew build logic to help your <code>./configure && make && make install</code>
or even your <code>gem install</code> succeed. Especially handy if you run Homebrew
in an Xcode-only configuration since it adds tools like <code>make</code> to your <code>PATH</code>
-which otherwise build-systems would not find.</p></li>
-<li><p><code>switch</code> <var>name</var> <var>version</var>:
-Symlink all of the specific <var>version</var> of <var>name</var>'s install to Homebrew prefix.</p></li>
-<li><p><code>tap</code> [<code>--full</code>] <var>user</var><code>/</code><var>repo</var> [<var>URL</var>]:
-Tap a formula repository or list existing taps. This command can be invoked
-in three ways.</p>
-
-<ul>
-<li><p><code>tap</code> without arguments displays existing taps.</p></li>
-<li><p><code>tap</code> <var>user</var><code>/</code><var>repo</var> taps a formula repository from GitHub using HTTPS.
+which otherwise build-systems would not find.</p></dd>
+<dt><code>switch</code> <var>name</var> <var>version</var></dt><dd><p>Symlink all of the specific <var>version</var> of <var>name</var>'s install to Homebrew prefix.</p></dd>
+<dt class="flush"><code>tap</code></dt><dd><p>List all installed taps.</p></dd>
+<dt><code>tap</code> [<code>--full</code>] <var>user</var><code>/</code><var>repo</var> [<var>URL</var>]</dt><dd><p>Tap a formula repository.</p>
+
+<p>With <var>URL</var> unspecified, taps a formula repository from GitHub using HTTPS.
Since so many taps are hosted on GitHub, this command is a shortcut for
-<code>tap <user>/<repo> https://github.com/<user>/homebrew-<repo></code>.</p></li>
-<li><p><code>tap</code> <var>user</var><code>/</code><var>repo</var> <var>URL</var> taps a formula repository from anywhere, using
+<code>tap <user>/<repo> https://github.com/<user>/homebrew-<repo></code>.</p>
+
+<p>With <var>URL</var> specified, taps a formula repository from anywhere, using
any transport protocol that <code>git</code> handles. The one-argument form of <code>tap</code>
-simplifies but also limits. This two-argument command makes no
+simplifies but also limits. This two-argument command makes no
assumptions, so taps can be cloned from places other than GitHub and
-using protocols other than HTTPS, e.g., SSH, GIT, HTTP, FTP(S), RSYNC.</p></li>
-</ul>
-
+using protocols other than HTTPS, e.g., SSH, GIT, HTTP, FTP(S), RSYNC.</p>
<p>By default, the repository is cloned as a shallow copy (<code>--depth=1</code>), but
-if <code>--full</code> is passed, a full clone will be used.</p></li>
-<li><p><code>tap --repair</code>:
-Migrate tapped formulae from symlink-based to directory-based structure.</p></li>
-<li><p><code>tap --list-official</code>:
-List all official taps.</p></li>
-<li><p><code>tap --list-pinned</code>:
-List all pinned taps.</p></li>
-<li><p><code>tap-info</code> <var>tap</var>:
-Display information about <var>tap</var>.</p></li>
-<li><p><code>tap-info</code> <code>--json=</code><var>version</var> (<code>--installed</code>|<var>taps</var>):
-Print a JSON representation of <var>taps</var>. Currently the only accepted value
+if <code>--full</code> is passed, a full clone will be used.</p></dd>
+<dt><code>tap --repair</code></dt><dd><p>Migrate tapped formulae from symlink-based to directory-based structure.</p></dd>
+<dt><code>tap --list-official</code></dt><dd><p>List all official taps.</p></dd>
+<dt><code>tap --list-pinned</code></dt><dd><p>List all pinned taps.</p></dd>
+<dt><code>tap-info</code> <var>tap</var></dt><dd><p>Display information about <var>tap</var>.</p></dd>
+<dt><code>tap-info</code> <code>--json=</code><var>version</var> (<code>--installed</code>|<var>taps</var>)</dt><dd><p>Print a JSON representation of <var>taps</var>. Currently the only accepted value
for <var>version</var> is <code>v1</code>.</p>
<p>Pass <code>--installed</code> to get information on installed taps.</p>
<p>See the docs for examples of using the JSON:
-<a href="https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying-Brew.md" data-bare-link="true">https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying-Brew.md</a></p></li>
-<li><p><code>tap-pin</code> <var>tap</var>:
-Pin <var>tap</var>, prioritizing its formulae over core when formula names are supplied
-by the user. See also <code>tap-unpin</code>.</p></li>
-<li><p><code>tap-unpin</code> <var>tap</var>:
-Unpin <var>tap</var> so its formulae are no longer prioritized. See also <code>tap-pin</code>.</p></li>
-<li><p><code>test</code> [<code>--devel</code>|<code>--HEAD</code>] [<code>--debug</code>] <var>formula</var>:
-A few formulae provide a test method. <code>brew test</code> <var>formula</var> runs this
+<a href="https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying-Brew.md" data-bare-link="true">https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying-Brew.md</a></p></dd>
+<dt><code>tap-pin</code> <var>tap</var></dt><dd><p>Pin <var>tap</var>, prioritizing its formulae over core when formula names are supplied
+by the user. See also <code>tap-unpin</code>.</p></dd>
+<dt><code>tap-unpin</code> <var>tap</var></dt><dd><p>Unpin <var>tap</var> so its formulae are no longer prioritized. See also <code>tap-pin</code>.</p></dd>
+<dt><code>test</code> [<code>--devel</code>|<code>--HEAD</code>] [<code>--debug</code>] <var>formula</var></dt><dd><p>A few formulae provide a test method. <code>brew test</code> <var>formula</var> runs this
test method. There is no standard output or return code, but it should
generally indicate to the user if something is wrong with the installed
formula.</p>
@@ -384,49 +329,41 @@ <h2 id="COMMANDS">COMMANDS</h2>
<p>If <code>--debug</code> is passed and the test fails, an interactive debugger will be
launched with access to IRB or a shell inside the temporary test directory.</p>
-<p>Example: <code>brew install jruby && brew test jruby</code></p></li>
-<li><p><code>unlink</code> [<code>--dry-run</code>] <var>formula</var>:
-Remove symlinks for <var>formula</var> from the Homebrew prefix. This can be useful
+<p>Example: <code>brew install jruby && brew test jruby</code></p></dd>
+<dt><code>unlink</code> [<code>--dry-run</code>] <var>formula</var></dt><dd><p>Remove symlinks for <var>formula</var> from the Homebrew prefix. This can be useful
for temporarily disabling a formula:
<code>brew unlink foo && commands && brew link foo</code>.</p>
<p>If <code>--dry-run</code> or <code>-n</code> is passed, Homebrew will list all files which would
-be unlinked, but will not actually unlink or delete any files.</p></li>
-<li><p><code>unlinkapps</code> [<code>--local</code>] [<var>formulae</var>]:
-Removes links created by <code>brew linkapps</code>.</p>
+be unlinked, but will not actually unlink or delete any files.</p></dd>
+<dt><code>unlinkapps</code> [<code>--local</code>] [<var>formulae</var>]</dt><dd><p>Removes links created by <code>brew linkapps</code>.</p>
-<p>If no <var>formulae</var> are provided, all linked app will be removed.</p></li>
-<li><p><code>unpack</code> [<code>--git</code>|<code>--patch</code>] [<code>--destdir=</code><var>path</var>] <var>formulae</var>:
-Unpack the source files for <var>formulae</var> into subdirectories of the current
+<p>If no <var>formulae</var> are provided, all linked app will be removed.</p></dd>
+<dt><code>unpack</code> [<code>--git</code>|<code>--patch</code>] [<code>--destdir=</code><var>path</var>] <var>formulae</var></dt><dd><p>Unpack the source files for <var>formulae</var> into subdirectories of the current
working directory. If <code>--destdir=</code><var>path</var> is given, the subdirectories will
be created in the directory named by <code><path></code> instead.</p>
<p>If <code>--patch</code> is passed, patches for <var>formulae</var> will be applied to the
unpacked source.</p>
<p>If <code>--git</code> is passed, a Git repository will be initalized in the unpacked
-source. This is useful for creating patches for the software.</p></li>
-<li><p><code>unpin</code> <var>formulae</var>:
-Unpin <var>formulae</var>, allowing them to be upgraded by <code>brew upgrade</code>. See also
-<code>pin</code>.</p></li>
-<li><p><code>untap</code> <var>tap</var>:
-Remove a tapped repository.</p></li>
-<li><p><code>update</code> [<code>--rebase</code>]:
-Fetch the newest version of Homebrew and all formulae from GitHub using
+source. This is useful for creating patches for the software.</p></dd>
+<dt><code>unpin</code> <var>formulae</var></dt><dd><p>Unpin <var>formulae</var>, allowing them to be upgraded by <code>brew upgrade</code>. See also
+<code>pin</code>.</p></dd>
+<dt><code>untap</code> <var>tap</var></dt><dd><p>Remove a tapped repository.</p></dd>
+<dt><code>update</code> [<code>--rebase</code>]</dt><dd><p>Fetch the newest version of Homebrew and all formulae from GitHub using
<code>git</code>(1).</p>
-<p>If <code>--rebase</code> is specified then <code>git pull --rebase</code> is used.</p></li>
-<li><p><code>upgrade</code> [<var>install-options</var>] [<code>--cleanup</code>] [<var>formulae</var>]:
-Upgrade outdated, unpinned brews.</p>
+<p>If <code>--rebase</code> is specified then <code>git pull --rebase</code> is used.</p></dd>
+<dt><code>upgrade</code> [<var>install-options</var>] [<code>--cleanup</code>] [<var>formulae</var>]</dt><dd><p>Upgrade outdated, unpinned brews.</p>
<p>Options for the <code>install</code> command are also valid here.</p>
<p>If <code>--cleanup</code> is specified then remove previously installed <var>formula</var> version(s).</p>
<p>If <var>formulae</var> are given, upgrade only the specified brews (but do so even
-if they are pinned; see <code>pin</code>, <code>unpin</code>).</p></li>
-<li><p><code>uses</code> [<code>--installed</code>] [<code>--recursive</code>] [<code>--skip-build</code>] [<code>--skip-optional</code>] [<code>--devel</code>|<code>--HEAD</code>] <var>formulae</var>:
-Show the formulae that specify <var>formulae</var> as a dependency. When given
+if they are pinned; see <code>pin</code>, <code>unpin</code>).</p></dd>
+<dt><code>uses</code> [<code>--installed</code>] [<code>--recursive</code>] [<code>--skip-build</code>] [<code>--skip-optional</code>] [<code>--devel</code>|<code>--HEAD</code>] <var>formulae</var></dt><dd><p>Show the formulae that specify <var>formulae</var> as a dependency. When given
multiple formula arguments, show the intersection of formulae that use
<var>formulae</var>.</p>
@@ -440,29 +377,20 @@ <h2 id="COMMANDS">COMMANDS</h2>
<p>By default, <code>uses</code> shows usages of <code>formula</code> by stable builds. To find
cases where <code>formula</code> is used by development or HEAD build, pass
-<code>--devel</code> or <code>--HEAD</code>.</p></li>
-<li><p><code>--cache</code>:
-Display Homebrew's download cache. See also <code>HOMEBREW_CACHE</code>.</p></li>
-<li><p><code>--cache</code> <var>formula</var>:
-Display the file or directory used to cache <var>formula</var>.</p></li>
-<li><p><code>--cellar</code>:
-Display Homebrew's Cellar path. <em>Default:</em> <code>$(brew --prefix)/Cellar</code>, or if
-that directory doesn't exist, <code>$(brew --repository)/Cellar</code>.</p></li>
-<li><p><code>--cellar</code> <var>formula</var>:
-Display the location in the cellar where <var>formula</var> would be installed,
-without any sort of versioned directory as the last path.</p></li>
-<li><p><code>--env</code>:
-Show a summary of the Homebrew build environment.</p></li>
-<li><p><code>--prefix</code>:
-Display Homebrew's install path. <em>Default:</em> <code>/usr/local</code></p></li>
-<li><p><code>--prefix</code> <var>formula</var>:
-Display the location in the cellar where <var>formula</var> is or would be installed.</p></li>
-<li><p><code>--repository</code>:
-Display where Homebrew's <code>.git</code> directory is located. For standard installs,
-the <code>prefix</code> and <code>repository</code> are the same directory.</p></li>
-<li><p><code>--version</code>:
-Print the version number of brew to standard error and exit.</p></li>
-</ul>
+<code>--devel</code> or <code>--HEAD</code>.</p></dd>
+<dt class="flush"><code>--cache</code></dt><dd><p>Display Homebrew's download cache. See also <code>HOMEBREW_CACHE</code>.</p></dd>
+<dt><code>--cache</code> <var>formula</var></dt><dd><p>Display the file or directory used to cache <var>formula</var>.</p></dd>
+<dt><code>--cellar</code></dt><dd><p>Display Homebrew's Cellar path. <em>Default:</em> <code>$(brew --prefix)/Cellar</code>, or if
+that directory doesn't exist, <code>$(brew --repository)/Cellar</code>.</p></dd>
+<dt><code>--cellar</code> <var>formula</var></dt><dd><p>Display the location in the cellar where <var>formula</var> would be installed,
+without any sort of versioned directory as the last path.</p></dd>
+<dt class="flush"><code>--env</code></dt><dd><p>Show a summary of the Homebrew build environment.</p></dd>
+<dt><code>--prefix</code></dt><dd><p>Display Homebrew's install path. <em>Default:</em> <code>/usr/local</code></p></dd>
+<dt><code>--prefix</code> <var>formula</var></dt><dd><p>Display the location in the cellar where <var>formula</var> is or would be installed.</p></dd>
+<dt><code>--repository</code></dt><dd><p>Display where Homebrew's <code>.git</code> directory is located. For standard installs,
+the <code>prefix</code> and <code>repository</code> are the same directory.</p></dd>
+<dt><code>--version</code></dt><dd><p>Print the version number of brew to standard error and exit.</p></dd>
+</dl>
<h2 id="EXTERNAL-COMMANDS">EXTERNAL COMMANDS</h2> | true |
Other | Homebrew | brew | 8144f90eac3103c369af1435440c7387ab583091.json | manpage: fix formatting of command list
Restore definition list in `COMMANDS` section, thus massively improve
formatting. In theory, `ronn` supports nested (definition) lists. In
practice, this does not work (and is unlikely to be fixed soon because
upstream seems to be rather inactive) causing the entire definition list
to be longer recognized because of a single nested list. Work around by
rearranging the `tap` documentation (sole command with a nested list). | share/man/man1/brew.1 | @@ -43,8 +43,9 @@ Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is su
.
.SH "COMMANDS"
.
-.IP "\(bu" 4
-\fBaudit\fR [\fB\-\-strict\fR] [\fB\-\-online\fR] [\fIformulae\fR]: Check \fIformulae\fR for Homebrew coding style violations\. This should be run before submitting a new formula\.
+.TP
+\fBaudit\fR [\fB\-\-strict\fR] [\fB\-\-online\fR] [\fIformulae\fR]
+Check \fIformulae\fR for Homebrew coding style violations\. This should be run before submitting a new formula\.
.
.IP
If no \fIformulae\fR are provided, all of them are checked\.
@@ -58,11 +59,13 @@ If \fB\-\-online\fR is passed, additional slower checks that require a network c
.IP
\fBaudit\fR exits with a non\-zero status if any errors are found\. This is useful, for instance, for implementing pre\-commit hooks\.
.
-.IP "\(bu" 4
-\fBcat\fR \fIformula\fR: Display the source to \fIformula\fR\.
+.TP
+\fBcat\fR \fIformula\fR
+Display the source to \fIformula\fR\.
.
-.IP "\(bu" 4
-\fBcleanup\fR [\fB\-\-force\fR] [\fB\-\-prune=\fR\fIdays\fR] [\fB\-n\fR] [\fB\-s\fR] [\fIformulae\fR]: For all installed or specific formulae, remove any older versions from the cellar\. By default, does not remove out\-of\-date keg\-only brews, as other software may link directly to specific versions\. In addition, old downloads from the Homebrew download\-cache are deleted\.
+.TP
+\fBcleanup\fR [\fB\-\-force\fR] [\fB\-\-prune=\fR\fIdays\fR] [\fB\-n\fR] [\fB\-s\fR] [\fIformulae\fR]
+For all installed or specific formulae, remove any older versions from the cellar\. By default, does not remove out\-of\-date keg\-only brews, as other software may link directly to specific versions\. In addition, old downloads from the Homebrew download\-cache are deleted\.
.
.IP
If \fB\-\-force\fR is passed, remove out\-of\-date keg\-only brews as well\.
@@ -76,20 +79,24 @@ If \fB\-n\fR is passed, show what would be removed, but do not actually remove a
.IP
If \fB\-s\fR is passed, scrubs the cache, removing downloads for even the latest versions of formulae\. Note downloads for any installed formulae will still not be deleted\. If you want to delete those too: \fBrm \-rf $(brew \-\-cache)\fR
.
-.IP "\(bu" 4
-\fBcommand\fR \fIcmd\fR: Display the path to the file which is used when invoking \fBbrew\fR \fIcmd\fR\.
+.TP
+\fBcommand\fR \fIcmd\fR
+Display the path to the file which is used when invoking \fBbrew\fR \fIcmd\fR\.
.
-.IP "\(bu" 4
-\fBcommands\fR [\fB\-\-quiet\fR [\fB\-\-include\-aliases\fR]]: Show a list of built\-in and external commands\.
+.TP
+\fBcommands\fR [\fB\-\-quiet\fR [\fB\-\-include\-aliases\fR]]
+Show a list of built\-in and external commands\.
.
.IP
If \fB\-\-quiet\fR is passed, list only the names of commands without the header\. With \fB\-\-include\-aliases\fR, the aliases of internal commands will be included\.
.
-.IP "\(bu" 4
-\fBconfig\fR: Show Homebrew and system configuration useful for debugging\. If you file a bug report, you will likely be asked for this information if you do not provide it\.
+.TP
+\fBconfig\fR
+Show Homebrew and system configuration useful for debugging\. If you file a bug report, you will likely be asked for this information if you do not provide it\.
.
-.IP "\(bu" 4
-\fBcreate\fR \fIURL\fR [\fB\-\-autotools\fR|\fB\-\-cmake\fR] [\fB\-\-no\-fetch\fR] [\fB\-\-set\-name\fR \fIname\fR] [\fB\-\-set\-version\fR \fIversion\fR]: Generate a formula for the downloadable file at \fIURL\fR and open it in the editor\. Homebrew will attempt to automatically derive the formula name and version, but if it fails, you\'ll have to make your own template\. The \fBwget\fR formula serves as a simple example\. For the complete API have a look at
+.TP
+\fBcreate\fR \fIURL\fR [\fB\-\-autotools\fR|\fB\-\-cmake\fR] [\fB\-\-no\-fetch\fR] [\fB\-\-set\-name\fR \fIname\fR] [\fB\-\-set\-version\fR \fIversion\fR]
+Generate a formula for the downloadable file at \fIURL\fR and open it in the editor\. Homebrew will attempt to automatically derive the formula name and version, but if it fails, you\'ll have to make your own template\. The \fBwget\fR formula serves as a simple example\. For the complete API have a look at
.
.IP
\fIhttp://www\.rubydoc\.info/github/Homebrew/homebrew/master/Formula\fR
@@ -103,8 +110,9 @@ If \fB\-\-no\-fetch\fR is passed, Homebrew will not download \fIURL\fR to the ca
.IP
The options \fB\-\-set\-name\fR and \fB\-\-set\-version\fR each take an argument and allow you to explicitly set the name and version of the package you are creating\.
.
-.IP "\(bu" 4
-\fBdeps\fR [\fB\-\-1\fR] [\fB\-n\fR] [\fB\-\-union\fR] [\fB\-\-tree\fR] [\fB\-\-all\fR] [\fB\-\-installed\fR] [\fB\-\-skip\-build\fR] [\fB\-\-skip\-optional\fR] \fIformulae\fR: Show dependencies for \fIformulae\fR\. When given multiple formula arguments, show the intersection of dependencies for \fIformulae\fR, except when passed \fB\-\-tree\fR, \fB\-\-all\fR, or \fB\-\-installed\fR\.
+.TP
+\fBdeps\fR [\fB\-\-1\fR] [\fB\-n\fR] [\fB\-\-union\fR] [\fB\-\-tree\fR] [\fB\-\-all\fR] [\fB\-\-installed\fR] [\fB\-\-skip\-build\fR] [\fB\-\-skip\-optional\fR] \fIformulae\fR
+Show dependencies for \fIformulae\fR\. When given multiple formula arguments, show the intersection of dependencies for \fIformulae\fR, except when passed \fB\-\-tree\fR, \fB\-\-all\fR, or \fB\-\-installed\fR\.
.
.IP
If \fB\-\-1\fR is passed, only show dependencies one level down, instead of recursing\.
@@ -127,32 +135,39 @@ If \fB\-\-installed\fR is passed, show dependencies for all installed formulae\.
.IP
By default, \fBdeps\fR shows dependencies for \fIformulae\fR\. To skip the \fB:build\fR type dependencies, pass \fB\-\-skip\-build\fR\. Similarly, pass \fB\-\-skip\-optional\fR to skip \fB:optional\fR dependencies\.
.
-.IP "\(bu" 4
-\fBdesc\fR \fIformula\fR: Display \fIformula\fR\'s name and one\-line description\.
+.TP
+\fBdesc\fR \fIformula\fR
+Display \fIformula\fR\'s name and one\-line description\.
.
-.IP "\(bu" 4
-\fBdesc\fR [\fB\-s\fR|\fB\-n\fR|\fB\-d\fR] \fIpattern\fR: Search both name and description (\fB\-s\fR), just the names (\fB\-n\fR), or just the descriptions (\fB\-d\fR) for \fB<pattern>\fR\. \fB<pattern>\fR is by default interpreted as a literal string; if flanked by slashes, it is instead interpreted as a regular expression\. Formula descriptions are cached; the cache is created on the first search, making that search slower than subsequent ones\.
+.TP
+\fBdesc\fR [\fB\-s\fR|\fB\-n\fR|\fB\-d\fR] \fIpattern\fR
+Search both name and description (\fB\-s\fR), just the names (\fB\-n\fR), or just the descriptions (\fB\-d\fR) for \fB<pattern>\fR\. \fB<pattern>\fR is by default interpreted as a literal string; if flanked by slashes, it is instead interpreted as a regular expression\. Formula descriptions are cached; the cache is created on the first search, making that search slower than subsequent ones\.
.
-.IP "\(bu" 4
-\fBdiy\fR [\fB\-\-name=\fR\fIname\fR] [\fB\-\-version=\fR\fIversion\fR]: Automatically determine the installation prefix for non\-Homebrew software\.
+.TP
+\fBdiy\fR [\fB\-\-name=\fR\fIname\fR] [\fB\-\-version=\fR\fIversion\fR]
+Automatically determine the installation prefix for non\-Homebrew software\.
.
.IP
Using the output from this command, you can install your own software into the Cellar and then link it into Homebrew\'s prefix with \fBbrew link\fR\.
.
.IP
The options \fB\-\-name=\fR\fIname\fR and \fB\-\-version=\fR\fIversion\fR each take an argument and allow you to explicitly set the name and version of the package you are installing\.
.
-.IP "\(bu" 4
-\fBdoctor\fR: Check your system for potential problems\. Doctor exits with a non\-zero status if any problems are found\.
+.TP
+\fBdoctor\fR
+Check your system for potential problems\. Doctor exits with a non\-zero status if any problems are found\.
.
-.IP "\(bu" 4
-\fBedit\fR: Open all of Homebrew for editing\.
+.TP
+\fBedit\fR
+Open all of Homebrew for editing\.
.
-.IP "\(bu" 4
-\fBedit\fR \fIformula\fR: Open \fIformula\fR in the editor\.
+.TP
+\fBedit\fR \fIformula\fR
+Open \fIformula\fR in the editor\.
.
-.IP "\(bu" 4
-\fBfetch\fR [\fB\-\-force\fR] [\fB\-v\fR] [\fB\-\-devel\fR|\fB\-\-HEAD\fR] [\fB\-\-deps\fR] [\fB\-\-build\-from\-source\fR|\fB\-\-force\-bottle\fR] \fIformulae\fR: Download the source packages for the given \fIformulae\fR\. For tarballs, also print SHA\-1 and SHA\-256 checksums\.
+.TP
+\fBfetch\fR [\fB\-\-force\fR] [\fB\-v\fR] [\fB\-\-devel\fR|\fB\-\-HEAD\fR] [\fB\-\-deps\fR] [\fB\-\-build\-from\-source\fR|\fB\-\-force\-bottle\fR] \fIformulae\fR
+Download the source packages for the given \fIformulae\fR\. For tarballs, also print SHA\-1 and SHA\-256 checksums\.
.
.IP
If \fB\-\-HEAD\fR or \fB\-\-devel\fR is passed, fetch that version instead of the stable version\.
@@ -172,32 +187,38 @@ If \fB\-\-build\-from\-source\fR is passed, download the source rather than a bo
.IP
If \fB\-\-force\-bottle\fR is passed, download a bottle if it exists for the current version of OS X, even if it would not be used during installation\.
.
-.IP "\(bu" 4
-\fBhome\fR: Open Homebrew\'s own homepage in a browser\.
+.TP
+\fBhome\fR
+Open Homebrew\'s own homepage in a browser\.
.
-.IP "\(bu" 4
-\fBhome\fR \fIformula\fR: Open \fIformula\fR\'s homepage in a browser\.
+.TP
+\fBhome\fR \fIformula\fR
+Open \fIformula\fR\'s homepage in a browser\.
.
-.IP "\(bu" 4
-\fBinfo\fR \fIformula\fR: Display information about \fIformula\fR\.
+.TP
+\fBinfo\fR \fIformula\fR
+Display information about \fIformula\fR\.
.
-.IP "\(bu" 4
-\fBinfo\fR \fB\-\-github\fR \fIformula\fR: Open a browser to the GitHub History page for formula \fIformula\fR\.
+.TP
+\fBinfo\fR \fB\-\-github\fR \fIformula\fR
+Open a browser to the GitHub History page for formula \fIformula\fR\.
.
.IP
To view formula history locally: \fBbrew log \-p <formula>\fR\.
.
-.IP "\(bu" 4
-\fBinfo \-\-json=\fR\fIversion\fR (\fB\-\-all\fR|\fB\-\-installed\fR|\fIformulae\fR): Print a JSON representation of \fIformulae\fR\. Currently the only accepted value for \fIversion\fR is \fBv1\fR\.
+.TP
+\fBinfo \-\-json=\fR\fIversion\fR (\fB\-\-all\fR|\fB\-\-installed\fR|\fIformulae\fR)
+Print a JSON representation of \fIformulae\fR\. Currently the only accepted value for \fIversion\fR is \fBv1\fR\.
.
.IP
Pass \fB\-\-all\fR to get information on all formulae, or \fB\-\-installed\fR to get information on all installed formulae\.
.
.IP
See the docs for examples of using the JSON: \fIhttps://github\.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying\-Brew\.md\fR
.
-.IP "\(bu" 4
-\fBinstall\fR [\fB\-\-debug\fR] [\fB\-\-env=\fR\fIstd\fR|\fIsuper\fR] [\fB\-\-ignore\-dependencies\fR] [\fB\-\-only\-dependencies\fR] [\fB\-\-cc=\fR\fIcompiler\fR] [\fB\-\-build\-from\-source\fR|\fB\-\-force\-bottle\fR] [\fB\-\-devel\fR|\fB\-\-HEAD\fR] \fIformula\fR: Install \fIformula\fR\.
+.TP
+\fBinstall\fR [\fB\-\-debug\fR] [\fB\-\-env=\fR\fIstd\fR|\fIsuper\fR] [\fB\-\-ignore\-dependencies\fR] [\fB\-\-only\-dependencies\fR] [\fB\-\-cc=\fR\fIcompiler\fR] [\fB\-\-build\-from\-source\fR|\fB\-\-force\-bottle\fR] [\fB\-\-devel\fR|\fB\-\-HEAD\fR] \fIformula\fR
+Install \fIformula\fR\.
.
.IP
\fIformula\fR is usually the name of the formula to install, but it can be specified several different ways\. See \fISPECIFYING FORMULAE\fR\.
@@ -235,23 +256,27 @@ If \fB\-\-HEAD\fR is passed, and \fIformula\fR defines it, install the HEAD vers
.IP
To install a newer version of HEAD use \fBbrew rm <foo> && brew install \-\-HEAD <foo>\fR\.
.
-.IP "\(bu" 4
-\fBinstall \-\-interactive\fR [\fB\-\-git\fR] \fIformula\fR: Download and patch \fIformula\fR, then open a shell\. This allows the user to run \fB\./configure \-\-help\fR and otherwise determine how to turn the software package into a Homebrew formula\.
+.TP
+\fBinstall \-\-interactive\fR [\fB\-\-git\fR] \fIformula\fR
+Download and patch \fIformula\fR, then open a shell\. This allows the user to run \fB\./configure \-\-help\fR and otherwise determine how to turn the software package into a Homebrew formula\.
.
.IP
If \fB\-\-git\fR is passed, Homebrew will create a Git repository, useful for creating patches to the software\.
.
-.IP "\(bu" 4
-\fBirb\fR [\fB\-\-examples\fR]: Enter the interactive Homebrew Ruby shell\.
+.TP
+\fBirb\fR [\fB\-\-examples\fR]
+Enter the interactive Homebrew Ruby shell\.
.
.IP
If \fB\-\-examples\fR is passed, several examples will be shown\.
.
-.IP "\(bu" 4
-\fBleaves\fR: Show installed formulae that are not dependencies of another installed formula\.
+.TP
+\fBleaves\fR
+Show installed formulae that are not dependencies of another installed formula\.
.
-.IP "\(bu" 4
-\fBln\fR, \fBlink\fR [\fB\-\-overwrite\fR] [\fB\-\-dry\-run\fR] [\fB\-\-force\fR] \fIformula\fR: Symlink all of \fIformula\fR\'s installed files into the Homebrew prefix\. This is done automatically when you install formulae but can be useful for DIY installations\.
+.TP
+\fBln\fR, \fBlink\fR [\fB\-\-overwrite\fR] [\fB\-\-dry\-run\fR] [\fB\-\-force\fR] \fIformula\fR
+Symlink all of \fIformula\fR\'s installed files into the Homebrew prefix\. This is done automatically when you install formulae but can be useful for DIY installations\.
.
.IP
If \fB\-\-overwrite\fR is passed, Homebrew will delete files which already exist in the prefix while linking\.
@@ -262,47 +287,55 @@ If \fB\-\-dry\-run\fR or \fB\-n\fR is passed, Homebrew will list all files which
.IP
If \fB\-\-force\fR is passed, Homebrew will allow keg\-only formulae to be linked\.
.
-.IP "\(bu" 4
-\fBlinkapps\fR [\fB\-\-local\fR] [\fIformulae\fR]: Find installed formulae that have compiled \fB\.app\fR\-style "application" packages for OS X, and symlink those apps into \fB/Applications\fR, allowing for easier access\.
+.TP
+\fBlinkapps\fR [\fB\-\-local\fR] [\fIformulae\fR]
+Find installed formulae that have compiled \fB\.app\fR\-style "application" packages for OS X, and symlink those apps into \fB/Applications\fR, allowing for easier access\.
.
.IP
If no \fIformulae\fR are provided, all of them will have their \.apps symlinked\.
.
.IP
If provided, \fB\-\-local\fR will move them into the user\'s \fB~/Applications\fR directory instead of the system directory\. It may need to be created, first\.
.
-.IP "\(bu" 4
-\fBls\fR, \fBlist\fR [\fB\-\-full\-name\fR]: List all installed formulae\. If \fB\-\-full\-name\fR is passed, print formulae with full\-qualified names\.
+.TP
+\fBls\fR, \fBlist\fR [\fB\-\-full\-name\fR]
+List all installed formulae\. If \fB\-\-full\-name\fR is passed, print formulae with full\-qualified names\.
.
-.IP "\(bu" 4
-\fBls\fR, \fBlist \-\-unbrewed\fR: List all files in the Homebrew prefix not installed by Homebrew\.
+.TP
+\fBls\fR, \fBlist \-\-unbrewed\fR
+List all files in the Homebrew prefix not installed by Homebrew\.
.
-.IP "\(bu" 4
-\fBls\fR, \fBlist\fR [\fB\-\-versions\fR [\fB\-\-multiple\fR]] [\fB\-\-pinned\fR] [\fIformulae\fR]: List the installed files for \fIformulae\fR\. Combined with \fB\-\-verbose\fR, recursively list the contents of all subdirectories in each \fIformula\fR\'s keg\.
+.TP
+\fBls\fR, \fBlist\fR [\fB\-\-versions\fR [\fB\-\-multiple\fR]] [\fB\-\-pinned\fR] [\fIformulae\fR]
+List the installed files for \fIformulae\fR\. Combined with \fB\-\-verbose\fR, recursively list the contents of all subdirectories in each \fIformula\fR\'s keg\.
.
.IP
If \fB\-\-versions\fR is passed, show the version number for installed formulae, or only the specified formulae if \fIformulae\fR are given\. With \fB\-\-multiple\fR, only show formulae with multiple versions installed\.
.
.IP
If \fB\-\-pinned\fR is passed, show the versions of pinned formulae, or only the specified (pinned) formulae if \fIformulae\fR are given\. See also \fBpin\fR, \fBunpin\fR\.
.
-.IP "\(bu" 4
-\fBlog\fR [\fBgit\-log\-options\fR] \fIformula\fR \.\.\.: Show the git log for the given formulae\. Options that \fBgit\-log\fR(1) recognizes can be passed before the formula list\.
+.TP
+\fBlog\fR [\fBgit\-log\-options\fR] \fIformula\fR \.\.\.
+Show the git log for the given formulae\. Options that \fBgit\-log\fR(1) recognizes can be passed before the formula list\.
.
-.IP "\(bu" 4
-\fBmissing\fR [\fIformulae\fR]: Check the given \fIformulae\fR for missing dependencies\.
+.TP
+\fBmissing\fR [\fIformulae\fR]
+Check the given \fIformulae\fR for missing dependencies\.
.
.IP
If no \fIformulae\fR are given, check all installed brews\.
.
-.IP "\(bu" 4
-\fBmigrate\fR [\fB\-\-force\fR] \fIformulae\fR: Migrate renamed packages to new name, where \fIformulae\fR are old names of packages\.
+.TP
+\fBmigrate\fR [\fB\-\-force\fR] \fIformulae\fR
+Migrate renamed packages to new name, where \fIformulae\fR are old names of packages\.
.
.IP
If \fB\-\-force\fR is passed, then treat installed \fIformulae\fR and passed \fIformulae\fR like if they are from same taps and migrate them anyway\.
.
-.IP "\(bu" 4
-\fBoptions\fR [\fB\-\-compact\fR] [\fB\-\-all\fR] [\fB\-\-installed\fR] \fIformula\fR: Display install options specific to \fIformula\fR\.
+.TP
+\fBoptions\fR [\fB\-\-compact\fR] [\fB\-\-all\fR] [\fB\-\-installed\fR] \fIformula\fR
+Display install options specific to \fIformula\fR\.
.
.IP
If \fB\-\-compact\fR is passed, show all options on a single line separated by spaces\.
@@ -313,8 +346,9 @@ If \fB\-\-all\fR is passed, show options for all formulae\.
.IP
If \fB\-\-installed\fR is passed, show options for all installed formulae\.
.
-.IP "\(bu" 4
-\fBoutdated\fR [\fB\-\-quiet\fR|\fB\-\-verbose\fR|\fB\-\-json=v1\fR]: Show formulae that have an updated version available\.
+.TP
+\fBoutdated\fR [\fB\-\-quiet\fR|\fB\-\-verbose\fR|\fB\-\-json=v1\fR]
+Show formulae that have an updated version available\.
.
.IP
By default, version information is displayed in interactive shells, and suppressed otherwise\.
@@ -328,82 +362,99 @@ If \fB\-\-verbose\fR is passed, display detailed version information\.
.IP
If \fB\-\-json=\fR\fIversion\fR is passed, the output will be in JSON format\. The only valid version is \fBv1\fR\.
.
-.IP "\(bu" 4
-\fBpin\fR \fIformulae\fR: Pin the specified \fIformulae\fR, preventing them from being upgraded when issuing the \fBbrew upgrade\fR command\. See also \fBunpin\fR\.
+.TP
+\fBpin\fR \fIformulae\fR
+Pin the specified \fIformulae\fR, preventing them from being upgraded when issuing the \fBbrew upgrade\fR command\. See also \fBunpin\fR\.
.
-.IP "\(bu" 4
-\fBprune\fR: Remove dead symlinks from the Homebrew prefix\. This is generally not needed, but can be useful when doing DIY installations\.
+.TP
+\fBprune\fR
+Remove dead symlinks from the Homebrew prefix\. This is generally not needed, but can be useful when doing DIY installations\.
.
-.IP "\(bu" 4
-\fBreinstall\fR \fIformula\fR: Uninstall then install \fIformula\fR
+.TP
+\fBreinstall\fR \fIformula\fR
+Uninstall then install \fIformula\fR
.
-.IP "\(bu" 4
-\fBrm\fR, \fBremove\fR, \fBuninstall\fR [\fB\-\-force\fR] \fIformula\fR: Uninstall \fIformula\fR\.
+.TP
+\fBrm\fR, \fBremove\fR, \fBuninstall\fR [\fB\-\-force\fR] \fIformula\fR
+Uninstall \fIformula\fR\.
.
.IP
If \fB\-\-force\fR is passed, and there are multiple versions of \fIformula\fR installed, delete all installed versions\.
.
-.IP "\(bu" 4
-\fBsearch\fR, \fB\-S\fR: Display all locally available formulae for brewing (including tapped ones)\. No online search is performed if called without arguments\.
-.
-.IP "\(bu" 4
-\fBsearch\fR, \fB\-S\fR \fItext\fR|\fB/\fR\fItext\fR\fB/\fR: Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is surrounded with slashes, then it is interpreted as a regular expression\. The search for \fItext\fR is extended online to some popular taps\.
+.TP
+\fBsearch\fR, \fB\-S\fR
+Display all locally available formulae for brewing (including tapped ones)\. No online search is performed if called without arguments\.
.
-.IP "\(bu" 4
-\fBsearch \-\-debian\fR|\fB\-\-fedora\fR|\fB\-\-fink\fR|\fB\-\-macports\fR|\fB\-\-opensuse\fR|\fB\-\-ubuntu\fR \fItext\fR: Search for \fItext\fR in the given package manager\'s list\.
+.TP
+\fBsearch\fR, \fB\-S\fR \fItext\fR|\fB/\fR\fItext\fR\fB/\fR
+Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is surrounded with slashes, then it is interpreted as a regular expression\. The search for \fItext\fR is extended online to some popular taps\.
.
-.IP "\(bu" 4
-\fBsh\fR [\fB\-\-env=std\fR]: Instantiate a Homebrew build environment\. Uses our years\-battle\-hardened Homebrew build logic to help your \fB\./configure && make && make install\fR or even your \fBgem install\fR succeed\. Especially handy if you run Homebrew in an Xcode\-only configuration since it adds tools like \fBmake\fR to your \fBPATH\fR which otherwise build\-systems would not find\.
+.TP
+\fBsearch \-\-debian\fR|\fB\-\-fedora\fR|\fB\-\-fink\fR|\fB\-\-macports\fR|\fB\-\-opensuse\fR|\fB\-\-ubuntu\fR \fItext\fR
+Search for \fItext\fR in the given package manager\'s list\.
.
-.IP "\(bu" 4
-\fBswitch\fR \fIname\fR \fIversion\fR: Symlink all of the specific \fIversion\fR of \fIname\fR\'s install to Homebrew prefix\.
+.TP
+\fBsh\fR [\fB\-\-env=std\fR]
+Instantiate a Homebrew build environment\. Uses our years\-battle\-hardened Homebrew build logic to help your \fB\./configure && make && make install\fR or even your \fBgem install\fR succeed\. Especially handy if you run Homebrew in an Xcode\-only configuration since it adds tools like \fBmake\fR to your \fBPATH\fR which otherwise build\-systems would not find\.
.
-.IP "\(bu" 4
-\fBtap\fR [\fB\-\-full\fR] \fIuser\fR\fB/\fR\fIrepo\fR [\fIURL\fR]: Tap a formula repository or list existing taps\. This command can be invoked in three ways\.
+.TP
+\fBswitch\fR \fIname\fR \fIversion\fR
+Symlink all of the specific \fIversion\fR of \fIname\fR\'s install to Homebrew prefix\.
.
-.IP "\(bu" 4
-\fBtap\fR without arguments displays existing taps\.
+.TP
+\fBtap\fR
+List all installed taps\.
.
-.IP "\(bu" 4
-\fBtap\fR \fIuser\fR\fB/\fR\fIrepo\fR taps a formula repository from GitHub using HTTPS\. Since so many taps are hosted on GitHub, this command is a shortcut for \fBtap <user>/<repo> https://github\.com/<user>/homebrew\-<repo>\fR\.
+.TP
+\fBtap\fR [\fB\-\-full\fR] \fIuser\fR\fB/\fR\fIrepo\fR [\fIURL\fR]
+Tap a formula repository\.
.
-.IP "\(bu" 4
-\fBtap\fR \fIuser\fR\fB/\fR\fIrepo\fR \fIURL\fR taps a formula repository from anywhere, using any transport protocol that \fBgit\fR handles\. The one\-argument form of \fBtap\fR simplifies but also limits\. This two\-argument command makes no assumptions, so taps can be cloned from places other than GitHub and using protocols other than HTTPS, e\.g\., SSH, GIT, HTTP, FTP(S), RSYNC\.
+.IP
+With \fIURL\fR unspecified, taps a formula repository from GitHub using HTTPS\. Since so many taps are hosted on GitHub, this command is a shortcut for \fBtap <user>/<repo> https://github\.com/<user>/homebrew\-<repo>\fR\.
.
-.IP "" 0
+.IP
+With \fIURL\fR specified, taps a formula repository from anywhere, using any transport protocol that \fBgit\fR handles\. The one\-argument form of \fBtap\fR simplifies but also limits\. This two\-argument command makes no assumptions, so taps can be cloned from places other than GitHub and using protocols other than HTTPS, e\.g\., SSH, GIT, HTTP, FTP(S), RSYNC\.
.
.IP
By default, the repository is cloned as a shallow copy (\fB\-\-depth=1\fR), but if \fB\-\-full\fR is passed, a full clone will be used\.
.
-.IP "\(bu" 4
-\fBtap \-\-repair\fR: Migrate tapped formulae from symlink\-based to directory\-based structure\.
+.TP
+\fBtap \-\-repair\fR
+Migrate tapped formulae from symlink\-based to directory\-based structure\.
.
-.IP "\(bu" 4
-\fBtap \-\-list\-official\fR: List all official taps\.
+.TP
+\fBtap \-\-list\-official\fR
+List all official taps\.
.
-.IP "\(bu" 4
-\fBtap \-\-list\-pinned\fR: List all pinned taps\.
+.TP
+\fBtap \-\-list\-pinned\fR
+List all pinned taps\.
.
-.IP "\(bu" 4
-\fBtap\-info\fR \fItap\fR: Display information about \fItap\fR\.
+.TP
+\fBtap\-info\fR \fItap\fR
+Display information about \fItap\fR\.
.
-.IP "\(bu" 4
-\fBtap\-info\fR \fB\-\-json=\fR\fIversion\fR (\fB\-\-installed\fR|\fItaps\fR): Print a JSON representation of \fItaps\fR\. Currently the only accepted value for \fIversion\fR is \fBv1\fR\.
+.TP
+\fBtap\-info\fR \fB\-\-json=\fR\fIversion\fR (\fB\-\-installed\fR|\fItaps\fR)
+Print a JSON representation of \fItaps\fR\. Currently the only accepted value for \fIversion\fR is \fBv1\fR\.
.
.IP
Pass \fB\-\-installed\fR to get information on installed taps\.
.
.IP
See the docs for examples of using the JSON: \fIhttps://github\.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Querying\-Brew\.md\fR
.
-.IP "\(bu" 4
-\fBtap\-pin\fR \fItap\fR: Pin \fItap\fR, prioritizing its formulae over core when formula names are supplied by the user\. See also \fBtap\-unpin\fR\.
+.TP
+\fBtap\-pin\fR \fItap\fR
+Pin \fItap\fR, prioritizing its formulae over core when formula names are supplied by the user\. See also \fBtap\-unpin\fR\.
.
-.IP "\(bu" 4
-\fBtap\-unpin\fR \fItap\fR: Unpin \fItap\fR so its formulae are no longer prioritized\. See also \fBtap\-pin\fR\.
+.TP
+\fBtap\-unpin\fR \fItap\fR
+Unpin \fItap\fR so its formulae are no longer prioritized\. See also \fBtap\-pin\fR\.
.
-.IP "\(bu" 4
-\fBtest\fR [\fB\-\-devel\fR|\fB\-\-HEAD\fR] [\fB\-\-debug\fR] \fIformula\fR: A few formulae provide a test method\. \fBbrew test\fR \fIformula\fR runs this test method\. There is no standard output or return code, but it should generally indicate to the user if something is wrong with the installed formula\.
+.TP
+\fBtest\fR [\fB\-\-devel\fR|\fB\-\-HEAD\fR] [\fB\-\-debug\fR] \fIformula\fR
+A few formulae provide a test method\. \fBbrew test\fR \fIformula\fR runs this test method\. There is no standard output or return code, but it should generally indicate to the user if something is wrong with the installed formula\.
.
.IP
To test the development or head version of a formula, use \fB\-\-devel\fR or \fB\-\-HEAD\fR\.
@@ -414,41 +465,48 @@ If \fB\-\-debug\fR is passed and the test fails, an interactive debugger will be
.IP
Example: \fBbrew install jruby && brew test jruby\fR
.
-.IP "\(bu" 4
-\fBunlink\fR [\fB\-\-dry\-run\fR] \fIformula\fR: Remove symlinks for \fIformula\fR from the Homebrew prefix\. This can be useful for temporarily disabling a formula: \fBbrew unlink foo && commands && brew link foo\fR\.
+.TP
+\fBunlink\fR [\fB\-\-dry\-run\fR] \fIformula\fR
+Remove symlinks for \fIformula\fR from the Homebrew prefix\. This can be useful for temporarily disabling a formula: \fBbrew unlink foo && commands && brew link foo\fR\.
.
.IP
If \fB\-\-dry\-run\fR or \fB\-n\fR is passed, Homebrew will list all files which would be unlinked, but will not actually unlink or delete any files\.
.
-.IP "\(bu" 4
-\fBunlinkapps\fR [\fB\-\-local\fR] [\fIformulae\fR]: Removes links created by \fBbrew linkapps\fR\.
+.TP
+\fBunlinkapps\fR [\fB\-\-local\fR] [\fIformulae\fR]
+Removes links created by \fBbrew linkapps\fR\.
.
.IP
If no \fIformulae\fR are provided, all linked app will be removed\.
.
-.IP "\(bu" 4
-\fBunpack\fR [\fB\-\-git\fR|\fB\-\-patch\fR] [\fB\-\-destdir=\fR\fIpath\fR] \fIformulae\fR: Unpack the source files for \fIformulae\fR into subdirectories of the current working directory\. If \fB\-\-destdir=\fR\fIpath\fR is given, the subdirectories will be created in the directory named by \fB<path>\fR instead\.
+.TP
+\fBunpack\fR [\fB\-\-git\fR|\fB\-\-patch\fR] [\fB\-\-destdir=\fR\fIpath\fR] \fIformulae\fR
+Unpack the source files for \fIformulae\fR into subdirectories of the current working directory\. If \fB\-\-destdir=\fR\fIpath\fR is given, the subdirectories will be created in the directory named by \fB<path>\fR instead\.
.
.IP
If \fB\-\-patch\fR is passed, patches for \fIformulae\fR will be applied to the unpacked source\.
.
.IP
If \fB\-\-git\fR is passed, a Git repository will be initalized in the unpacked source\. This is useful for creating patches for the software\.
.
-.IP "\(bu" 4
-\fBunpin\fR \fIformulae\fR: Unpin \fIformulae\fR, allowing them to be upgraded by \fBbrew upgrade\fR\. See also \fBpin\fR\.
+.TP
+\fBunpin\fR \fIformulae\fR
+Unpin \fIformulae\fR, allowing them to be upgraded by \fBbrew upgrade\fR\. See also \fBpin\fR\.
.
-.IP "\(bu" 4
-\fBuntap\fR \fItap\fR: Remove a tapped repository\.
+.TP
+\fBuntap\fR \fItap\fR
+Remove a tapped repository\.
.
-.IP "\(bu" 4
-\fBupdate\fR [\fB\-\-rebase\fR]: Fetch the newest version of Homebrew and all formulae from GitHub using \fBgit\fR(1)\.
+.TP
+\fBupdate\fR [\fB\-\-rebase\fR]
+Fetch the newest version of Homebrew and all formulae from GitHub using \fBgit\fR(1)\.
.
.IP
If \fB\-\-rebase\fR is specified then \fBgit pull \-\-rebase\fR is used\.
.
-.IP "\(bu" 4
-\fBupgrade\fR [\fIinstall\-options\fR] [\fB\-\-cleanup\fR] [\fIformulae\fR]: Upgrade outdated, unpinned brews\.
+.TP
+\fBupgrade\fR [\fIinstall\-options\fR] [\fB\-\-cleanup\fR] [\fIformulae\fR]
+Upgrade outdated, unpinned brews\.
.
.IP
Options for the \fBinstall\fR command are also valid here\.
@@ -459,8 +517,9 @@ If \fB\-\-cleanup\fR is specified then remove previously installed \fIformula\fR
.IP
If \fIformulae\fR are given, upgrade only the specified brews (but do so even if they are pinned; see \fBpin\fR, \fBunpin\fR)\.
.
-.IP "\(bu" 4
-\fBuses\fR [\fB\-\-installed\fR] [\fB\-\-recursive\fR] [\fB\-\-skip\-build\fR] [\fB\-\-skip\-optional\fR] [\fB\-\-devel\fR|\fB\-\-HEAD\fR] \fIformulae\fR: Show the formulae that specify \fIformulae\fR as a dependency\. When given multiple formula arguments, show the intersection of formulae that use \fIformulae\fR\.
+.TP
+\fBuses\fR [\fB\-\-installed\fR] [\fB\-\-recursive\fR] [\fB\-\-skip\-build\fR] [\fB\-\-skip\-optional\fR] [\fB\-\-devel\fR|\fB\-\-HEAD\fR] \fIformulae\fR
+Show the formulae that specify \fIformulae\fR as a dependency\. When given multiple formula arguments, show the intersection of formulae that use \fIformulae\fR\.
.
.IP
Use \fB\-\-recursive\fR to resolve more than one level of dependencies\.
@@ -474,34 +533,41 @@ By default, \fBuses\fR shows all formulae that specify \fIformulae\fR as a depen
.IP
By default, \fBuses\fR shows usages of \fBformula\fR by stable builds\. To find cases where \fBformula\fR is used by development or HEAD build, pass \fB\-\-devel\fR or \fB\-\-HEAD\fR\.
.
-.IP "\(bu" 4
-\fB\-\-cache\fR: Display Homebrew\'s download cache\. See also \fBHOMEBREW_CACHE\fR\.
-.
-.IP "\(bu" 4
-\fB\-\-cache\fR \fIformula\fR: Display the file or directory used to cache \fIformula\fR\.
+.TP
+\fB\-\-cache\fR
+Display Homebrew\'s download cache\. See also \fBHOMEBREW_CACHE\fR\.
.
-.IP "\(bu" 4
-\fB\-\-cellar\fR: Display Homebrew\'s Cellar path\. \fIDefault:\fR \fB$(brew \-\-prefix)/Cellar\fR, or if that directory doesn\'t exist, \fB$(brew \-\-repository)/Cellar\fR\.
+.TP
+\fB\-\-cache\fR \fIformula\fR
+Display the file or directory used to cache \fIformula\fR\.
.
-.IP "\(bu" 4
-\fB\-\-cellar\fR \fIformula\fR: Display the location in the cellar where \fIformula\fR would be installed, without any sort of versioned directory as the last path\.
+.TP
+\fB\-\-cellar\fR
+Display Homebrew\'s Cellar path\. \fIDefault:\fR \fB$(brew \-\-prefix)/Cellar\fR, or if that directory doesn\'t exist, \fB$(brew \-\-repository)/Cellar\fR\.
.
-.IP "\(bu" 4
-\fB\-\-env\fR: Show a summary of the Homebrew build environment\.
+.TP
+\fB\-\-cellar\fR \fIformula\fR
+Display the location in the cellar where \fIformula\fR would be installed, without any sort of versioned directory as the last path\.
.
-.IP "\(bu" 4
-\fB\-\-prefix\fR: Display Homebrew\'s install path\. \fIDefault:\fR \fB/usr/local\fR
+.TP
+\fB\-\-env\fR
+Show a summary of the Homebrew build environment\.
.
-.IP "\(bu" 4
-\fB\-\-prefix\fR \fIformula\fR: Display the location in the cellar where \fIformula\fR is or would be installed\.
+.TP
+\fB\-\-prefix\fR
+Display Homebrew\'s install path\. \fIDefault:\fR \fB/usr/local\fR
.
-.IP "\(bu" 4
-\fB\-\-repository\fR: Display where Homebrew\'s \fB\.git\fR directory is located\. For standard installs, the \fBprefix\fR and \fBrepository\fR are the same directory\.
+.TP
+\fB\-\-prefix\fR \fIformula\fR
+Display the location in the cellar where \fIformula\fR is or would be installed\.
.
-.IP "\(bu" 4
-\fB\-\-version\fR: Print the version number of brew to standard error and exit\.
+.TP
+\fB\-\-repository\fR
+Display where Homebrew\'s \fB\.git\fR directory is located\. For standard installs, the \fBprefix\fR and \fBrepository\fR are the same directory\.
.
-.IP "" 0
+.TP
+\fB\-\-version\fR
+Print the version number of brew to standard error and exit\.
.
.SH "EXTERNAL COMMANDS"
Homebrew, like \fBgit\fR(1), supports external commands\. These are executable scripts that reside somewhere in the \fBPATH\fR, named \fBbrew\-\fR\fIcmdname\fR or \fBbrew\-\fR\fIcmdname\fR\fB\.rb\fR, which can be invoked like \fBbrew\fR \fIcmdname\fR\. This allows you to create your own commands without modifying Homebrew\'s internals\. | true |
Other | Homebrew | brew | d2a44869f0b49f210c42bfe12787fa215a6c150e.json | test-bot: remove dead code. | Library/Homebrew/cmd/test-bot.rb | @@ -52,16 +52,6 @@ def resolve_test_tap
end
end
- if git_url = ENV["UPSTREAM_GIT_URL"] || ENV["GIT_URL"]
- # Also can get tap from Jenkins GIT_URL.
- url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/")
- begin
- tap = Tap.fetch(tap)
- return tap unless tap.core_formula_repository?
- rescue
- end
- end
-
# return nil means we are testing core repo.
end
| false |
Other | Homebrew | brew | 6d1959b265d8ccee81bd32f59bb71b71b070a06a.json | Remove Git Conflict Markers in Documentation
`Formula-Cookbook.md` contains leftover git conflict markers introduced
in 15f291ddaa05cc010456a733b799382175c29dd4.
This commit removes the conflict makers and a duplicated paragraph.
Closes Homebrew/homebrew#46836.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | share/doc/homebrew/Formula-Cookbook.md | @@ -755,8 +755,7 @@ For example, Ruby 1.9’s gems should be installed to `var/lib/ruby/` so that ge
### launchd plist files
-<<<<<<< 12f42a6761cb29ed3c9715fe2cbccff02bdc448f
-Homebrew provides two Formula methods for launchd plist files. `plist_name` will return `homebrew.mxcl.<formula>`, and `plist_path` will return, for example, `/usr/local/Cellar/foo/0.1/homebrew.mxcl.foo.plist`.
+Homebrew provides two Formula methods for launchd plist files. [`plist_name`](http://www.rubydoc.info/github/Homebrew/homebrew/master/Formula#plist_name-instance_method) will return e.g. `homebrew.mxcl.<formula>` and [`plist_path`](http://www.rubydoc.info/github/Homebrew/homebrew/master/Formula#plist_path-instance_method) will return e.g. `/usr/local/Cellar/foo/0.1/homebrew.mxcl.foo.plist`.
## Updating formulae
@@ -773,11 +772,6 @@ Homebrew wants to maintain a consistent Ruby style across all formulae based on
* The order of methods in a formula should be consistent with other formulae (e.g.: `def patches` goes before `def install`)
* An empty line is required before the `__END__` line
-
-=======
-Homebrew provides two Formula methods for launchd plist files. [`plist_name`](http://www.rubydoc.info/github/Homebrew/homebrew/master/Formula#plist_name-instance_method) will return e.g. `homebrew.mxcl.<formula>` and [`plist_path`](http://www.rubydoc.info/github/Homebrew/homebrew/master/Formula#plist_path-instance_method) will return e.g. `/usr/local/Cellar/foo/0.1/homebrew.mxcl.foo.plist`.
->>>>>>> Overhaul, simplify and cleanup documentation.
-
# Troubleshooting for people writing new formulae
### Version detection fails | false |
Other | Homebrew | brew | d36d88edf27ead55adb6efe312f7f70f090b729d.json | Allow taps to link manpages.
A blocker for https://github.com/caskroom/homebrew-cask/pull/15381
being merged.
Closes Homebrew/homebrew#46795. | Library/Homebrew/cmd/tap.rb | @@ -5,6 +5,7 @@ def tap
if ARGV.empty?
puts Tap.names
elsif ARGV.first == "--repair"
+ Tap.each(&:link_manpages)
migrate_taps :force => true
elsif ARGV.first == "--list-official"
require "official_taps" | true |
Other | Homebrew | brew | d36d88edf27ead55adb6efe312f7f70f090b729d.json | Allow taps to link manpages.
A blocker for https://github.com/caskroom/homebrew-cask/pull/15381
being merged.
Closes Homebrew/homebrew#46795. | Library/Homebrew/cmd/update.rb | @@ -76,6 +76,7 @@ def update
puts "Already up-to-date." unless master_updated || !updated_taps.empty?
Tap.clear_cache
+ Tap.each(&:link_manpages)
# automatically tap any migrated formulae's new tap
report.select_formula(:D).each do |f| | true |
Other | Homebrew | brew | d36d88edf27ead55adb6efe312f7f70f090b729d.json | Allow taps to link manpages.
A blocker for https://github.com/caskroom/homebrew-cask/pull/15381
being merged.
Closes Homebrew/homebrew#46795. | Library/Homebrew/tap.rb | @@ -138,6 +138,8 @@ def install(options = {})
raise
end
+ link_manpages
+
formula_count = formula_files.size
puts "Tapped #{formula_count} formula#{plural(formula_count, "e")} (#{path.abv})"
Descriptions.cache_formulae(formula_names)
@@ -153,6 +155,29 @@ def install(options = {})
end
end
+ def link_manpages
+ return unless (path/"man").exist?
+ conflicts = []
+ (path/"man").find do |src|
+ next if src.directory?
+ dst = HOMEBREW_PREFIX/"share"/src.relative_path_from(path)
+ next if dst.symlink? && src == dst.resolved_path
+ if dst.exist?
+ conflicts << dst
+ next
+ end
+ dst.make_relative_symlink(src)
+ end
+ unless conflicts.empty?
+ onoe <<-EOS.undent
+ Could not link #{name} manpages to:
+ #{conflicts.join("\n")}
+
+ Please delete these files and run `brew tap --repair`.
+ EOS
+ end
+ end
+
# uninstall this {Tap}.
def uninstall
raise TapUnavailableError, name unless installed?
@@ -161,11 +186,22 @@ def uninstall
unpin if pinned?
formula_count = formula_files.size
Descriptions.uncache_formulae(formula_names)
+ unlink_manpages
path.rmtree
- path.dirname.rmdir_if_possible
+ path.parent.rmdir_if_possible
puts "Untapped #{formula_count} formula#{plural(formula_count, "e")}"
end
+ def unlink_manpages
+ return unless (path/"man").exist?
+ (path/"man").find do |src|
+ next if src.directory?
+ dst = HOMEBREW_PREFIX/src.relative_path_from(path)
+ dst.delete if dst.symlink? && src == dst.resolved_path
+ dst.parent.rmdir_if_possible
+ end
+ end
+
# True if the {#remote} of {Tap} is customized.
def custom_remote?
return true unless remote
@@ -262,7 +298,7 @@ def unpin
raise TapUnavailableError, name unless installed?
raise TapPinStatusError.new(name, false) unless pinned?
pinned_symlink_path.delete
- pinned_symlink_path.dirname.rmdir_if_possible
+ pinned_symlink_path.parent.rmdir_if_possible
@pinned = false
end
| true |
Other | Homebrew | brew | b100ad223d24bef79bc2e40491b68aa06c434465.json | Tap#==: allow compare with string | Library/Homebrew/tap.rb | @@ -297,6 +297,11 @@ def formula_renames
end
end
+ def ==(other)
+ other = Tap.fetch(other) if other.is_a?(String)
+ self.class == other.class && self.name == other.name
+ end
+
def self.each
return unless TAP_DIRECTORY.directory?
| false |
Other | Homebrew | brew | 6e92609cf42c18a84c0eefd3e7dea56856330f76.json | Formulary: use same logic to handle core fully-qualified name | Library/Homebrew/cmd/install.rb | @@ -14,8 +14,8 @@ def install
end
ARGV.named.each do |name|
- if !File.exist?(name) && (name !~ HOMEBREW_CORE_FORMULA_REGEX) \
- && (name =~ HOMEBREW_TAP_FORMULA_REGEX || name =~ HOMEBREW_CASK_TAP_FORMULA_REGEX)
+ if !File.exist?(name) &&
+ (name =~ HOMEBREW_TAP_FORMULA_REGEX || name =~ HOMEBREW_CASK_TAP_FORMULA_REGEX)
tap = Tap.fetch($1, $2)
tap.install unless tap.installed?
end | true |
Other | Homebrew | brew | 6e92609cf42c18a84c0eefd3e7dea56856330f76.json | Formulary: use same logic to handle core fully-qualified name | Library/Homebrew/formulary.rb | @@ -262,14 +262,6 @@ def self.loader_for(ref)
return FromUrlLoader.new(ref)
when Pathname::BOTTLE_EXTNAME_RX
return BottleLoader.new(ref)
- when HOMEBREW_CORE_FORMULA_REGEX
- name = $1
- formula_with_that_name = core_path(name)
- if (newname = FORMULA_RENAMES[name]) && !formula_with_that_name.file?
- return FormulaLoader.new(newname, core_path(newname))
- else
- return FormulaLoader.new(name, formula_with_that_name)
- end
when HOMEBREW_TAP_FORMULA_REGEX
return TapLoader.new(ref)
end | true |
Other | Homebrew | brew | 6e92609cf42c18a84c0eefd3e7dea56856330f76.json | Formulary: use same logic to handle core fully-qualified name | Library/Homebrew/tap_constants.rb | @@ -1,7 +1,5 @@
# match taps' formulae, e.g. someuser/sometap/someformula
HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$}
-# match core's formulae, e.g. homebrew/homebrew/someformula
-HOMEBREW_CORE_FORMULA_REGEX = %r{^homebrew/homebrew/([\w+-.]+)$}i
# match taps' directory paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap
HOMEBREW_TAP_DIR_REGEX = %r{#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Taps/([\w-]+)/([\w-]+)}
# match taps' formula paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap/someformula | true |
Other | Homebrew | brew | 871ec755242f0ab174c06f582e192b2a26d085a0.json | Formula: use CoreFormulaRepository, avoid duplicated logic | Library/Homebrew/formula.rb | @@ -1051,13 +1051,13 @@ def std_cmake_args
# an array of all core {Formula} names
# @private
def self.core_names
- @core_names ||= core_files.map { |f| f.basename(".rb").to_s }.sort
+ CoreFormulaRepository.instance.formula_names
end
# an array of all core {Formula} files
# @private
def self.core_files
- @core_files ||= Pathname.glob("#{HOMEBREW_LIBRARY}/Formula/*.rb")
+ CoreFormulaRepository.instance.formula_files
end
# an array of all tap {Formula} names
@@ -1130,13 +1130,13 @@ def self.installed
# an array of all alias files of core {Formula}
# @private
def self.core_alias_files
- @core_alias_files ||= Pathname.glob("#{HOMEBREW_LIBRARY}/Aliases/*")
+ CoreFormulaRepository.instance.alias_files
end
# an array of all core aliases
# @private
def self.core_aliases
- @core_aliases ||= core_alias_files.map { |f| f.basename.to_s }.sort
+ CoreFormulaRepository.instance.aliases
end
# an array of all tap aliases
@@ -1160,24 +1160,13 @@ def self.alias_full_names
# a table mapping core alias to formula name
# @private
def self.core_alias_table
- return @core_alias_table if @core_alias_table
- @core_alias_table = Hash.new
- core_alias_files.each do |alias_file|
- @core_alias_table[alias_file.basename.to_s] = alias_file.resolved_path.basename(".rb").to_s
- end
- @core_alias_table
+ CoreFormulaRepository.instance.alias_table
end
# a table mapping core formula name to aliases
# @private
def self.core_alias_reverse_table
- return @core_alias_reverse_table if @core_alias_reverse_table
- @core_alias_reverse_table = Hash.new
- core_alias_table.each do |alias_name, formula_name|
- @core_alias_reverse_table[formula_name] ||= []
- @core_alias_reverse_table[formula_name] << alias_name
- end
- @core_alias_reverse_table
+ CoreFormulaRepository.instance.alias_reverse_table
end
def self.[](name) | false |
Other | Homebrew | brew | 2c25303949a9fa091868cbdd42fd4ff4877869fc.json | remove unnecessary tap_args
It's now handled by Tap.fetch | Library/Homebrew/cmd/readall.rb | @@ -46,7 +46,7 @@ def readall
if ARGV.named.empty?
formulae = Formula.files
else
- tap = Tap.fetch(*tap_args)
+ tap = Tap.fetch(ARGV.named.first)
raise TapUnavailableError, tap.name unless tap.installed?
formulae = tap.formula_files
end | true |
Other | Homebrew | brew | 2c25303949a9fa091868cbdd42fd4ff4877869fc.json | remove unnecessary tap_args
It's now handled by Tap.fetch | Library/Homebrew/cmd/tap-info.rb | @@ -1,15 +1,17 @@
-require "cmd/tap"
+require "tap"
module Homebrew
def tap_info
if ARGV.include? "--installed"
taps = Tap
else
taps = ARGV.named.map do |name|
- Tap.fetch(*tap_args(name))
+ Tap.fetch(name)
end
end
+ raise "Homebrew/homebrew is not allowed" if taps.any?(&:core_formula_repository?)
+
if ARGV.json == "v1"
print_tap_json(taps)
else | true |
Other | Homebrew | brew | 2c25303949a9fa091868cbdd42fd4ff4877869fc.json | remove unnecessary tap_args
It's now handled by Tap.fetch | Library/Homebrew/cmd/tap-pin.rb | @@ -1,9 +1,10 @@
-require "cmd/tap"
+require "tap"
module Homebrew
def tap_pin
ARGV.named.each do |name|
- tap = Tap.fetch(*tap_args(name))
+ tap = Tap.fetch(name)
+ raise "Homebrew/homebrew is not allowed" if tap.core_formula_repository?
tap.pin
ohai "Pinned #{tap.name}"
end | true |
Other | Homebrew | brew | 2c25303949a9fa091868cbdd42fd4ff4877869fc.json | remove unnecessary tap_args
It's now handled by Tap.fetch | Library/Homebrew/cmd/tap-unpin.rb | @@ -1,9 +1,10 @@
-require "cmd/tap"
+require "tap"
module Homebrew
def tap_unpin
ARGV.named.each do |name|
- tap = Tap.fetch(*tap_args(name))
+ tap = Tap.fetch(name)
+ raise "Homebrew/homebrew is not allowed" if tap.core_formula_repository?
tap.unpin
ohai "Unpinned #{tap.name}"
end | true |
Other | Homebrew | brew | 2c25303949a9fa091868cbdd42fd4ff4877869fc.json | remove unnecessary tap_args
It's now handled by Tap.fetch | Library/Homebrew/cmd/tap.rb | @@ -12,8 +12,7 @@ def tap
elsif ARGV.first == "--list-pinned"
puts Tap.select(&:pinned?).map(&:name)
else
- user, repo = tap_args
- tap = Tap.fetch(user, repo)
+ tap = Tap.fetch(ARGV.named[0])
begin
tap.install(:clone_target => ARGV.named[1],
:full_clone => ARGV.include?("--full"))
@@ -43,12 +42,4 @@ def migrate_taps(options = {})
(HOMEBREW_LIBRARY/"Formula").children.each { |c| c.unlink if c.symlink? }
ignore.unlink if ignore.exist?
end
-
- private
-
- def tap_args(tap_name = ARGV.named.first)
- tap_name =~ HOMEBREW_TAP_ARGS_REGEX
- raise "Invalid tap name" unless $1 && $3
- [$1, $3]
- end
end | true |
Other | Homebrew | brew | 2c25303949a9fa091868cbdd42fd4ff4877869fc.json | remove unnecessary tap_args
It's now handled by Tap.fetch | Library/Homebrew/cmd/test-bot.rb | @@ -37,20 +37,29 @@ module Homebrew
def resolve_test_tap
tap = ARGV.value("tap")
- return Tap.fetch(*tap_args(tap)) if tap
+ if tap
+ tap = Tap.fetch(tap)
+ return tap unless tap.core_formula_repository?
+ end
if ENV["UPSTREAM_BOT_PARAMS"]
bot_argv = ENV["UPSTREAM_BOT_PARAMS"].split " "
bot_argv.extend HomebrewArgvExtension
tap = bot_argv.value("tap")
- return Tap.fetch(*tap_args(tap)) if tap
+ if tap
+ tap = Tap.fetch(tap)
+ return tap unless tap.core_formula_repository?
+ end
end
if git_url = ENV["UPSTREAM_GIT_URL"] || ENV["GIT_URL"]
# Also can get tap from Jenkins GIT_URL.
url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/")
- HOMEBREW_TAP_ARGS_REGEX =~ url_path
- return Tap.fetch($1, $3) if $1 && $3 && $3 != "homebrew"
+ begin
+ tap = Tap.fetch(tap)
+ return tap unless tap.core_formula_repository?
+ rescue
+ end
end
# return nil means we are testing core repo. | true |
Other | Homebrew | brew | 2c25303949a9fa091868cbdd42fd4ff4877869fc.json | remove unnecessary tap_args
It's now handled by Tap.fetch | Library/Homebrew/cmd/untap.rb | @@ -1,11 +1,12 @@
-require "cmd/tap" # for tap_args
+require "tap"
module Homebrew
def untap
raise "Usage is `brew untap <tap-name>`" if ARGV.empty?
ARGV.named.each do |tapname|
- tap = Tap.fetch(*tap_args(tapname))
+ tap = Tap.fetch(tapname)
+ raise "Homebrew/homebrew is not allowed" if tap.core_formula_repository?
tap.uninstall
end
end | true |
Other | Homebrew | brew | 2c25303949a9fa091868cbdd42fd4ff4877869fc.json | remove unnecessary tap_args
It's now handled by Tap.fetch | Library/Homebrew/tap_constants.rb | @@ -1,5 +1,3 @@
-# match expressions when taps are given as ARGS, e.g. someuser/sometap
-HOMEBREW_TAP_ARGS_REGEX = %r{^([\w-]+)/(homebrew-)?([\w-]+)$}
# match taps' formulae, e.g. someuser/sometap/someformula
HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$}
# match core's formulae, e.g. homebrew/homebrew/someformula | true |
Other | Homebrew | brew | 9f7a383017d3ed3cb4aedfbcdb58fd03eaa4599c.json | add CoreFormulaRepository singleton class | Library/Homebrew/tap.rb | @@ -16,10 +16,25 @@ def self.clear_cache
CACHE.clear
end
- def self.fetch(user, repo)
+ def self.fetch(*args)
+ case args.length
+ when 1
+ user, repo = args.first.split("/", 2)
+ when 2
+ user = args[0]
+ repo = args[1]
+ end
+
+ raise "Invalid tap name" unless user && repo
+
# we special case homebrew so users don't have to shift in a terminal
user = "Homebrew" if user == "homebrew"
repo = repo.strip_prefix "homebrew-"
+
+ if user == "Homebrew" && repo == "homebrew"
+ return CoreFormulaRepository.instance
+ end
+
cache_key = "#{user}/#{repo}".downcase
CACHE.fetch(cache_key) { |key| CACHE[key] = Tap.new(user, repo) }
end
@@ -302,3 +317,77 @@ def alias_file_to_name(file)
"#{name}/#{file.basename}"
end
end
+
+# A specialized {Tap} class to mimic the core formula file system, which shares many
+# similarities with normal {Tap}.
+# TODO Separate core formulae with core codes. See discussion below for future plan:
+# https://github.com/Homebrew/homebrew/pull/46735#discussion_r46820565
+class CoreFormulaRepository < Tap
+ # @private
+ def initialize
+ @user = "Homebrew"
+ @repo = "homebrew"
+ @name = "Homebrew/homebrew"
+ @path = HOMEBREW_REPOSITORY
+ end
+
+ def self.instance
+ @instance ||= CoreFormulaRepository.new
+ end
+
+ # @private
+ def uninstall
+ raise "Tap#uninstall is not available for CoreFormulaRepository"
+ end
+
+ # @private
+ def pin
+ raise "Tap#pin is not available for CoreFormulaRepository"
+ end
+
+ # @private
+ def unpin
+ raise "Tap#unpin is not available for CoreFormulaRepository"
+ end
+
+ # @private
+ def pinned?
+ false
+ end
+
+ # @private
+ def command_files
+ []
+ end
+
+ # @private
+ def custom_remote?
+ remote != "https://github.com/#{user}/#{repo}.git"
+ end
+
+ # @private
+ def formula_dir
+ HOMEBREW_LIBRARY/"Formula"
+ end
+
+ # @private
+ def alias_dir
+ HOMEBREW_LIBRARY/"Aliases"
+ end
+
+ # @private
+ def formula_renames
+ require "formula_renames"
+ FORMULA_RENAMES
+ end
+
+ private
+
+ def formula_file_to_name(file)
+ file.basename(".rb").to_s
+ end
+
+ def alias_file_to_name(file)
+ file.basename.to_s
+ end
+end | false |
Other | Homebrew | brew | c2a5a8388f81d8160df61f6ccd4b9161921bd1e5.json | Tap: add formula_file_to_name and alias_file_to_name | Library/Homebrew/tap.rb | @@ -168,7 +168,7 @@ def formula_files
# an array of all {Formula} names of this {Tap}.
def formula_names
- @formula_names ||= formula_files.map { |f| "#{name}/#{f.basename(".rb")}" }
+ @formula_names ||= formula_files.map { |f| formula_file_to_name(f) }
end
# path to the directory of all alias files for this {Tap}.
@@ -186,7 +186,7 @@ def alias_files
# an array of all aliases of this {Tap}.
# @private
def aliases
- @aliases ||= alias_files.map { |f| "#{name}/#{f.basename}" }
+ @aliases ||= alias_files.map { |f| alias_file_to_name(f) }
end
# a table mapping alias to formula name
@@ -195,7 +195,7 @@ def alias_table
return @alias_table if @alias_table
@alias_table = Hash.new
alias_files.each do |alias_file|
- @alias_table["#{name}/#{alias_file.basename}"] = "#{name}/#{alias_file.resolved_path.basename(".rb")}"
+ @alias_table[alias_file_to_name(alias_file)] = formula_file_to_name(alias_file.resolved_path)
end
@alias_table
end
@@ -291,4 +291,14 @@ def self.each
def self.names
map(&:name)
end
+
+ private
+
+ def formula_file_to_name(file)
+ "#{name}/#{file.basename(".rb")}"
+ end
+
+ def alias_file_to_name(file)
+ "#{name}/#{file.basename}"
+ end
end | false |
Other | Homebrew | brew | 89bd945bb7d623571da389db0167843fdbc805d6.json | Tap: use method instead of variable | Library/Homebrew/tap.rb | @@ -55,7 +55,7 @@ def initialize(user, repo)
def remote
@remote ||= if installed?
if git?
- @path.cd do
+ path.cd do
Utils.popen_read("git", "config", "--get", "remote.origin.url").chomp
end
end
@@ -66,7 +66,7 @@ def remote
# True if this {Tap} is a git repository.
def git?
- (@path/".git").exist?
+ (path/".git").exist?
end
def to_s
@@ -75,13 +75,13 @@ def to_s
# True if this {Tap} is an official Homebrew tap.
def official?
- @user == "Homebrew"
+ user == "Homebrew"
end
# True if the remote of this {Tap} is a private repository.
def private?
return true if custom_remote?
- GitHub.private_repo?(@user, "homebrew-#{@repo}")
+ GitHub.private_repo?(user, "homebrew-#{repo}")
rescue GitHub::HTTPNotFoundError
true
rescue GitHub::Error
@@ -90,7 +90,7 @@ def private?
# True if this {Tap} has been installed.
def installed?
- @path.directory?
+ path.directory?
end
# install this {Tap}.
@@ -104,31 +104,31 @@ def install(options = {})
# ensure git is installed
Utils.ensure_git_installed!
ohai "Tapping #{name}"
- remote = options[:clone_target] || "https://github.com/#{@user}/homebrew-#{@repo}"
- args = %W[clone #{remote} #{@path}]
+ remote = options[:clone_target] || "https://github.com/#{user}/homebrew-#{repo}"
+ args = %W[clone #{remote} #{path}]
args << "--depth=1" unless options.fetch(:full_clone, false)
begin
safe_system "git", *args
rescue Interrupt, ErrorDuringExecution
ignore_interrupts do
sleep 0.1 # wait for git to cleanup the top directory when interrupt happens.
- @path.parent.rmdir_if_possible
+ path.parent.rmdir_if_possible
end
raise
end
formula_count = formula_files.size
- puts "Tapped #{formula_count} formula#{plural(formula_count, "e")} (#{@path.abv})"
+ puts "Tapped #{formula_count} formula#{plural(formula_count, "e")} (#{path.abv})"
Descriptions.cache_formulae(formula_names)
if !options[:clone_target] && private?
puts <<-EOS.undent
It looks like you tapped a private repository. To avoid entering your
credentials each time you update, you can use git HTTP credential
caching or issue the following command:
- cd #{@path}
- git remote set-url origin git@github.com:#{@user}/homebrew-#{@repo}.git
+ cd #{path}
+ git remote set-url origin git@github.com:#{user}/homebrew-#{repo}.git
EOS
end
end
@@ -137,24 +137,24 @@ def install(options = {})
def uninstall
raise TapUnavailableError, name unless installed?
- puts "Untapping #{name}... (#{@path.abv})"
+ puts "Untapping #{name}... (#{path.abv})"
unpin if pinned?
formula_count = formula_files.size
Descriptions.uncache_formulae(formula_names)
- @path.rmtree
- @path.dirname.rmdir_if_possible
+ path.rmtree
+ path.dirname.rmdir_if_possible
puts "Untapped #{formula_count} formula#{plural(formula_count, "e")}"
end
# True if the {#remote} of {Tap} is customized.
def custom_remote?
return true unless remote
- remote.casecmp("https://github.com/#{@user}/homebrew-#{@repo}") != 0
+ remote.casecmp("https://github.com/#{user}/homebrew-#{repo}") != 0
end
# an array of all {Formula} files of this {Tap}.
def formula_files
- @formula_files ||= if dir = [@path/"Formula", @path/"HomebrewFormula", @path].detect(&:directory?)
+ @formula_files ||= if dir = [path/"Formula", path/"HomebrewFormula", path].detect(&:directory?)
dir.children.select { |p| p.extname == ".rb" }
else
[]
@@ -209,7 +209,7 @@ def command_files
# path to the pin record for this {Tap}.
# @private
def pinned_symlink_path
- HOMEBREW_LIBRARY/"PinnedTaps/#{@name}"
+ HOMEBREW_LIBRARY/"PinnedTaps/#{name}"
end
# True if this {Tap} has been pinned.
@@ -222,7 +222,7 @@ def pinned?
def pin
raise TapUnavailableError, name unless installed?
raise TapPinStatusError.new(name, true) if pinned?
- pinned_symlink_path.make_relative_symlink(@path)
+ pinned_symlink_path.make_relative_symlink(path)
@pinned = true
end
@@ -237,10 +237,10 @@ def unpin
def to_hash
hash = {
- "name" => @name,
- "user" => @user,
- "repo" => @repo,
- "path" => @path.to_s,
+ "name" => name,
+ "user" => user,
+ "repo" => repo,
+ "path" => path.to_s,
"installed" => installed?,
"official" => official?,
"formula_names" => formula_names, | false |
Other | Homebrew | brew | a8476c0dbe016719fbca2327cd93ebb386b4fdff.json | doctor: remove Xcode 7 on 10.10 warning | Library/Homebrew/cmd/doctor.rb | @@ -610,19 +610,6 @@ def check_xcode_select_path
end
end
- # Xcode 7 lacking the 10.10 SDK is forcing sysroot to be declared
- # nil on 10.10 & breaking compiles. CLT is workaround.
- def check_sdk_path_not_nil_yosemite
- if MacOS.version == :yosemite && !MacOS::CLT.installed? && MacOS::Xcode.installed? && MacOS.sdk_path.nil?
- <<-EOS.undent
- Xcode 7 lacks the 10.10 SDK which can cause some builds to fail.
- We recommend installing the Command Line Tools with:
- xcode-select --install
- to resolve this issue.
- EOS
- end
- end
-
def check_user_path_1
$seen_prefix_bin = false
$seen_prefix_sbin = false | false |
Other | Homebrew | brew | 48bdd4811ec5ef54e4e408b0dcc4b7659c648a7d.json | MacOS.sdk: return newest SDK if requested not found
`MacOS.sdk` and `.sdk_path` will now return the newest installed SDK
instead of nil if called on a system that doesn’t have an SDK for the
currently-installed OS. For example, Xcode 7 on OS X 10.10 does not
include the 10.10 SDK, only the 10.11 SDK; software can be built by
specifying both SDKROOT and MACOSX_DEPLOYMENT_TARGET. | Library/Homebrew/os/mac.rb | @@ -89,6 +89,9 @@ def sdk(v = version)
begin
@locator.sdk_for v
rescue SDKLocator::NoSDKError
+ sdk = @locator.latest_sdk
+ # don't return an SDK that's older than the OS version
+ sdk unless sdk.nil? || sdk.version < version
end
end
| false |
Other | Homebrew | brew | f7d3710d12247c0c5bb07264834d6503216cba6b.json | test-bot: fix cleanup check.
HOMEBREW_RUBY_PATH is always set. | Library/Homebrew/cmd/test-bot.rb | @@ -647,7 +647,7 @@ def cleanup_before
git "rebase", "--abort"
git "reset", "--hard"
git "checkout", "-f", "master"
- git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY_PATH"]
+ git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7"
pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/*.lock"
Dir.glob(pr_locks) { |lock| FileUtils.rm_rf lock }
end | false |
Other | Homebrew | brew | 18a743c470dd161218f4a44637db746761a3403c.json | manpage: synchronize maintainer list with README | Library/Homebrew/manpages/brew.1.md | @@ -716,7 +716,7 @@ Homebrew Documentation: <https://github.com/Homebrew/homebrew/blob/master/share/
## AUTHORS
-Homebrew's current maintainers are Misty De Meo, Adam Vandenberg, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Dominyk Tiller, Tim Smith and Alex Dunn.
+Homebrew's current maintainers are Misty De Meo, Andrew Janke, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Dominyk Tiller, Tim Smith and Alex Dunn.
Homebrew was originally created by Max Howell.
| true |
Other | Homebrew | brew | 18a743c470dd161218f4a44637db746761a3403c.json | manpage: synchronize maintainer list with README | share/doc/homebrew/brew.1.html | @@ -603,7 +603,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
<h2 id="AUTHORS">AUTHORS</h2>
-<p>Homebrew's current maintainers are Misty De Meo, Adam Vandenberg, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Dominyk Tiller, Tim Smith and Alex Dunn.</p>
+<p>Homebrew's current maintainers are Misty De Meo, Andrew Janke, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Dominyk Tiller, Tim Smith and Alex Dunn.</p>
<p>Homebrew was originally created by Max Howell.</p>
| true |
Other | Homebrew | brew | 18a743c470dd161218f4a44637db746761a3403c.json | manpage: synchronize maintainer list with README | share/man/man1/brew.1 | @@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "BREW" "1" "October 2015" "Homebrew" "brew"
+.TH "BREW" "1" "December 2015" "Homebrew" "brew"
.
.SH "NAME"
\fBbrew\fR \- The missing package manager for OS X
@@ -692,7 +692,7 @@ Homebrew Documentation: \fIhttps://github\.com/Homebrew/homebrew/blob/master/sha
\fBgit\fR(1), \fBgit\-log\fR(1)
.
.SH "AUTHORS"
-Homebrew\'s current maintainers are Misty De Meo, Adam Vandenberg, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Dominyk Tiller, Tim Smith and Alex Dunn\.
+Homebrew\'s current maintainers are Misty De Meo, Andrew Janke, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Dominyk Tiller, Tim Smith and Alex Dunn\.
.
.P
Homebrew was originally created by Max Howell\. | true |
Other | Homebrew | brew | 8f175cb03c57ac3a426d7cc1420f2b65aeaafd22.json | bin/brew: separate variable assignment and export
This very slightly reduces duplication and the risk of inconsistency by
exporting in one branch, but not the other. By putting all the `export`
statements right before the `exec` it is more obvious what is passed on. | bin/brew | @@ -4,7 +4,7 @@ chdir() {
}
BREW_FILE_DIRECTORY="$(chdir "${0%/*}" && pwd -P)"
-export HOMEBREW_BREW_FILE="$BREW_FILE_DIRECTORY/${0##*/}"
+HOMEBREW_BREW_FILE="$BREW_FILE_DIRECTORY/${0##*/}"
BREW_SYMLINK="$(readlink "$0")"
if [ -n "$BREW_SYMLINK" ]
@@ -31,10 +31,13 @@ then
BREW_SYSTEM="$(uname -s | tr "[:upper:]" "[:lower:]")"
if [ "$BREW_SYSTEM" = "darwin" ]
then
- export HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
+ HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
else
- export HOMEBREW_RUBY_PATH="$(which ruby)"
+ HOMEBREW_RUBY_PATH="$(which ruby)"
fi
fi
+export HOMEBREW_BREW_FILE
+export HOMEBREW_RUBY_PATH
+
exec "$HOMEBREW_RUBY_PATH" -W0 "$BREW_LIBRARY_DIRECTORY/brew.rb" "$@" | false |
Other | Homebrew | brew | cbab4566dd9a36f5d37507490069f0989cf9dc5d.json | mac: expect xcode 7.1.1 | Library/Homebrew/os/mac.rb | @@ -253,6 +253,7 @@ def preferred_arch
"7.0" => { :clang => "7.0", :clang_build => 700 },
"7.0.1" => { :clang => "7.0", :clang_build => 700 },
"7.1" => { :clang => "7.0", :clang_build => 700 },
+ "7.1.1" => { :clang => "7.0", :clang_build => 700 },
}
def compilers_standard? | false |
Other | Homebrew | brew | 4a457d191d8136fada802eb203b2769ebd92d130.json | formula: fix reference to self. | Library/Homebrew/formula.rb | @@ -935,7 +935,7 @@ def outdated_versions
if oldname && !rack.exist? && (dir = HOMEBREW_CELLAR/oldname).directory? &&
!dir.subdirs.empty? && tap == Tab.for_keg(dir.subdirs.first).tap
- raise Migrator::MigrationNeededError.new(f)
+ raise Migrator::MigrationNeededError.new(self)
end
rack.subdirs.each do |keg_dir| | false |
Other | Homebrew | brew | 4c3a6c6022b2ad5e71b7315c275860400af85f20.json | formula: add missing require.
Closes Homebrew/homebrew#46433.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/outdated.rb | @@ -1,6 +1,5 @@
require "formula"
require "keg"
-require "migrator"
module Homebrew
def outdated | true |
Other | Homebrew | brew | 4c3a6c6022b2ad5e71b7315c275860400af85f20.json | formula: add missing require.
Closes Homebrew/homebrew#46433.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/formula.rb | @@ -12,6 +12,7 @@
require "tap"
require "formula_renames"
require "keg"
+require "migrator"
# A formula provides instructions and metadata for Homebrew to install a piece
# of software. Every Homebrew formula is a {Formula}. | true |
Other | Homebrew | brew | 10c79620c15dd2dc0b02b1376f6a79515f9d01af.json | tab: use cache to avoid rereading the same files.
Closes Homebrew/homebrew#46400.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/tab.rb | @@ -9,6 +9,11 @@
# `Tab.create`.
class Tab < OpenStruct
FILENAME = "INSTALL_RECEIPT.json"
+ CACHE = {}
+
+ def self.clear_cache
+ CACHE.clear
+ end
def self.create(formula, compiler, stdlib, build)
attributes = {
@@ -32,7 +37,7 @@ def self.create(formula, compiler, stdlib, build)
end
def self.from_file(path)
- from_file_content(File.read(path), path)
+ CACHE.fetch(path) { |p| CACHE[p] = from_file_content(File.read(p), p) }
end
def self.from_file_content(content, path)
@@ -217,6 +222,7 @@ def to_json
end
def write
+ CACHE[tabfile] = self
tabfile.atomic_write(to_json)
end
| true |
Other | Homebrew | brew | 10c79620c15dd2dc0b02b1376f6a79515f9d01af.json | tab: use cache to avoid rereading the same files.
Closes Homebrew/homebrew#46400.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/test/test_formula_installer.rb | @@ -20,10 +20,12 @@ def temporary_install(formula)
assert_predicate formula, :installed?
begin
+ Tab.clear_cache
refute_predicate Tab.for_keg(keg), :poured_from_bottle
yield formula
ensure
+ Tab.clear_cache
keg.unlink
keg.uninstall
formula.clear_cache | true |
Other | Homebrew | brew | cd267e0bce9ca9cc1af37deab96c47e1cfb7645c.json | audit: check position of 'revision' and 'keg_only'
Closes Homebrew/homebrew#46178.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com> | Library/Homebrew/cmd/audit.rb | @@ -175,12 +175,14 @@ def audit_file
[/^ mirror ["'][\S\ ]+["']/, "mirror"],
[/^ version ["'][\S\ ]+["']/, "version"],
[/^ (sha1|sha256) ["'][\S\ ]+["']/, "checksum"],
+ [/^ revision/, "revision"],
[/^ head ["'][\S\ ]+["']/, "head"],
[/^ stable do/, "stable block"],
[/^ bottle do/, "bottle block"],
[/^ devel do/, "devel block"],
[/^ head do/, "head block"],
[/^ bottle (:unneeded|:disable)/, "bottle modifier"],
+ [/^ keg_only/, "keg_only"],
[/^ option/, "option"],
[/^ depends_on/, "depends_on"],
[/^ def install/, "install method"], | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.