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 | 929fd12650b5f01f7f5aee1338cc25d993f59389.json | Remove unused method | Library/Homebrew/os/mac.rb | @@ -76,10 +76,6 @@ def default_compiler
end
end
- def default_cxx_stdlib
- version >= :mavericks ? :libcxx : :libstdcxx
- end
-
def gcc_40_build_version
@gcc_40_build_version ||=
if (path = locate("gcc-4.0")) | false |
Other | Homebrew | brew | a4cf3c273b1a78994c823b2c10eeb13a94ffd7a5.json | xcode: update clang version
Closes Homebrew/homebrew#41095.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com> | Library/Homebrew/os/mac/xcode.rb | @@ -119,7 +119,8 @@ def uncached_version
when 51 then "5.1"
when 60 then "6.0"
when 61 then "6.1"
- else "6.1"
+ when 70 then "7.0"
+ else "7.0"
end
end
end
@@ -162,7 +163,7 @@ def installed?
def latest_version
case MacOS.version
- when "10.11" then "700.0.53"
+ when "10.11" then "700.0.53.3"
when "10.10" then "602.0.53"
when "10.9" then "600.0.57"
when "10.8" then "503.0.40" | false |
Other | Homebrew | brew | e40b73521709189c7d95169ff88939179d45d665.json | Decouple detect_stdlibs from ENV
I want to decouple from the global ENV constant as much as possible so
that eventually we can change the build environment implementation.
detect_stdlibs only cares about the compiler, not the whole ENV. | Library/Homebrew/build.rb | @@ -128,7 +128,7 @@ def install
formula.install
- stdlibs = detect_stdlibs
+ stdlibs = detect_stdlibs(ENV.compiler)
Tab.create(formula, ENV.compiler, stdlibs.first, formula.build).write
# Find and link metafiles
@@ -138,9 +138,9 @@ def install
end
end
- def detect_stdlibs
+ def detect_stdlibs(compiler)
keg = Keg.new(formula.prefix)
- CxxStdlib.check_compatibility(formula, deps, keg, ENV.compiler)
+ CxxStdlib.check_compatibility(formula, deps, keg, compiler)
# The stdlib recorded in the install receipt is used during dependency
# compatibility checks, so we only care about the stdlib that libraries | false |
Other | Homebrew | brew | 2bc40ff385c2fecea1e26230a8c6e8121bc66bae.json | Pull complex condition out of loop | Library/Homebrew/cmd/outdated.rb | @@ -39,8 +39,10 @@ def formulae_to_check
end
def print_outdated
+ verbose = ($stdout.tty? || ARGV.verbose?) && !ARGV.flag?("--quiet")
+
outdated_brews(formulae_to_check) do |f, versions|
- if ($stdout.tty? || ARGV.verbose?) && !ARGV.flag?("--quiet")
+ if verbose
puts "#{f.full_name} (#{versions*', '} < #{f.pkg_version})"
else
puts f.full_name | false |
Other | Homebrew | brew | 75642e6271205d8c3ac9436e67cb4d6ffc0f32de.json | Use Dir.mktmpdir in doctor
This matches how we create temporary directories elsewhere. | Library/Homebrew/cmd/doctor.rb | @@ -809,7 +809,7 @@ def check_for_multiple_volumes
# Find the volumes for the TMP folder & HOMEBREW_CELLAR
real_cellar = HOMEBREW_CELLAR.realpath
- tmp = Pathname.new with_system_path { `mktemp -d #{HOMEBREW_TEMP}/homebrew-brew-doctor-XXXXXX` }.strip
+ tmp = Pathname.new(Dir.mktmpdir("doctor", HOMEBREW_TEMP))
real_temp = tmp.realpath.parent
where_cellar = volumes.which real_cellar | false |
Other | Homebrew | brew | 5e7edbbd3c7ee5fa29ee9907a67e6a79998a90a5.json | Ask the exception for the formula name | Library/Homebrew/extend/ENV/shared.rb | @@ -203,9 +203,9 @@ def gcc_version_formula(name)
def warn_about_non_apple_gcc(name)
begin
gcc_formula = gcc_version_formula(name)
- rescue FormulaUnavailableError
+ rescue FormulaUnavailableError => e
raise <<-EOS.undent
- Homebrew GCC requested, but formula #{name.delete(".-")} not found!
+ Homebrew GCC requested, but formula #{e.name} not found!
You may need to: brew tap homebrew/versions
EOS
end | false |
Other | Homebrew | brew | 87e77350125602e6114e43ccc349f0287f8f5349.json | Ask the formula object for the opt path | Library/Homebrew/extend/ENV/shared.rb | @@ -192,8 +192,9 @@ def gcc_version_formula(name)
version = name[GNU_GCC_REGEXP, 1]
gcc_version_name = "gcc#{version.delete('.')}"
- if HOMEBREW_PREFIX.join("opt", "gcc", "bin", name).exist?
- Formulary.factory("gcc")
+ gcc = Formulary.factory("gcc")
+ if gcc.opt_bin.join(name).exist?
+ gcc
else
Formulary.factory(gcc_version_name)
end | false |
Other | Homebrew | brew | 7a75bbd85a6abc9a5828d7d48aa13a27a43432e4.json | download_strategy: fix url reassign
We need reassign url after urls are inspected. | Library/Homebrew/download_strategy.rb | @@ -274,11 +274,11 @@ def fetch
urls = actual_urls
unless urls.empty?
ohai "Downloading from #{urls.last}"
- @url = urls.last
if !ENV["HOMEBREW_NO_INSECURE_REDIRECT"].nil? && @url.start_with?("https://") &&
urls.any? { |u| !u.start_with? "https://" }
raise "HTTPS to HTTP redirect detected & HOMEBREW_NO_INSECURE_REDIRECT is set."
end
+ @url = urls.last
end
had_incomplete_download = temporary_path.exist? | false |
Other | Homebrew | brew | 3f11f1a0def50bba3349c0dc948f84c8bc82eb04.json | Eliminate special case for core gcc | Library/Homebrew/extend/ENV/shared.rb | @@ -221,21 +221,10 @@ def warn_about_non_apple_gcc(name)
EOS
end
- if gcc_formula.name == "gcc"
- return if gcc_formula.opt_prefix.exist?
+ unless gcc_formula.opt_prefix.exist?
raise <<-EOS.undent
- The Homebrew GCC was not installed.
- You must:
- brew install gcc
- EOS
- end
-
- if !gcc_formula.opt_prefix.exist?
- raise <<-EOS.undent
- The requested Homebrew GCC, #{gcc_version_name}, was not installed.
- You must:
- brew tap homebrew/versions
- brew install #{gcc_version_name}
+ The requested Homebrew GCC was not installed. You must:
+ brew install #{gcc_formula.full_name}
EOS
end
end | false |
Other | Homebrew | brew | 1bba5fd88af811064d7f66dda57ac3127bdda05c.json | Pass full match to warn_about_non_apple_gcc | Library/Homebrew/extend/ENV/shared.rb | @@ -98,10 +98,10 @@ def fcflags; self['FCFLAGS']; end
def compiler
@compiler ||= if (cc = ARGV.cc)
- warn_about_non_apple_gcc($1) if cc =~ GNU_GCC_REGEXP
+ warn_about_non_apple_gcc($&) if cc =~ GNU_GCC_REGEXP
fetch_compiler(cc, "--cc")
elsif (cc = homebrew_cc)
- warn_about_non_apple_gcc($1) if cc =~ GNU_GCC_REGEXP
+ warn_about_non_apple_gcc($&) if cc =~ GNU_GCC_REGEXP
compiler = fetch_compiler(cc, "HOMEBREW_CC")
if @formula
@@ -188,14 +188,13 @@ def ld64
append "LDFLAGS", "-B#{ld64.bin}/"
end
- def gcc_version_formula(version)
- gcc_name = "gcc-#{version}"
+ def gcc_version_formula(name)
+ version = name[GNU_GCC_REGEXP, 1]
gcc_version_name = "gcc#{version.delete('.')}"
- gcc_path = HOMEBREW_PREFIX.join "opt/gcc/bin/#{gcc_name}"
+ gcc_path = HOMEBREW_PREFIX.join("opt", "gcc", "bin", name)
gcc_formula = Formulary.factory "gcc"
- gcc_versions_path = \
- HOMEBREW_PREFIX.join "opt/#{gcc_version_name}/bin/#{gcc_name}"
+ gcc_versions_path = HOMEBREW_PREFIX.join("opt", gcc_version_name, "bin", name)
if gcc_path.exist?
gcc_formula
@@ -210,11 +209,11 @@ def gcc_version_formula(version)
end
end
- def warn_about_non_apple_gcc(gcc)
- gcc_name = 'gcc' + gcc.delete('.')
+ def warn_about_non_apple_gcc(name)
+ gcc_version_name = name.delete(".-")
begin
- gcc_formula = gcc_version_formula(gcc)
+ gcc_formula = gcc_version_formula(name)
if gcc_formula.name == "gcc"
return if gcc_formula.opt_prefix.exist?
raise <<-EOS.undent
@@ -226,15 +225,15 @@ def warn_about_non_apple_gcc(gcc)
if !gcc_formula.opt_prefix.exist?
raise <<-EOS.undent
- The requested Homebrew GCC, #{gcc_name}, was not installed.
+ The requested Homebrew GCC, #{gcc_version_name}, was not installed.
You must:
brew tap homebrew/versions
- brew install #{gcc_name}
+ brew install #{gcc_version_name}
EOS
end
rescue FormulaUnavailableError
raise <<-EOS.undent
- Homebrew GCC requested, but formula #{gcc_name} not found!
+ Homebrew GCC requested, but formula #{gcc_version_name} not found!
You may need to: brew tap homebrew/versions
EOS
end | true |
Other | Homebrew | brew | 1bba5fd88af811064d7f66dda57ac3127bdda05c.json | Pass full match to warn_about_non_apple_gcc | Library/Homebrew/extend/ENV/std.rb | @@ -56,7 +56,7 @@ def setup_build_environment(formula=nil)
send(compiler)
if cc =~ GNU_GCC_REGEXP
- gcc_formula = gcc_version_formula($1)
+ gcc_formula = gcc_version_formula($&)
append_path "PATH", gcc_formula.opt_bin.to_s
end
| true |
Other | Homebrew | brew | 1bba5fd88af811064d7f66dda57ac3127bdda05c.json | Pass full match to warn_about_non_apple_gcc | Library/Homebrew/extend/ENV/super.rb | @@ -125,7 +125,7 @@ def determine_path
end
paths << apple_gcc42.opt_bin.to_s if apple_gcc42
when GNU_GCC_REGEXP
- gcc_formula = gcc_version_formula($1)
+ gcc_formula = gcc_version_formula($&)
paths << gcc_formula.opt_bin.to_s
end
| true |
Other | Homebrew | brew | 2d8c307a3cfdb85dd462ab6acc0f1d24015b1a38.json | README: add PGP key
Closes Homebrew/homebrew#40914.
Signed-off-by: Xu Cheng <xucheng@me.com> | README.md | @@ -19,6 +19,11 @@ Second, read the [Troubleshooting Checklist](https://github.com/Homebrew/homebre
## Security
Please report security issues to security@brew.sh.
+This is our PGP key which is valid until June 17, 2016.
+* Key ID: `CE59E297`
+* Fingeprint: `C657 8F76 2E23 441E C879 EC5C E33A 3D3C CE59 E297`
+* Full key: https://keybase.io/homebrew/key.asc
+
## Who Are You?
Homebrew's current maintainers are [Misty De Meo](https://github.com/mistydemeo), [Adam Vandenberg](https://github.com/adamv), [Jack Nagel](https://github.com/jacknagel), [Xu Cheng](https://github.com/xu-cheng), [Mike McQuaid](https://github.com/mikemcquaid), [Baptiste Fontaine](https://github.com/bfontaine), [Brett Koonce](https://github.com/asparagui), [Dominyk Tiller](https://github.com/DomT4) and [Tim Smith](https://github.com/tdsmith).
| false |
Other | Homebrew | brew | 60b70c993127c79f0cc7532ce159902d39f1aa5d.json | download_strategy: remove extra colon
Closes Homebrew/homebrew#40920.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/download_strategy.rb | @@ -273,7 +273,7 @@ def fetch
unless cached_location.exist?
urls = actual_urls
unless urls.empty?
- ohai "Downloading from: #{urls.last}"
+ ohai "Downloading from #{urls.last}"
if !ENV["HOMEBREW_NO_INSECURE_REDIRECT"].nil? && @url.start_with?("https://") &&
urls.any? { |u| !u.start_with? "https://" }
raise "HTTPS to HTTP redirect detected & HOMEBREW_NO_INSECURE_REDIRECT is set." | false |
Other | Homebrew | brew | ec1727a1bed5c431941972aeae064b6345e51321.json | Remove backports for Ruby 1.8.6
refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327,
mistydemeo/tigerbrew#334 | Library/Homebrew/extend/enumerable.rb | @@ -1,7 +0,0 @@
-module Enumerable
- def group_by
- inject({}) do |h, e|
- h.fetch(yield(e)) { |k| h[k] = [] } << e; h
- end
- end unless method_defined?(:group_by)
-end | true |
Other | Homebrew | brew | ec1727a1bed5c431941972aeae064b6345e51321.json | Remove backports for Ruby 1.8.6
refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327,
mistydemeo/tigerbrew#334 | Library/Homebrew/extend/string.rb | @@ -15,33 +15,6 @@ def undent
# EOS
alias_method :undent_________________________________________________________72, :undent
- def start_with?(*prefixes)
- prefixes.any? do |prefix|
- if prefix.respond_to?(:to_str)
- prefix = prefix.to_str
- self[0, prefix.length] == prefix
- end
- end
- end unless method_defined?(:start_with?)
-
- def end_with?(*suffixes)
- suffixes.any? do |suffix|
- if suffix.respond_to?(:to_str)
- suffix = suffix.to_str
- self[-suffix.length, suffix.length] == suffix
- end
- end
- end unless method_defined?(:end_with?)
-
- # 1.8.7 or later; used in bottle code
- def rpartition(separator)
- if ind = rindex(separator)
- [slice(0, ind), separator, slice(ind+1, -1) || '']
- else
- ['', '', dup]
- end
- end unless method_defined?(:rpartition)
-
# String.chomp, but if result is empty: returns nil instead.
# Allows `chuzzle || foo` short-circuits.
def chuzzle | true |
Other | Homebrew | brew | ec1727a1bed5c431941972aeae064b6345e51321.json | Remove backports for Ruby 1.8.6
refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327,
mistydemeo/tigerbrew#334 | Library/Homebrew/extend/symbol.rb | @@ -1,5 +0,0 @@
-class Symbol
- def to_proc
- proc { |*args| args.shift.send(self, *args) }
- end unless method_defined?(:to_proc)
-end | true |
Other | Homebrew | brew | ec1727a1bed5c431941972aeae064b6345e51321.json | Remove backports for Ruby 1.8.6
refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327,
mistydemeo/tigerbrew#334 | Library/Homebrew/global.rb | @@ -3,8 +3,6 @@
require 'extend/pathname'
require 'extend/ARGV'
require 'extend/string'
-require 'extend/symbol'
-require 'extend/enumerable'
require 'os'
require 'utils'
require 'exceptions' | true |
Other | Homebrew | brew | 09f8c54f8388412250a6e847989992a78953b63f.json | Move some constants from env to compiler constants | Library/Homebrew/compilers.rb | @@ -1,6 +1,15 @@
module CompilerConstants
GNU_GCC_VERSIONS = %w[4.3 4.4 4.5 4.6 4.7 4.8 4.9 5]
GNU_GCC_REGEXP = /^gcc-(4\.[3-9]|5)$/
+ COMPILER_SYMBOL_MAP = {
+ "gcc-4.0" => :gcc_4_0,
+ "gcc-4.2" => :gcc,
+ "llvm-gcc" => :llvm,
+ "clang" => :clang,
+ }
+
+ COMPILERS = COMPILER_SYMBOL_MAP.values +
+ GNU_GCC_VERSIONS.map { |n| "gcc-#{n}" }
end
class CompilerFailure | true |
Other | Homebrew | brew | 09f8c54f8388412250a6e847989992a78953b63f.json | Move some constants from env to compiler constants | Library/Homebrew/extend/ENV/shared.rb | @@ -7,16 +7,6 @@ module SharedEnvExtension
CC_FLAG_VARS = %w{CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS}
FC_FLAG_VARS = %w{FCFLAGS FFLAGS}
- COMPILER_SYMBOL_MAP = {
- "gcc-4.0" => :gcc_4_0,
- "gcc-4.2" => :gcc,
- "llvm-gcc" => :llvm,
- "clang" => :clang,
- }
-
- COMPILERS = COMPILER_SYMBOL_MAP.values +
- GNU_GCC_VERSIONS.map { |n| "gcc-#{n}" }
-
SANITIZED_VARS = %w[
CDPATH GREP_OPTIONS CLICOLOR_FORCE
CPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH OBJC_INCLUDE_PATH | true |
Other | Homebrew | brew | d770a874e466d1e9a8df7672b37102291056cae1.json | audit: add benchmark inject code
Closes Homebrew/homebrew#40847.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/cmd/audit.rb | @@ -20,6 +20,26 @@ def audit
ENV.activate_extensions!
ENV.setup_build_environment
+ if ARGV.switch? "D"
+ FormulaAuditor.module_eval do
+ instance_methods.grep(/audit_/).map do |name|
+ method = instance_method(name)
+ define_method(name) do |*args, &block|
+ begin
+ time = Time.now
+ method.bind(self).call(*args, &block)
+ ensure
+ $times[name] ||= 0
+ $times[name] += Time.now - time
+ end
+ end
+ end
+ end
+
+ $times = {}
+ at_exit { puts $times.sort_by{ |k, v| v }.map{ |k, v| "#{k}: #{v}" } }
+ end
+
ff = if ARGV.named.empty?
Formula
else | false |
Other | Homebrew | brew | 89b20cf61e2226d4ef9e35beb633c1fa3166dbfe.json | tap_migrations: move some x11 to boneyard.
https://github.com/Homebrew/homebrew-boneyard/pull/53 | Library/Homebrew/tap_migrations.rb | @@ -62,7 +62,7 @@
"fox" => "homebrew/x11",
"freeglut" => "homebrew/x11",
"freerdp" => "homebrew/x11",
- "fsv" => "homebrew/x11",
+ "fsv" => "homebrew/boneyard",
"fuse-zip" => "homebrew/fuse",
"fuse4x-kext" => "homebrew/fuse",
"fuse4x" => "homebrew/fuse",
@@ -77,7 +77,7 @@
"git-flow-clone" => "homebrew/boneyard",
"gitfs" => "homebrew/fuse",
"git-latexdiff" => "homebrew/tex",
- "gkrellm" => "homebrew/x11",
+ "gkrellm" => "homebrew/boneyard",
"glade" => "homebrew/x11",
"gle" => "homebrew/x11",
"gnumeric" => "homebrew/x11",
@@ -209,7 +209,7 @@
"upnp-router-control" => "homebrew/x11",
"urweb" => "homebrew/boneyard",
"ushare" => "homebrew/boneyard",
- "viewglob" => "homebrew/x11",
+ "viewglob" => "homebrew/boneyard",
"wdfs" => "homebrew/fuse",
"wkhtmltopdf" => "homebrew/boneyard",
"wmctrl" => "homebrew/x11", | false |
Other | Homebrew | brew | 2f44990ea9e0439db24c8b6ef932c608f3f0069b.json | Revert "audit: add benchmark inject code"
This reverts commit fb23d603ded2796299ed7fc2f4ffee22870b7ea6. | Library/Homebrew/cmd/audit.rb | @@ -20,26 +20,6 @@ def audit
ENV.activate_extensions!
ENV.setup_build_environment
- if ARGV.switch? "D"
- FormulaAuditor.module_eval do
- instance_methods.grep(/audit_/).map do |name|
- method = instance_method(name)
- define_method(name) do |*args, &block|
- begin
- time = Time.now
- method.bind(self).(*args, &block)
- ensure
- $times[name] ||= 0
- $times[name] += Time.now - time
- end
- end
- end
- end
-
- $times = {}
- at_exit { puts $times.sort_by{ |k, v| v }.map{ |k, v| "#{k}: #{v}" } }
- end
-
ff = if ARGV.named.empty?
Formula
else | false |
Other | Homebrew | brew | 7a59a3ee37966ad2378a3d96fbedde42506c5e00.json | audit: add benchmark inject code | Library/Homebrew/cmd/audit.rb | @@ -20,6 +20,26 @@ def audit
ENV.activate_extensions!
ENV.setup_build_environment
+ if ARGV.switch? "D"
+ FormulaAuditor.module_eval do
+ instance_methods.grep(/audit_/).map do |name|
+ method = instance_method(name)
+ define_method(name) do |*args, &block|
+ begin
+ time = Time.now
+ method.bind(self).(*args, &block)
+ ensure
+ $times[name] ||= 0
+ $times[name] += Time.now - time
+ end
+ end
+ end
+ end
+
+ $times = {}
+ at_exit { puts $times.sort_by{ |k, v| v }.map{ |k, v| "#{k}: #{v}" } }
+ end
+
ff = if ARGV.named.empty?
Formula
else | false |
Other | Homebrew | brew | 38974ed6b52cd65e6ab6e6b150a6b00cd80bbc4f.json | Run tests for both build environments | Library/Homebrew/test/test_ENV.rb | @@ -1,10 +1,9 @@
require 'testing_env'
require 'extend/ENV'
-class EnvironmentTests < Homebrew::TestCase
+module SharedEnvTests
def setup
@env = {}.extend(EnvActivation)
- @env.activate_extensions!
end
def test_switching_compilers
@@ -105,9 +104,7 @@ def test_prepend_path
@env.prepend_path 'FOO', '/bin'
assert_equal "/bin#{File::PATH_SEPARATOR}/usr/bin", @env['FOO']
end
-end
-module SharedEnvTests
def test_switching_compilers_updates_compiler
[:clang, :llvm, :gcc, :gcc_4_0].each do |compiler|
@env.send(compiler)
@@ -128,15 +125,17 @@ class StdenvTests < Homebrew::TestCase
include SharedEnvTests
def setup
- @env = {}.extend(Stdenv)
+ super
+ @env.extend(Stdenv)
end
end
class SuperenvTests < Homebrew::TestCase
include SharedEnvTests
def setup
- @env = {}.extend(Superenv)
+ super
+ @env.extend(Superenv)
end
def test_initializes_deps | false |
Other | Homebrew | brew | 4648aa54c03845c0a3f4e00cba4879ee26ba91c7.json | search --desc: cache the query regexp
Closes Homebrew/homebrew#40795.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr> | Library/Homebrew/cmd/search.rb | @@ -23,8 +23,9 @@ def search
exec_browser "http://packages.ubuntu.com/search?keywords=#{ARGV.next}&searchon=names&suite=all§ion=all"
elsif ARGV.include? '--desc'
query = ARGV.next
+ rx = query_regexp(query)
Formula.each do |formula|
- if formula.desc =~ query_regexp(query)
+ if formula.desc =~ rx
puts "#{formula.full_name}: #{formula.desc}"
end
end | false |
Other | Homebrew | brew | 023bddbd046c7dce0f9e56344f9fb5e258e0f59f.json | Make UnsafeSubversionDownloadStrategy a no-op | Library/Homebrew/download_strategy.rb | @@ -496,16 +496,12 @@ def get_externals
end
end
- def fetch_args
- []
- end
-
def fetch_repo target, url, revision=nil, ignore_externals=false
# Use "svn up" when the repository already exists locally.
# This saves on bandwidth and will have a similar effect to verifying the
# cache as it will make any changes to get the right revision.
svncommand = target.directory? ? 'up' : 'checkout'
- args = ['svn', svncommand] + fetch_args
+ args = ['svn', svncommand]
args << url unless target.directory?
args << target
args << '-r' << revision if revision
@@ -542,14 +538,8 @@ def clone_repo
# @deprecated
StrictSubversionDownloadStrategy = SubversionDownloadStrategy
-
# @deprecated
-class UnsafeSubversionDownloadStrategy < SubversionDownloadStrategy
- def fetch_args
- %w[--non-interactive --trust-server-cert]
- end
- private :fetch_args
-end
+UnsafeSubversionDownloadStrategy = SubversionDownloadStrategy
class GitDownloadStrategy < VCSDownloadStrategy
SHALLOW_CLONE_WHITELIST = [ | false |
Other | Homebrew | brew | 8bdc7b92d8f9b5bff1207b362295abc226d1d79c.json | Call expand_path on the value of HOMEBREW_CACHE
Fixes Homebrew/homebrew#40752. | Library/Homebrew/config.rb | @@ -1,6 +1,6 @@
def cache
- if ENV['HOMEBREW_CACHE']
- Pathname.new(ENV['HOMEBREW_CACHE'])
+ if ENV["HOMEBREW_CACHE"]
+ Pathname.new(ENV["HOMEBREW_CACHE"]).expand_path
else
# we do this for historic reasons, however the cache *should* be the same
# directory whichever user is used and whatever instance of brew is executed | false |
Other | Homebrew | brew | 7b733b408799c6a44343b5e5d5b68e6f26842783.json | Add pkgconfig files for 10.11
Fixes Homebrew/homebrew#40656. | Library/ENV/pkgconfig/10.10/libcurl.pc | @@ -28,7 +28,7 @@ exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
supported_protocols="DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMTP SMTPS TELNET TFTP"
-supported_features="SSL IPv6 libz AsynchDNS NTLM"
+supported_features="SSL IPv6 libz AsynchDNS NTLM NTLM_WB GSS-API"
Name: libcurl
URL: http://curl.haxx.se/ | true |
Other | Homebrew | brew | 7b733b408799c6a44343b5e5d5b68e6f26842783.json | Add pkgconfig files for 10.11
Fixes Homebrew/homebrew#40656. | Library/ENV/pkgconfig/10.11/libcurl.pc | @@ -0,0 +1,39 @@
+#***************************************************************************
+# _ _ ____ _
+# Project ___| | | | _ \| |
+# / __| | | | |_) | |
+# | (__| |_| | _ <| |___
+# \___|\___/|_| \_\_____|
+#
+# Copyright (C) 2004 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+#
+# This software is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at http://curl.haxx.se/docs/copyright.html.
+#
+# You may opt to use, copy, modify, merge, publish, distribute and/or sell
+# copies of the Software, and permit persons to whom the Software is
+# furnished to do so, under the terms of the COPYING file.
+#
+# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+# KIND, either express or implied.
+#
+###########################################################################
+
+# This should most probably benefit from getting a "Requires:" field added
+# dynamically by configure.
+#
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+supported_protocols="DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMTP SMTPS TELNET TFTP"
+supported_features="SSL IPv6 libz AsynchDNS NTLM NTLM_WB GSS-API"
+
+Name: libcurl
+URL: http://curl.haxx.se/
+Description: Library to transfer files with ftp, http, etc.
+Version: 7.37.1
+Libs: -L${libdir} -lcurl
+Libs.private: -lssl -lcrypto -Wl,-weak-lldap -Wl,-weak-lgssapi_krb5 -lresolv -lssl -lcrypto -lz -lz
+Cflags: -I${includedir} | true |
Other | Homebrew | brew | 7b733b408799c6a44343b5e5d5b68e6f26842783.json | Add pkgconfig files for 10.11
Fixes Homebrew/homebrew#40656. | Library/ENV/pkgconfig/10.11/libexslt.pc | @@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+
+Name: libexslt
+Version: 0.8.17
+Description: EXSLT Extension library
+Requires: libxml-2.0
+Libs: -L${libdir} -lexslt -lxslt -lxml2 -lz -lpthread -licucore -lm
+Cflags: -I${includedir} | true |
Other | Homebrew | brew | 7b733b408799c6a44343b5e5d5b68e6f26842783.json | Add pkgconfig files for 10.11
Fixes Homebrew/homebrew#40656. | Library/ENV/pkgconfig/10.11/libxml-2.0.pc | @@ -0,0 +1,13 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+modules=1
+
+Name: libXML
+Version: 2.9.0
+Description: libXML library version2.
+Requires:
+Libs: -L${libdir} -lxml2
+Libs.private: -lpthread -lz -lm
+Cflags: -I${includedir}/libxml2 | true |
Other | Homebrew | brew | 7b733b408799c6a44343b5e5d5b68e6f26842783.json | Add pkgconfig files for 10.11
Fixes Homebrew/homebrew#40656. | Library/ENV/pkgconfig/10.11/libxslt.pc | @@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+
+Name: libxslt
+Version: 1.1.28
+Description: XSLT library version 2.
+Requires: libxml-2.0
+Libs: -L${libdir} -lxslt -lxml2 -lz -lpthread -licucore -lm
+Cflags: -I${includedir} | true |
Other | Homebrew | brew | 7b733b408799c6a44343b5e5d5b68e6f26842783.json | Add pkgconfig files for 10.11
Fixes Homebrew/homebrew#40656. | Library/ENV/pkgconfig/10.11/sqlite3.pc | @@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: SQLite
+Description: SQL database engine
+Version: 3.8.8
+Libs: -L${libdir} -lsqlite3
+Libs.private:
+Cflags: -I${includedir} | true |
Other | Homebrew | brew | 7b733b408799c6a44343b5e5d5b68e6f26842783.json | Add pkgconfig files for 10.11
Fixes Homebrew/homebrew#40656. | Library/ENV/pkgconfig/10.11/zlib.pc | @@ -0,0 +1,13 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+sharedlibdir=${libdir}
+includedir=${prefix}/include
+
+Name: zlib
+Description: zlib compression library
+Version: 1.2.5
+
+Requires:
+Libs: -L${libdir} -L${sharedlibdir} -lz
+Cflags: -I${includedir} | true |
Other | Homebrew | brew | 621a7ada9583544469ddb696d076d0237cb25bb4.json | Remove reference to "open" command
Closes Homebrew/homebrew#40706. | Library/Homebrew/cmd/help.rb | @@ -17,7 +17,7 @@
Brewing:
brew create [URL [--no-fetch]]
brew edit [FORMULA...]
- open https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
+ https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
Further help:
man brew | false |
Other | Homebrew | brew | a047fc08d6353949441f65b1efd5b0359ce027a9.json | audit: enforce http for gnu ftpmirror | Library/Homebrew/cmd/audit.rb | @@ -941,6 +941,11 @@ def audit_urls
problem "Please use \"http://ftpmirror.gnu.org\" instead of #{url}."
end
+ # GNU's ftpmirror does NOT support SSL/TLS.
+ if url =~ %r[^https://ftpmirror\.gnu\.org/]
+ problem "Please use http:// for #{url}"
+ end
+
if mirrors.include?(url)
problem "URL should not be duplicated as a mirror: #{url}"
end
@@ -950,9 +955,6 @@ def audit_urls
# Check a variety of SSL/TLS URLs that don't consistently auto-redirect
# or are overly common errors that need to be reduced & fixed over time.
urls.each do |p|
- # Skip the main url link, as it can't be made SSL/TLS yet.
- next if p =~ %r[/ftpmirror\.gnu\.org]
-
case p
when %r[^http://ftp\.gnu\.org/],
%r[^http://[^/]*\.apache\.org/], | false |
Other | Homebrew | brew | 778c25b4589d731e58dc4caa1f51f75c1a5e77b8.json | brew: warn about 10.11 unsupported
Issue a warning about Homebrew's very basic support for 10.11 at this point
in time on each run of `brew`.
Closes Homebrew/homebrew#40536.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com> | Library/brew.rb | @@ -50,6 +50,15 @@
EOABORT
end
+if OS.mac? && MacOS.version == "10.11"
+ opoo <<-EOS.undent
+ Although Homebrew has added initial recognition of 10.11, it is unsupported.
+ You may encounter breakage or other failure and there is no guarantee
+ Homebrew can resolve those issues until El Capitan is stable.
+
+ EOS
+end
+
# Many Pathname operations use getwd when they shouldn't, and then throw
# odd exceptions. Reduce our support burden by showing a user-friendly error.
Dir.getwd rescue abort "The current working directory doesn't exist, cannot proceed." | false |
Other | Homebrew | brew | 8f852380941f42b41b89415a500aeb30ecd98e83.json | remove incorrect tag for Tap document | Library/Homebrew/tap.rb | @@ -4,7 +4,6 @@
# case, `user/repo` will be used as the {#name} of this {Tap}, where
# {#user} represents Github username and {#repo} represents repository
# name without leading `homebrew-`.
-# @abstract
class Tap
TAP_DIRECTORY = HOMEBREW_LIBRARY/"Taps"
| false |
Other | Homebrew | brew | 5e3a1a7b218fe38cea0c66fce02048169cc80c2b.json | Update tap documentation.
Closes Homebrew/homebrew#40481.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/manpages/brew.1.md | @@ -345,12 +345,24 @@ Note that these flags should only appear after a command.
* `switch` <name> <version>:
Symlink all of the specific <version> of <name>'s install to Homebrew prefix.
- * `tap` [--full] [<tap>]:
- Tap a new formula repository from GitHub, or list existing taps.
+ * `tap` [--full] [<user/repo>] [<URL>]:
+ Tap a formula repository or list existing taps. This command can be invoked
+ in three ways.
- <tap> is of the form <user>/<repo>, e.g. `brew tap homebrew/dupes`.
+ + `tap` without arguments displays existing taps.
- If `--full` is passed, a full clone will be used.
+ + `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}`.
+
+ + `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(S), 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.
* `tap --repair`:
Migrate tapped formulae from symlink-based to directory-based structure. | true |
Other | Homebrew | brew | 5e3a1a7b218fe38cea0c66fce02048169cc80c2b.json | Update tap documentation.
Closes Homebrew/homebrew#40481.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | share/doc/homebrew/brew-tap.md | @@ -1,44 +1,65 @@
# brew tap
-The `brew tap` command is powerful, but has a few subtleties worth describing.
-**tl;dr** `brew tap` allows you to add more GitHub repos to the list of formulae that `brew` tracks, updates and installs from. When naming tap repos and formulas, however, there are a few gotchas to beware of.
+**tl;dr** `brew tap` adds more repos to the list of formulae that `brew`
+tracks, updates, and installs from. By default, `tap` assumes that the repos
+come from GitHub, but the command isn't limited to any one location.
## The command
-* If you run `brew tap` with no arguments, it will list the currently
- tapped repositories. Example:
+* `brew tap` without arguments lists the currently tapped repositories. For
+ example:
```bash
$ brew tap
homebrew/dupes
-telemachus/desc
-telemachus/vim
+mistydemeo/tigerbrew
+edavis/emacs
```
-* If you run `brew tap` with a single argument, `brew` will attempt to
- parse the argument into a valid 'username/repo' combination. If the argument is a valid name, then `brew tap` will attempt to clone the repository and symlink all its formulae. (See below for what it means to be a 'valid name'.) After that, `brew` will be able to work on those formulae as if there were in Homebrew's canonical repository. You can install and uninstall them with `brew [un]install`, and the formulae are automatically updated when you run `brew update`. (See below for a few exceptions on names and installation.)
+* `brew tap <user/repo>` makes a shallow clone of the repository at
+ https://github.com/user/repo. After that, `brew` will be able to work on
+ those formulae as if there were in Homebrew's canonical repository. You can
+ install and uninstall them with `brew [un]install`, and the formulae are
+ automatically updated when you run `brew update`. (See below for details
+ about how `brew tap` handles the names of repositories.)
-* In you run `brew tap --repair`, then `brew` will check for dead symlinks
- and relink all valid formulae across all your taps.
+* `brew tap <user/repo> <URL>` makes a shallow clone of the repository at URL.
+ Unlike the one-argument version, URL is not assumed to be GitHub, and it
+ doesn't have to be HTTP. Any location and any protocol that git can handle is
+ fine.
-* You can remove a tapped repository using the `brew untap` command.
+* Add `--full` to either the one- or two-argument invocations above, and git
+ will make a complete clone rather than a shallow one.
-## Naming conventions and limitations
+* `brew tap --repair` migrates tapped formulae from symlink-based to
+ directory-based structure. (This should only need to be run once.)
-`brew tap username/repo` employs some shortcuts and has some limitations.
+* `brew untap user/repo [user/repo user/repo ...]` removes the given taps. The
+ repos are deleted and `brew` will no longer be aware of its formulae. `brew
+ untap` can handle multiple removals at once.
-* On GitHub, your repository must be named `homebrew-something`.
- The prefix 'homebrew-' is not optional.
+## Repository naming conventions and assumptions
-* When you use `brew tap` on the command line, you can leave out the
- 'homebrew-' prefix in commands.
+* On GitHub, your repository must be named `homebrew-something` in order to use
+ the one-argument form of `brew tap`. The prefix 'homebrew-' is not optional.
+ (The two-argument form doesn't have this limitation, but it forces you to
+ give the full URL explicitly.)
- That is, `brew tap username/foobar` can be used as a shortcut for the long version: `brew tap username/homebrew-foobar`. The command will automatically add back the 'homebrew-' prefix.
+* When you use `brew tap` on the command line, however, you can leave out the
+ 'homebrew-' prefix in commands.
+
+ That is, `brew tap username/foobar` can be used as a shortcut for the long
+ version: `brew tap username/homebrew-foobar`. `brew` will automatically add
+ back the 'homebrew-' prefix whenever it's necessary.
## Formula duplicate names
-If your tap contains a formula that is also present in master, that's fine, but it means that you must install it explicitly.
-For example, you can create a tap for an alternative `vim` formula, but in that case when you install from there you must run the command with a more explicit installation target:
+If your tap contains a formula that is also present in master, that's fine, but
+it means that you must install it explicitly.
+
+For example, you can create a tap for an alternative `vim` formula, but in that
+case when you install from there you must run the command with a more explicit
+installation target:
```bash
brew install vim # installs from Homebrew/homebrew | true |
Other | Homebrew | brew | 5e3a1a7b218fe38cea0c66fce02048169cc80c2b.json | Update tap documentation.
Closes Homebrew/homebrew#40481.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | share/man/man1/brew.1 | @@ -43,9 +43,8 @@ Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is su
.
.SH "COMMANDS"
.
-.TP
-\fBaudit\fR [\-\-strict] [\fIformulae\fR]
-Check \fIformulae\fR for Homebrew coding style violations\. This should be run before submitting a new formula\.
+.IP "\(bu" 4
+\fBaudit\fR [\-\-strict] [\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\.
@@ -56,13 +55,11 @@ If \fB\-\-strict\fR is passed, additional checks are run\. This should be used w
.IP
\fBaudit\fR exits with a non\-zero status if any errors are found\. This is useful, for instance, for implementing pre\-commit hooks\.
.
-.TP
-\fBcat\fR \fIformula\fR
-Display the source to \fIformula\fR\.
+.IP "\(bu" 4
+\fBcat\fR \fIformula\fR: Display the source to \fIformula\fR\.
.
-.TP
-\fBcleanup [\-\-force] [\-\-prune=<days>] [\-ns]\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 "\(bu" 4
+\fBcleanup [\-\-force] [\-\-prune=<days>] [\-ns]\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,17 +73,14 @@ 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 formula\. Note downloads for any installed formula will still not be deleted\. If you want to delete those too: \fBrm \-rf $(brew \-\-cache)\fR
.
-.TP
-\fBcommands\fR
-Show a list of built\-in and external commands\.
+.IP "\(bu" 4
+\fBcommands\fR: Show a list of built\-in and external commands\.
.
-.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
+\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
-\fBcreate <URL> [\-\-autotools|\-\-cmake] [\-\-no\-fetch] [\-\-set\-name <name>] [\-\-set\-version <version>]\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 wget formula serves as a simple example\. For a complete cheat\-sheet, have a look at
+.IP "\(bu" 4
+\fBcreate <URL> [\-\-autotools|\-\-cmake] [\-\-no\-fetch] [\-\-set\-name <name>] [\-\-set\-version <version>]\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 wget formula serves as a simple example\. For a complete cheat\-sheet, have a look at
.
.IP
\fB$(brew \-\-repository)/Library/Contributions/example\-formula\.rb\fR
@@ -100,9 +94,8 @@ 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\.
.
-.TP
-\fBdeps [\-\-1] [\-n] [\-\-union] [\-\-tree] [\-\-all] [\-\-installed] [\-\-skip\-build] [\-\-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 "\(bu" 4
+\fBdeps [\-\-1] [\-n] [\-\-union] [\-\-tree] [\-\-all] [\-\-installed] [\-\-skip\-build] [\-\-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\.
@@ -125,31 +118,26 @@ 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\.
.
-.TP
-\fBdiy [\-\-name=<name>] [\-\-version=<version>]\fR
-Automatically determine the installation prefix for non\-Homebrew software\.
+.IP "\(bu" 4
+\fBdiy [\-\-name=<name>] [\-\-version=<version>]\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=<name>\fR and \fB\-\-version=<version>\fR each take an argument and allow you to explicitly set the name and version of the package you are installing\.
.
-.TP
-\fBdoctor\fR
-Check your system for potential problems\. Doctor exits with a non\-zero status if any problems are found\.
+.IP "\(bu" 4
+\fBdoctor\fR: Check your system for potential problems\. Doctor exits with a non\-zero status if any problems are found\.
.
-.TP
-\fBedit\fR
-Open all of Homebrew for editing\.
+.IP "\(bu" 4
+\fBedit\fR: Open all of Homebrew for editing\.
.
-.TP
-\fBedit\fR \fIformula\fR
-Open \fIformula\fR in the editor\.
+.IP "\(bu" 4
+\fBedit\fR \fIformula\fR: Open \fIformula\fR in the editor\.
.
-.TP
-\fBfetch [\-\-force] [\-v] [\-\-devel|\-\-HEAD] [\-\-deps] [\-\-build\-from\-source|\-\-force\-bottle]\fR \fIformulae\fR
-Download the source packages for the given \fIformulae\fR\. For tarballs, also print SHA1 and SHA\-256 checksums\.
+.IP "\(bu" 4
+\fBfetch [\-\-force] [\-v] [\-\-devel|\-\-HEAD] [\-\-deps] [\-\-build\-from\-source|\-\-force\-bottle]\fR \fIformulae\fR: Download the source packages for the given \fIformulae\fR\. For tarballs, also print SHA1 and SHA\-256 checksums\.
.
.IP
If \fB\-\-HEAD\fR or \fB\-\-devel\fR is passed, fetch that version instead of the stable version\.
@@ -169,38 +157,32 @@ 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\.
.
-.TP
-\fBhome\fR
-Open Homebrew\'s own homepage in a browser\.
+.IP "\(bu" 4
+\fBhome\fR: Open Homebrew\'s own homepage in a browser\.
.
-.TP
-\fBhome\fR \fIformula\fR
-Open \fIformula\fR\'s homepage in a browser\.
+.IP "\(bu" 4
+\fBhome\fR \fIformula\fR: Open \fIformula\fR\'s homepage in a browser\.
.
-.TP
-\fBinfo\fR \fIformula\fR
-Display information about \fIformula\fR\.
+.IP "\(bu" 4
+\fBinfo\fR \fIformula\fR: Display information about \fIformula\fR\.
.
-.TP
-\fBinfo \-\-github\fR \fIformula\fR
-Open a browser to the GitHub History page for formula \fIformula\fR\.
+.IP "\(bu" 4
+\fBinfo \-\-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\.
.
-.TP
-\fBinfo \-\-json=<version>\fR (\-\-all|\-\-installed|\fIformulae\fR)
-Print a JSON representation of \fIformulae\fR\. Currently the only accepted value for \fIversion\fR is \fBv1\fR\.
+.IP "\(bu" 4
+\fBinfo \-\-json=<version>\fR (\-\-all|\-\-installed|\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
.
-.TP
-\fBinstall [\-\-debug] [\-\-env=<std|super>] [\-\-ignore\-dependencies] [\-\-only\-dependencies] [\-\-cc=<compiler>] [\-\-build\-from\-source] [\-\-devel|\-\-HEAD]\fR \fIformula\fR
-Install \fIformula\fR\.
+.IP "\(bu" 4
+\fBinstall [\-\-debug] [\-\-env=<std|super>] [\-\-ignore\-dependencies] [\-\-only\-dependencies] [\-\-cc=<compiler>] [\-\-build\-from\-source] [\-\-devel|\-\-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,27 +217,23 @@ 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\.
.
-.TP
-\fBinstall \-\-interactive [\-\-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 "\(bu" 4
+\fBinstall \-\-interactive [\-\-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\.
.
-.TP
-\fBirb [\-\-example]\fR
-Enter the interactive Homebrew Ruby shell\.
+.IP "\(bu" 4
+\fBirb [\-\-example]\fR: Enter the interactive Homebrew Ruby shell\.
.
.IP
If \fB\-\-example\fR is passed, several examples will be shown\.
.
-.TP
-\fBleaves\fR
-Show installed formulae that are not dependencies of another installed formula\.
+.IP "\(bu" 4
+\fBleaves\fR: Show installed formulae that are not dependencies of another installed formula\.
.
-.TP
-\fBln\fR, \fBlink [\-\-overwrite] [\-\-dry\-run] [\-\-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 "\(bu" 4
+\fBln\fR, \fBlink [\-\-overwrite] [\-\-dry\-run] [\-\-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\.
@@ -266,19 +244,17 @@ 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\.
.
-.TP
-\fBlinkapps [\-\-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 "\(bu" 4
+\fBlinkapps [\-\-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\.
.
-.TP
-\fBls, list [\-\-unbrewed] [\-\-versions [\-\-multiple]] [\-\-pinned]\fR [\fIformulae\fR]
-Without any arguments, list all installed formulae\.
+.IP "\(bu" 4
+\fBls, list [\-\-unbrewed] [\-\-versions [\-\-multiple]] [\-\-pinned]\fR [\fIformulae\fR]: Without any arguments, list all installed formulae\.
.
.IP
If \fIformulae\fR are given, 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\.
@@ -292,20 +268,17 @@ If \fB\-\-versions\fR is passed, show the version number for installed formulae,
.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\.
.
-.TP
-\fBlog [git\-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
+\fBlog [git\-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
-\fBmissing\fR [\fIformulae\fR]
-Check the given \fIformulae\fR for missing dependencies\.
+.IP "\(bu" 4
+\fBmissing\fR [\fIformulae\fR]: Check the given \fIformulae\fR for missing dependencies\.
.
.IP
If no \fIformulae\fR are given, check all installed brews\.
.
-.TP
-\fBoptions [\-\-compact] [\-\-all] [\-\-installed]\fR \fIformula\fR
-Display install options specific to \fIformula\fR\.
+.IP "\(bu" 4
+\fBoptions [\-\-compact] [\-\-all] [\-\-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\.
@@ -316,9 +289,8 @@ If \fB\-\-all\fR is passed, show options for all formulae\.
.IP
If \fB\-\-installed\fR is passed, show options for all installed formulae\.
.
-.TP
-\fBoutdated [\-\-quiet|\-\-verbose]\fR
-Show formulae that have an updated version available\.
+.IP "\(bu" 4
+\fBoutdated [\-\-quiet|\-\-verbose]\fR: Show formulae that have an updated version available\.
.
.IP
By default, version information is displayed in interactive shells, and suppressed otherwise\.
@@ -329,76 +301,70 @@ If \fB\-\-quiet\fR is passed, list only the names of outdated brews (takes prece
.IP
If \fB\-\-verbose\fR is passed, display detailed version information\.
.
-.TP
-\fBpin\fR \fIformulae\fR
-Pin the specified \fIformulae\fR, preventing them from being upgraded when issuing the \fBbrew upgrade \-\-all\fR command\. See also \fBunpin\fR\.
+.IP "\(bu" 4
+\fBpin\fR \fIformulae\fR: Pin the specified \fIformulae\fR, preventing them from being upgraded when issuing the \fBbrew upgrade \-\-all\fR command\. See also \fBunpin\fR\.
.
-.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
+\fBprune\fR: Remove dead symlinks from the Homebrew prefix\. This is generally not needed, but can be useful when doing DIY installations\.
.
-.TP
-\fBreinstall\fR \fIformula\fR
-Uninstall then install \fIformula\fR
+.IP "\(bu" 4
+\fBreinstall\fR \fIformula\fR: Uninstall then install \fIformula\fR
.
-.TP
-\fBrm\fR, \fBremove\fR, \fBuninstall [\-\-force]\fR \fIformula\fR
-Uninstall \fIformula\fR\.
+.IP "\(bu" 4
+\fBrm\fR, \fBremove\fR, \fBuninstall [\-\-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\.
.
-.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\fR, \fB\-S\fR: Display all locally available formulae for brewing (including tapped ones)\. No online search is performed if called without arguments\.
.
-.TP
-\fBsearch\fR, \fB\-S\fR \fItext\fR|/\fItext\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
+\fBsearch\fR, \fB\-S\fR \fItext\fR|/\fItext\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 \-\-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
+\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
-\fBsh [\-\-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 a Xcode\-only configuration since it adds tools like make to your PATH which otherwise build\-systems would not find\.
+.IP "\(bu" 4
+\fBsh [\-\-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 a Xcode\-only configuration since it adds tools like make to your PATH which otherwise build\-systems would not find\.
.
-.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
+\fBswitch\fR \fIname\fR \fIversion\fR: Symlink all of the specific \fIversion\fR of \fIname\fR\'s install to Homebrew prefix\.
.
-.TP
-\fBtap\fR [\-\-full] [\fItap\fR]
-Tap a new formula repository from GitHub, or list existing taps\.
+.IP "\(bu" 4
+\fBtap\fR [\-\-full] [<user/repo>] [\fIURL\fR]: Tap a formula repository or list existing taps\. This command can be invoked in three ways\.
.
-.IP
-\fItap\fR is of the form \fIuser\fR/\fIrepo\fR, e\.g\. \fBbrew tap homebrew/dupes\fR\.
+.IP "\(bu" 4
+\fBtap\fR without arguments displays existing taps\.
+.
+.IP "\(bu" 4
+\fBtap <user/repo>\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\.
+.
+.IP "\(bu" 4
+\fBtap <user/repo> <URL>\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(S), FTP(S), RSYNC\.
+.
+.IP "" 0
.
.IP
-If \fB\-\-full\fR is passed, a full clone will be used\.
+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\.
.
-.TP
-\fBtap \-\-repair\fR
-Migrate tapped formulae from symlink\-based to directory\-based structure\.
+.IP "\(bu" 4
+\fBtap \-\-repair\fR: Migrate tapped formulae from symlink\-based to directory\-based structure\.
.
-.TP
-\fBtap\-info\fR \fItap\fR
-Display information about \fItap\fR\.
+.IP "\(bu" 4
+\fBtap\-info\fR \fItap\fR: Display information about \fItap\fR\.
.
-.TP
-\fBtap\-info \-\-json=<version>\fR (\-\-installed|\fItaps\fR)
-Print a JSON representation of \fItaps\fR\. Currently the only accepted value for \fIversion\fR is \fBv1\fR\.
+.IP "\(bu" 4
+\fBtap\-info \-\-json=<version>\fR (\-\-installed|\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
.
-.TP
-\fBtest\fR [\-\-devel|\-\-HEAD] [\-\-debug] \fIformula\fR
-A few formulae provide a test method\. \fBbrew test <formula>\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 "\(bu" 4
+\fBtest\fR [\-\-devel|\-\-HEAD] [\-\-debug] \fIformula\fR: A few formulae provide a test method\. \fBbrew test <formula>\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\.
@@ -409,55 +375,47 @@ If \fB\-\-debug\fR is passed and the test fails, an interactive debugger will be
.IP
Example: \fBbrew install jruby && brew test jruby\fR
.
-.TP
-\fBunlink\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 "\(bu" 4
+\fBunlink\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
-\fBunlinkapps [\-\-local]\fR [\fIformulae\fR]
-Removes links created by \fBbrew linkapps\fR\.
+.IP "\(bu" 4
+\fBunlinkapps [\-\-local]\fR [\fIformulae\fR]: Removes links created by \fBbrew linkapps\fR\.
.
.IP
If no \fIformulae\fR are provided, all linked app will be removed\.
.
-.TP
-\fBunpack [\-\-git|\-\-patch] [\-\-destdir=<path>]\fR \fIformulae\fR
-Unpack the source files for \fIformulae\fR into subdirectories of the current working directory\. If \fB\-\-destdir=<path>\fR is given, the subdirectories will be created in the directory named by \fB<path>\fR instead\.
+.IP "\(bu" 4
+\fBunpack [\-\-git|\-\-patch] [\-\-destdir=<path>]\fR \fIformulae\fR: Unpack the source files for \fIformulae\fR into subdirectories of the current working directory\. If \fB\-\-destdir=<path>\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\.
.
-.TP
-\fBunpin\fR \fIformulae\fR
-Unpin \fIformulae\fR, allowing them to be upgraded by \fBbrew upgrade \-\-all\fR\. See also \fBpin\fR\.
+.IP "\(bu" 4
+\fBunpin\fR \fIformulae\fR: Unpin \fIformulae\fR, allowing them to be upgraded by \fBbrew upgrade \-\-all\fR\. See also \fBpin\fR\.
.
-.TP
-\fBuntap\fR \fItap\fR
-Remove a tapped repository\.
+.IP "\(bu" 4
+\fBuntap\fR \fItap\fR: Remove a tapped repository\.
.
-.TP
-\fBupdate [\-\-rebase]\fR
-Fetch the newest version of Homebrew and all formulae from GitHub using \fBgit\fR(1)\.
+.IP "\(bu" 4
+\fBupdate [\-\-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\.
.
-.TP
-\fBupgrade [install\-options]\fR [\fIformulae\fR]
-Upgrade outdated, unpinned brews\.
+.IP "\(bu" 4
+\fBupgrade [install\-options]\fR [\fIformulae\fR]: Upgrade outdated, unpinned brews\.
.
.IP
Options for the \fBinstall\fR command are also valid here\.
.
.IP
If \fIformulae\fR are given, upgrade only the specified brews (but do so even if they are pinned; see \fBpin\fR, \fBunpin\fR)\.
.
-.TP
-\fBuses [\-\-installed] [\-\-recursive] [\-\-skip\-build] [\-\-skip\-optional] [\-\-devel|\-\-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 "\(bu" 4
+\fBuses [\-\-installed] [\-\-recursive] [\-\-skip\-build] [\-\-skip\-optional] [\-\-devel|\-\-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\.
@@ -471,41 +429,34 @@ 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\.
.
-.TP
-\fB\-\-cache\fR
-Display Homebrew\'s download cache\. See also \fBHOMEBREW_CACHE\fR\.
+.IP "\(bu" 4
+\fB\-\-cache\fR: Display Homebrew\'s download cache\. See also \fBHOMEBREW_CACHE\fR\.
.
-.TP
-\fB\-\-cache\fR \fIformula\fR
-Display the file or directory used to cache \fIformula\fR\.
+.IP "\(bu" 4
+\fB\-\-cache\fR \fIformula\fR: Display the file or directory used to cache \fIformula\fR\.
.
-.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\-\-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\-\-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\-\-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\-\-env\fR
-Show a summary of the Homebrew build environment\.
+.IP "\(bu" 4
+\fB\-\-env\fR: Show a summary of the Homebrew build environment\.
.
-.TP
-\fB\-\-prefix\fR
-Display Homebrew\'s install path\. \fIDefault:\fR \fB/usr/local\fR
+.IP "\(bu" 4
+\fB\-\-prefix\fR: Display Homebrew\'s install path\. \fIDefault:\fR \fB/usr/local\fR
.
-.TP
-\fB\-\-prefix\fR \fIformula\fR
-Display the location in the cellar where \fIformula\fR is or would be installed\.
+.IP "\(bu" 4
+\fB\-\-prefix\fR \fIformula\fR: Display the location in the cellar where \fIformula\fR is or would be installed\.
.
-.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 "\(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\-\-version\fR
-Print the version number of brew to standard error and exit\.
+.IP "\(bu" 4
+\fB\-\-version\fR: Print the version number of brew to standard error and exit\.
+.
+.IP "" 0
.
.SH "EXTERNAL COMMANDS"
Homebrew, like \fBgit\fR(1), supports external commands\. These are executable scripts that reside somewhere in the PATH, named \fBbrew\-<cmdname>\fR or \fBbrew\-<cmdname>\.rb\fR, which can be invoked like \fBbrew cmdname\fR\. This allows you to create your own commands without modifying Homebrew\'s internals\. | true |
Other | Homebrew | brew | be9c5d5d16332ffa888853745c7792a0c8bffd9c.json | Remove some 10.5 hacks | Library/Homebrew/download_strategy.rb | @@ -488,8 +488,6 @@ def fetch_repo target, url, revision=nil, ignore_externals=false
# cache as it will make any changes to get the right revision.
svncommand = target.directory? ? 'up' : 'checkout'
args = ['svn', svncommand] + fetch_args
- # SVN shipped with XCode 3.1.4 can't force a checkout.
- args << '--force' unless MacOS.version == :leopard
args << url unless target.directory?
args << target
args << '-r' << revision if revision | true |
Other | Homebrew | brew | be9c5d5d16332ffa888853745c7792a0c8bffd9c.json | Remove some 10.5 hacks | Library/Homebrew/utils.rb | @@ -187,8 +187,6 @@ def curl *args
flags = flags.delete("#") if ARGV.verbose?
args = [flags, HOMEBREW_USER_AGENT, *args]
- # See https://github.com/Homebrew/homebrew/issues/6103
- args << "--insecure" if MacOS.version < "10.6"
args << "--verbose" if ENV['HOMEBREW_CURL_VERBOSE']
args << "--silent" unless $stdout.tty?
| true |
Other | Homebrew | brew | bd0f1794787a676b38bd6639bd56ff0bb2ed7c4a.json | Remove obsolete doctor check
We don't support 10.5 anymore, and tigerbrew doesn't have this check
anymore, either. | Library/Homebrew/cmd/doctor.rb | @@ -1001,23 +1001,6 @@ def check_git_status
end
end
-def check_git_ssl_verify
- if MacOS.version <= :leopard && !ENV['GIT_SSL_NO_VERIFY'] then <<-EOS.undent
- The version of libcurl provided with Mac OS X #{MacOS.version} has outdated
- SSL certificates.
-
- This can cause problems when running Homebrew commands that use Git to
- fetch over HTTPS, e.g. `brew update` or installing formulae that perform
- Git checkouts.
-
- You can force Git to ignore these errors:
- export GIT_SSL_NO_VERIFY=1
- or
- git config --global http.sslVerify false
- EOS
- end
-end
-
def check_for_enthought_python
if which "enpkg" then <<-EOS.undent
Enthought Python was found in your PATH. | false |
Other | Homebrew | brew | c704142590ef6a5699518a2f85b90d8cd42fe2a8.json | Add tip about devel version bumps
Tip mentioned in https://github.com/Homebrew/homebrew/pull/40570
Closes Homebrew/homebrew#40578.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com> | share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md | @@ -15,7 +15,7 @@ To make a new branch and submit it for review:
4. Make your changes to any Homebrew formula with `brew edit` (following all the requirements in the [Formula Cookbook](Formula-Cookbook.md)). Run `brew audit ANY_CHANGED_FORMULA`, `brew tests` and `brew install ANY_CHANGED_FORMULA && brew test ANY_CHANGED_FORMULA` and ensure all of these pass without issue. If there's a `bottle do` block in the formula: don't remove it; we'll update it when we pull it.
5. Make a separate commit for each changed formula with `git add` and `git commit`.
6. Upload your new commits to the branch to your fork with `git push --set-upstream YOUR_USERNAME YOUR_BRANCH_NAME`
-7. Go to https://github.com/Homebrew/homebrew and create a pull request to request review and merge of commits in your pushed branch. Make sure you explain why the change is needed and, if fixing a bug, how to reproduce the bug. Please note that the preferred commit message format for simple version updates is "FORMULA_NAME NEW_VERSION", e.g. "`source-highlight 3.1.8`". Await feedback or a merge from Homebrew's maintainers.
+7. Go to https://github.com/Homebrew/homebrew and create a pull request to request review and merge of commits in your pushed branch. Make sure you explain why the change is needed and, if fixing a bug, how to reproduce the bug. Please note that the preferred commit message format for simple version updates is "FORMULA_NAME NEW_VERSION", e.g. "`source-highlight 3.1.8`". `devel` version bumps should have the commit message marked with addtional `(devel)` suffix like "`nginx 1.9.1 (devel)`". Await feedback or a merge from Homebrew's maintainers.
To respond well to feedback:
| false |
Other | Homebrew | brew | 787934ed6fcf1f0b7a6240f8daf6d8908cf09650.json | add brew tap-info | Library/Homebrew/cmd/tap-info.rb | @@ -0,0 +1,59 @@
+require "cmd/tap"
+
+module Homebrew
+ def tap_info
+ if ARGV.include? "--installed"
+ taps = Tap
+ else
+ taps = ARGV.named.map do |name|
+ Tap.new(*tap_args(name))
+ end
+ end
+
+ if ARGV.json == "v1"
+ print_tap_json(taps)
+ else
+ print_tap_info(taps)
+ end
+ end
+
+ private
+
+ def print_tap_info(taps)
+ if taps.none?
+ tap_count = 0
+ formula_count = 0
+ command_count = 0
+ Tap.each do |tap|
+ tap_count += 1
+ formula_count += tap.formula_files.size
+ command_count += tap.command_files.size
+ end
+ info = "#{tap_count} tap#{plural(tap_count)}"
+ info += ", #{formula_count} formula#{plural(formula_count, "e")}"
+ info += ", #{command_count} command#{plural(command_count)}"
+ info += ", #{Tap::TAP_DIRECTORY.abv}" if Tap::TAP_DIRECTORY.directory?
+ puts info
+ else
+ taps.each_with_index do |tap, i|
+ puts unless i == 0
+ info = "#{tap}: "
+ if tap.installed?
+ formula_count = tap.formula_files.size
+ info += "#{formula_count} formula#{plural(formula_count, "e")} " if formula_count > 0
+ command_count = tap.command_files.size
+ info += "#{command_count} command#{plural(command_count)} " if command_count > 0
+ info += "\n#{tap.path} (#{tap.path.abv})"
+ else
+ info += "Not installed"
+ end
+ puts info
+ puts "From: #{tap.remote}"
+ end
+ end
+ end
+
+ def print_tap_json(taps)
+ puts Utils::JSON.dump(taps.map(&:to_hash))
+ end
+end | false |
Other | Homebrew | brew | 44383fecb865014142c8934eacf2c90837a5b57c.json | (un)tap/update/readall: use Tap class | Library/Homebrew/cmd/readall.rb | @@ -34,12 +34,9 @@ def readall
if ARGV.named.empty?
formulae = Formula.full_names
else
- user, repo = tap_args
- user.downcase!
- repo.downcase!
- tap = HOMEBREW_LIBRARY/"Taps/#{user}/homebrew-#{repo}"
- raise "#{tap} does not exist!" unless tap.directory?
- tap.find_formula { |f| formulae << f }
+ tap = Tap.new(*tap_args)
+ raise "#{tap} does not exist!" unless tap.installed?
+ formulae = tap.formula_files
end
formulae.sort.each do |n| | true |
Other | Homebrew | brew | 44383fecb865014142c8934eacf2c90837a5b57c.json | (un)tap/update/readall: use Tap class | Library/Homebrew/cmd/tap.rb | @@ -1,9 +1,9 @@
+require "tap"
+
module Homebrew
def tap
if ARGV.empty?
- each_tap do |user, repo|
- puts "#{user.basename}/#{repo.basename.sub("homebrew-", "")}" if (repo/".git").directory?
- end
+ puts Tap.names
elsif ARGV.first == "--repair"
migrate_taps :force => true
else
@@ -14,35 +14,25 @@ def tap
end
def install_tap user, repo, clone_target=nil
- # we special case homebrew so users don't have to shift in a terminal
- repouser = if user == "homebrew" then "Homebrew" else user end
- user = "homebrew" if user == "Homebrew"
-
- # we downcase to avoid case-insensitive filesystem issues
- tapd = HOMEBREW_LIBRARY/"Taps/#{user.downcase}/homebrew-#{repo.downcase}"
- return false if tapd.directory?
- ohai "Tapping #{repouser}/#{repo}"
- if clone_target
- args = %W[clone #{clone_target} #{tapd}]
- else
- args = %W[clone https://github.com/#{repouser}/homebrew-#{repo} #{tapd}]
- end
+ tap = Tap.new user, repo, clone_target
+ return false if tap.installed?
+ ohai "Tapping #{tap}"
+ args = %W[clone #{tap.remote} #{tap.path}]
args << "--depth=1" unless ARGV.include?("--full")
safe_system "git", *args
- files = []
- tapd.find_formula { |file| files << file }
- puts "Tapped #{files.length} formula#{plural(files.length, 'e')} (#{tapd.abv})"
+ formula_count = tap.formula_files.size
+ puts "Tapped #{formula_count} formula#{plural(formula_count, 'e')} (#{tap.path.abv})"
- if check_private?(clone_target, repouser, repo)
+ if !clone_target && tap.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 #{tapd}
- git remote set-url origin git@github.com:#{repouser}/homebrew-#{repo}.git
- EOS
+ cd #{tap.path}
+ git remote set-url origin git@github.com:#{tap.user}/homebrew-#{tap.repo}.git
+ EOS
end
true
@@ -58,33 +48,9 @@ def migrate_taps(options={})
private
- def each_tap
- taps = HOMEBREW_LIBRARY.join("Taps")
-
- if taps.directory?
- taps.subdirs.each do |user|
- user.subdirs.each do |repo|
- yield user, repo
- end
- end
- end
- end
-
def tap_args(tap_name=ARGV.named.first)
tap_name =~ HOMEBREW_TAP_ARGS_REGEX
raise "Invalid tap name" unless $1 && $3
[$1, $3]
end
-
- def private_tap?(user, repo)
- GitHub.private_repo?(user, "homebrew-#{repo}")
- rescue GitHub::HTTPNotFoundError
- true
- rescue GitHub::Error
- false
- end
-
- def check_private?(clone_target, user, repo)
- !clone_target && private_tap?(user, repo)
- end
end | true |
Other | Homebrew | brew | 44383fecb865014142c8934eacf2c90837a5b57c.json | (un)tap/update/readall: use Tap class | Library/Homebrew/cmd/untap.rb | @@ -4,26 +4,16 @@ module Homebrew
def untap
raise "Usage is `brew untap <tap-name>`" if ARGV.empty?
- ARGV.each do |tapname|
- user, repo = tap_args(tapname)
+ ARGV.named.each do |tapname|
+ tap = Tap.new(*tap_args(tapname))
- # We consistently downcase in tap to ensure we are not bitten by
- # case-insensitive filesystem issues, which is the default on mac. The
- # problem being the filesystem cares, but our regexps don't. So unless we
- # resolve *every* path we will get bitten.
- user.downcase!
- repo.downcase!
+ raise "No such tap!" unless tap.installed?
+ puts "Untapping #{tap}... (#{tap.path.abv})"
- tapd = HOMEBREW_LIBRARY/"Taps/#{user}/homebrew-#{repo}"
-
- raise "No such tap!" unless tapd.directory?
- puts "Untapping #{tapname}... (#{tapd.abv})"
-
- files = []
- tapd.find_formula { |file| files << file }
- tapd.rmtree
- tapd.dirname.rmdir_if_possible
- puts "Untapped #{files.length} formula#{plural(files.length, 'e')}"
+ formula_count = tap.formula_files.size
+ tap.path.rmtree
+ tap.path.dirname.rmdir_if_possible
+ puts "Untapped #{formula_count} formula#{plural(formula_count, 'e')}"
end
end
end | true |
Other | Homebrew | brew | 44383fecb865014142c8934eacf2c90837a5b57c.json | (un)tap/update/readall: use Tap class | Library/Homebrew/cmd/update.rb | @@ -27,14 +27,14 @@ def update
# this procedure will be removed in the future if it seems unnecessasry
rename_taps_dir_if_necessary
- each_tap do |user, repo|
- repo.cd do
- updater = Updater.new(repo)
+ Tap.each do |tap|
+ tap.path.cd do
+ updater = Updater.new(tap.path)
begin
updater.pull!
rescue
- onoe "Failed to update tap: #{user.basename}/#{repo.basename.sub("homebrew-", "")}"
+ onoe "Failed to update tap: #{tap}"
else
report.update(updater.report) do |key, oldval, newval|
oldval.concat(newval) | true |
Other | Homebrew | brew | f7bcfe5115f92e5e88596bf77d34f9a954e4c4b0.json | add Tap class | Library/Homebrew/tap.rb | @@ -0,0 +1,97 @@
+class Tap
+ TAP_DIRECTORY = HOMEBREW_LIBRARY/"Taps"
+
+ extend Enumerable
+
+ attr_reader :user
+ attr_reader :repo
+ attr_reader :name
+ attr_reader :path
+ attr_reader :remote
+
+ def initialize(user, repo, remote=nil)
+ # we special case homebrew so users don't have to shift in a terminal
+ @user = user == "homebrew" ? "Homebrew" : user
+ @repo = repo
+ @name = "#{@user}/#{@repo}".downcase
+ @path = TAP_DIRECTORY/"#{@user}/homebrew-#{@repo}".downcase
+ if installed?
+ @path.cd do
+ @remote = Utils.popen_read("git", "config", "--get", "remote.origin.url").chomp
+ end
+ else
+ @remote = remote || "https://github.com/#{@user}/homebrew-#{@repo}"
+ end
+ end
+
+ def to_s
+ name
+ end
+
+ def official?
+ @user == "Homebrew"
+ end
+
+ def private?
+ return true if custom_remote?
+ GitHub.private_repo?(@user, "homebrew-#{@repo}")
+ rescue GitHub::HTTPNotFoundError
+ true
+ rescue GitHub::Error
+ false
+ end
+
+ def installed?
+ (@path/".git").directory?
+ end
+
+ def custom_remote?
+ @remote.casecmp("https://github.com/#{@user}/homebrew-#{@repo}") != 0
+ end
+
+ def formula_files
+ dir = [@path/"Formula", @path/"HomebrewFormula", @path].detect(&:directory?)
+ return [] unless dir
+ dir.children.select { |p| p.extname == ".rb" }
+ end
+
+ def formula_names
+ formula_files.map { |f| "#{name}/#{f.basename(".rb")}" }
+ end
+
+ def command_files
+ Pathname.glob("#{path}/cmd/brew-*").select(&:executable?)
+ end
+
+ def to_hash
+ {
+ "name" => @name,
+ "user" => @user,
+ "repo" => @repo,
+ "path" => @path.to_s,
+ "remote" => @remote,
+ "installed" => installed?,
+ "official" => official?,
+ "custom_remote" => custom_remote?,
+ "formula_names" => formula_names,
+ "formula_files" => formula_files.map(&:to_s),
+ "command_files" => command_files.map(&:to_s),
+ }
+ end
+
+ def self.each
+ return unless TAP_DIRECTORY.directory?
+
+ TAP_DIRECTORY.subdirs.each do |user|
+ user.subdirs.each do |repo|
+ if (repo/".git").directory?
+ yield new(user.basename.to_s, repo.basename.to_s.sub("homebrew-", ""))
+ end
+ end
+ end
+ end
+
+ def self.names
+ map(&:name)
+ end
+end | false |
Other | Homebrew | brew | ea167399a293ac0a14d09150e0479ae849f9b2b8.json | audit: fix index method for ruby 1.8
Per
https://github.com/Homebrew/homebrew/pull/40472#issuecomment-110357915 | Library/Homebrew/cmd/audit.rb | @@ -56,7 +56,7 @@ def audit
class FormulaText
def initialize path
@text = path.open("rb", &:read)
- @lines = @text.lines
+ @lines = @text.lines.to_a
end
def without_patch | false |
Other | Homebrew | brew | 8604799f1a320850ac564935265f414f93598599.json | audit: add rules on field order
Closes Homebrew/homebrew#40472.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/cmd/audit.rb | @@ -56,6 +56,7 @@ def audit
class FormulaText
def initialize path
@text = path.open("rb", &:read)
+ @lines = @text.lines
end
def without_patch
@@ -77,6 +78,11 @@ def has_trailing_newline?
def =~ regex
regex =~ @text
end
+
+ def line_number regex
+ index = @lines.index { |line| line =~ regex }
+ index ? index + 1 : nil
+ end
end
class FormulaAuditor
@@ -125,6 +131,37 @@ def audit_file
unless text.has_trailing_newline?
problem "File should end with a newline"
end
+
+ return unless @strict
+
+ component_list = [
+ [/^ desc ["'][\S\ ]+["']/, "desc" ],
+ [/^ homepage ["'][\S\ ]+["']/, "homepage" ],
+ [/^ url ["'][\S\ ]+["']/, "url" ],
+ [/^ mirror ["'][\S\ ]+["']/, "mirror" ],
+ [/^ version ["'][\S\ ]+["']/, "version" ],
+ [/^ (sha1|sha256) ["'][\S\ ]+["']/, "checksum" ],
+ [/^ head ["'][\S\ ]+["']/, "head" ],
+ [/^ stable do/, "stable block" ],
+ [/^ bottle do/, "bottle block" ],
+ [/^ devel do/, "devel block" ],
+ [/^ head do/, "head block" ],
+ [/^ option/, "option" ],
+ [/^ depends_on/, "depends_on" ],
+ [/^ def install/, "install method"],
+ [/^ def caveats/, "caveats method"],
+ [/^ test do/, "test block" ],
+ ]
+
+ component_list.map do |regex, name|
+ lineno = text.line_number regex
+ next unless lineno
+ [lineno, name]
+ end.compact.each_cons(2) do |c1, c2|
+ unless c1[0] < c2[0]
+ problem "`#{c1[1]}`(line #{c1[0]}) should be put before `#{c2[1]}`(line #{c2[0]})"
+ end
+ end
end
def audit_class | false |
Other | Homebrew | brew | 3c418cfb4eaa5eeafb3613172954c01aca831af1.json | bottle: add homepage and desc into regex
Some formulae put `desc` field behind `url` which can make bottle block go to strange place.
So let's add `homepage` and `desc` into bottle regex.
Closes Homebrew/homebrew#40469.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/cmd/bottle.rb | @@ -250,18 +250,19 @@ def merge
indent = s.slice(/^ +stable do/).length - "stable do".length
string = s.sub!(/^ {#{indent}}stable do(.|\n)+?^ {#{indent}}end\n/m, '\0' + output + "\n")
else
- string = s.sub!(/(
- \ {2}( # two spaces at the beginning
- url\ ['"][\S\ ]+['"] # url with a string
- (
- ,[\S\ ]*$ # url may have options
- (\n^\ {3}[\S\ ]+$)* # options can be in multiple lines
- )?|
- (sha1|sha256|head|version|mirror)\ ['"][\S\ ]+['"]| # specs with a string
- revision\ \d+ # revision with a number
- )\n+ # multiple empty lines
- )+
- /mx, '\0' + output + "\n")
+ string = s.sub!(
+ /(
+ \ {2}( # two spaces at the beginning
+ url\ ['"][\S\ ]+['"] # url with a string
+ (
+ ,[\S\ ]*$ # url may have options
+ (\n^\ {3}[\S\ ]+$)* # options can be in multiple lines
+ )?|
+ (homepage|desc|sha1|sha256|head|version|mirror)\ ['"][\S\ ]+['"]| # specs with a string
+ revision\ \d+ # revision with a number
+ )\n+ # multiple empty lines
+ )+
+ /mx, '\0' + output + "\n")
end
odie 'Bottle block addition failed!' unless string
end | false |
Other | Homebrew | brew | c6e1090c43f769e80c1aa98c2029f1eb466e0da4.json | requirement: allow access default_formula directly | Library/Homebrew/cmd/test-bot.rb | @@ -344,7 +344,7 @@ def satisfied_requirements? formula, spec, dependency=nil
satisfied ||= requirement.satisfied?
satisfied ||= requirement.optional?
if !satisfied && requirement.default_formula?
- default = Formula[requirement.class.default_formula]
+ default = Formula[requirement.default_formula]
satisfied = satisfied_requirements?(default, :stable, formula.full_name)
end
satisfied | true |
Other | Homebrew | brew | c6e1090c43f769e80c1aa98c2029f1eb466e0da4.json | requirement: allow access default_formula directly | Library/Homebrew/cmd/uses.rb | @@ -26,7 +26,7 @@ def uses
Requirement.prune if ignores.any? { |ignore| req.send(ignore) } && !dependent.build.with?(req)
end
deps.any? { |dep| dep.to_formula.full_name == ff.full_name } ||
- reqs.any? { |req| req.name == ff.name || [ff.name, ff.full_name].include?(req.class.default_formula) }
+ reqs.any? { |req| req.name == ff.name || [ff.name, ff.full_name].include?(req.default_formula) }
else
deps = f.deps.reject do |dep|
ignores.any? { |ignore| dep.send(ignore) }
@@ -35,7 +35,7 @@ def uses
ignores.any? { |ignore| req.send(ignore) }
end
deps.any? { |dep| dep.to_formula.full_name == ff.full_name } ||
- reqs.any? { |req| req.name == ff.name || [ff.name, ff.full_name].include?(req.class.default_formula) }
+ reqs.any? { |req| req.name == ff.name || [ff.name, ff.full_name].include?(req.default_formula) }
end
rescue FormulaUnavailableError
# Silently ignore this case as we don't care about things used in | true |
Other | Homebrew | brew | c6e1090c43f769e80c1aa98c2029f1eb466e0da4.json | requirement: allow access default_formula directly | Library/Homebrew/requirement.rb | @@ -9,10 +9,11 @@
class Requirement
include Dependable
- attr_reader :tags, :name, :cask, :download
+ attr_reader :tags, :name, :cask, :download, :default_formula
alias_method :option_name, :name
def initialize(tags=[])
+ @default_formula = self.class.default_formula
@cask ||= self.class.cask
@download ||= self.class.download
tags.each do |tag| | true |
Other | Homebrew | brew | e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json | update docs to use https urls
Closes Homebrew/homebrew#40446.
Signed-off-by: Xu Cheng <xucheng@me.com> | share/doc/homebrew/Formula-Cookbook.md | @@ -87,7 +87,7 @@ A more complete example-formula [cheat-sheet](https://github.com/Homebrew/homebr
All you need to make a formula is a URL to the tarball.
- brew create http://example.com/foo-0.1.tar.gz
+ brew create https://example.com/foo-0.1.tar.gz
This creates:
@@ -97,7 +97,7 @@ And opens it in your `$EDITOR`. It'll look like:
```ruby
class Foo < Formula
- url "http://example.com/foo-0.1.tar.gz"
+ url "https://example.com/foo-0.1.tar.gz"
homepage ""
sha256 "85cc828a96735bdafcf29eb6291ca91bac846579bcef7308536e0c875d6c81d7"
| true |
Other | Homebrew | brew | e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json | update docs to use https urls
Closes Homebrew/homebrew#40446.
Signed-off-by: Xu Cheng <xucheng@me.com> | share/doc/homebrew/Press.md | @@ -14,4 +14,4 @@
- [CouchDB: The Definitive Guide (Installing on OS X, Appendix
B)](http://oreilly.com/catalog/9780596155902)
- [Installing ActiveMQ on OS
- X](http://activemq.apache.org/getting-started.html#GettingStarted-UsingHomebrewinstalleronOSX)
+ X](https://activemq.apache.org/getting-started.html#GettingStarted-UsingHomebrewinstalleronOSX) | true |
Other | Homebrew | brew | e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json | update docs to use https urls
Closes Homebrew/homebrew#40446.
Signed-off-by: Xu Cheng <xucheng@me.com> | share/doc/homebrew/Querying-Brew.md | @@ -1,5 +1,5 @@
# Querying Brew
-_In this document we will be using [jq](http://stedolan.github.io/jq/) to parse JSON, available from Homebrew using `brew install jq`._
+_In this document we will be using [jq](https://stedolan.github.io/jq/) to parse JSON, available from Homebrew using `brew install jq`._
## Overview
| true |
Other | Homebrew | brew | e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json | update docs to use https urls
Closes Homebrew/homebrew#40446.
Signed-off-by: Xu Cheng <xucheng@me.com> | share/doc/homebrew/README.md | @@ -25,7 +25,7 @@ However! Fixing build issues is easier than you think: try
In short:
1. [Fork Homebrew](https://github.com/Homebrew/homebrew/fork).
-2. `brew create http://example.com/foo-0.1.tar.gz`
+2. `brew create https://example.com/foo-0.1.tar.gz`
3. `git checkout -b foo`
4. `git commit Library/Formula/foo.rb && git push`
5. [Pull Request](https://github.com/Homebrew/homebrew/pulls). | true |
Other | Homebrew | brew | e5186c15418ecbed9ab7ed6f798a3bec59ea59de.json | update docs to use https urls
Closes Homebrew/homebrew#40446.
Signed-off-by: Xu Cheng <xucheng@me.com> | share/doc/homebrew/Troubleshooting.md | @@ -52,5 +52,5 @@ Thank you!
[Gist]:https://gist.github.com
[Apple Developer]:https://developer.apple.com/downloads
-[Java Developer Update]:http://support.apple.com/kb/DL1572
+[Java Developer Update]:https://support.apple.com/kb/DL1572
[JDK 7]:https://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-install-faq.html | true |
Other | Homebrew | brew | 965e2f50c3e8490ffb799ed01d6b1e8b1a7c98cc.json | brew tap: allow tapping non-GitHub repositories.
`brew tap` restricts users to GitHub and checks for private repos. I
created `brew any-tap` to support a wider variety of taps.
With very small changes (and no extra flags!), this change allows users
to use `brew tap` with GitHub as they always have or add one extra
argument and tap any repository of any type from anywhere.
brew tap user/name # Same as it ever was
brew tap user/name URL # Tap URL, whatever it happens to be
Closes Homebrew/homebrew#40326.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/tap.rb | @@ -7,11 +7,13 @@ def tap
elsif ARGV.first == "--repair"
migrate_taps :force => true
else
- opoo "Already tapped!" unless install_tap(*tap_args)
+ user, repo = tap_args
+ clone_target = ARGV.named[1]
+ opoo "Already tapped!" unless install_tap(user, repo, clone_target)
end
end
- def install_tap user, repo
+ def install_tap user, repo, clone_target=nil
# we special case homebrew so users don't have to shift in a terminal
repouser = if user == "homebrew" then "Homebrew" else user end
user = "homebrew" if user == "Homebrew"
@@ -20,22 +22,27 @@ def install_tap user, repo
tapd = HOMEBREW_LIBRARY/"Taps/#{user.downcase}/homebrew-#{repo.downcase}"
return false if tapd.directory?
ohai "Tapping #{repouser}/#{repo}"
- args = %W[clone https://github.com/#{repouser}/homebrew-#{repo} #{tapd}]
+ if clone_target
+ args = %W[clone #{clone_target} #{tapd}]
+ else
+ args = %W[clone https://github.com/#{repouser}/homebrew-#{repo} #{tapd}]
+ end
args << "--depth=1" unless ARGV.include?("--full")
safe_system "git", *args
files = []
tapd.find_formula { |file| files << file }
puts "Tapped #{files.length} formula#{plural(files.length, 'e')} (#{tapd.abv})"
- if private_tap?(repouser, repo) then 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:
+ if check_private?(clone_target, repouser, repo)
+ 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 #{tapd}
- git remote set-url origin git@github.com:#{repouser}/homebrew-#{repo}.git
- EOS
+ cd #{tapd}
+ git remote set-url origin git@github.com:#{repouser}/homebrew-#{repo}.git
+ EOS
end
true
@@ -76,4 +83,8 @@ def private_tap?(user, repo)
rescue GitHub::Error
false
end
+
+ def check_private?(clone_target, user, repo)
+ not clone_target && private_tap?(user, repo)
+ end
end | true |
Other | Homebrew | brew | 965e2f50c3e8490ffb799ed01d6b1e8b1a7c98cc.json | brew tap: allow tapping non-GitHub repositories.
`brew tap` restricts users to GitHub and checks for private repos. I
created `brew any-tap` to support a wider variety of taps.
With very small changes (and no extra flags!), this change allows users
to use `brew tap` with GitHub as they always have or add one extra
argument and tap any repository of any type from anywhere.
brew tap user/name # Same as it ever was
brew tap user/name URL # Tap URL, whatever it happens to be
Closes Homebrew/homebrew#40326.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/untap.rb | @@ -7,10 +7,10 @@ def untap
ARGV.each do |tapname|
user, repo = tap_args(tapname)
- # we consistently downcase in tap to ensure we are not bitten by case-insensive
- # filesystem issues. Which is the default on mac. The problem being the
- # filesystem cares, but our regexps don't. So unless we resolve *every* path
- # we will get bitten.
+ # We consistently downcase in tap to ensure we are not bitten by
+ # case-insensitive filesystem issues, which is the default on mac. The
+ # problem being the filesystem cares, but our regexps don't. So unless we
+ # resolve *every* path we will get bitten.
user.downcase!
repo.downcase!
| true |
Other | Homebrew | brew | f4af8337149659eeabb5a85017b80a5c52c602fc.json | Revert "upgrade: announce usage of --all."
This reverts commit 9032f165bec3d0c7452169093fab32578816043b.
This seems to have been universally unpopular so let's revert it.
Closes Homebrew/homebrew#40372.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/upgrade.rb | @@ -5,14 +5,7 @@ module Homebrew
def upgrade
Homebrew.perform_preinstall_checks
- if ARGV.include?("--all") || ARGV.named.empty?
- unless ARGV.include? "--all"
- opoo <<-EOS.undent
- brew upgrade with no arguments will change behaviour soon!
- It currently upgrades all formula but this will soon change to require '--all'.
- Please update any workflows, documentation and scripts!
- EOS
- end
+ if ARGV.named.empty?
outdated = Homebrew.outdated_brews(Formula.installed)
exit 0 if outdated.empty?
elsif ARGV.named.any?
@@ -27,11 +20,6 @@ def upgrade
end
end
exit 1 if outdated.empty?
- else
- # This will currently never be reached but is implemented to make the
- # migration to --all easier in the future (as just the ARGV.named.empty?
- # will need removed above).
- odie "Either --all or one or more formulae must be specified!"
end
unless upgrade_pinned? | true |
Other | Homebrew | brew | f4af8337149659eeabb5a85017b80a5c52c602fc.json | Revert "upgrade: announce usage of --all."
This reverts commit 9032f165bec3d0c7452169093fab32578816043b.
This seems to have been universally unpopular so let's revert it.
Closes Homebrew/homebrew#40372.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/manpages/brew.1.md | @@ -403,15 +403,11 @@ Note that these flags should only appear after a command.
If `--rebase` is specified then `git pull --rebase` is used.
- * `upgrade [--all] [install-options]` [<formulae>]:
+ * `upgrade [install-options]` [<formulae>]:
Upgrade outdated, unpinned brews.
Options for the `install` command are also valid here.
- If `--all` is passed, upgrade all formulae. This is currently the same
- behaviour as without `--all` but soon `--all` will be required to upgrade
- all formulae.
-
If <formulae> are given, upgrade only the specified brews (but do so even
if they are pinned; see `pin`, `unpin`).
| true |
Other | Homebrew | brew | f4af8337149659eeabb5a85017b80a5c52c602fc.json | Revert "upgrade: announce usage of --all."
This reverts commit 9032f165bec3d0c7452169093fab32578816043b.
This seems to have been universally unpopular so let's revert it.
Closes Homebrew/homebrew#40372.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | share/man/man1/brew.1 | @@ -432,16 +432,13 @@ Fetch the newest version of Homebrew and all formulae from GitHub using \fBgit\f
If \fB\-\-rebase\fR is specified then \fBgit pull \-\-rebase\fR is used\.
.
.TP
-\fBupgrade [\-\-all] [install\-options]\fR [\fIformulae\fR]
+\fBupgrade [install\-options]\fR [\fIformulae\fR]
Upgrade outdated, unpinned brews\.
.
.IP
Options for the \fBinstall\fR command are also valid here\.
.
.IP
-If \fB\-\-all\fR is passed, upgrade all formulae\. This is currently the same behaviour as without \fB\-\-all\fR but soon \fB\-\-all\fR will be required to upgrade all formulae\.
-.
-.IP
If \fIformulae\fR are given, upgrade only the specified brews (but do so even if they are pinned; see \fBpin\fR, \fBunpin\fR)\.
.
.TP | true |
Other | Homebrew | brew | aa49da260082deb6d3ec3492d6c836e6ad709ba7.json | utils: prefer keg curl over system on 10.6
Closes Homebrew/homebrew#39927.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/utils.rb | @@ -175,7 +175,12 @@ def quiet_system cmd, *args
end
def curl *args
- curl = Pathname.new '/usr/bin/curl'
+ brewed_curl = HOMEBREW_PREFIX/"opt/curl/bin/curl"
+ curl = if MacOS.version <= "10.6" && brewed_curl.exist?
+ brewed_curl
+ else
+ Pathname.new '/usr/bin/curl'
+ end
raise "#{curl} is not executable" unless curl.exist? and curl.executable?
flags = HOMEBREW_CURL_ARGS | false |
Other | Homebrew | brew | de43ac75032e7a1170b0def6500dffb48dba9bf7.json | Add support for fish shell completions
* Library/Homebrew/caveats.rb: add caveats comparable to other shells
* Library/Homebrew/formula.rb: define completion directory along the
conventions explained in the fish documentation for
$fish_complete_path
* Library/Homebrew/keg.rb: add fish shell to check function for
installed completions
Closes Homebrew/homebrew#39828.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/caveats.rb | @@ -12,6 +12,7 @@ def caveats
caveats << f.keg_only_text if f.keg_only? && f.respond_to?(:keg_only_text)
caveats << bash_completion_caveats
caveats << zsh_completion_caveats
+ caveats << fish_completion_caveats
caveats << plist_caveats
caveats << python_caveats
caveats << app_caveats
@@ -46,6 +47,14 @@ def zsh_completion_caveats
end
end
+ def fish_completion_caveats
+ if keg and keg.completion_installed? :fish and which("fish") then <<-EOS.undent
+ fish completion has been installed to:
+ #{HOMEBREW_PREFIX}/share/fish/vendor_completions.d
+ EOS
+ end
+ end
+
def python_caveats
return unless keg
return unless keg.python_site_packages_installed? | true |
Other | Homebrew | brew | de43ac75032e7a1170b0def6500dffb48dba9bf7.json | Add support for fish shell completions
* Library/Homebrew/caveats.rb: add caveats comparable to other shells
* Library/Homebrew/formula.rb: define completion directory along the
conventions explained in the fish documentation for
$fish_complete_path
* Library/Homebrew/keg.rb: add fish shell to check function for
installed completions
Closes Homebrew/homebrew#39828.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/formula.rb | @@ -414,13 +414,19 @@ def var; HOMEBREW_PREFIX+'var' end
# installed.
# This is symlinked into `HOMEBREW_PREFIX` after installation or with
# `brew link` for formulae that are not keg-only.
- def bash_completion; prefix+'etc/bash_completion.d' end
+ def bash_completion; prefix+'etc/bash_completion.d' end
# The directory where the formula's ZSH completion files should be
# installed.
# This is symlinked into `HOMEBREW_PREFIX` after installation or with
# `brew link` for formulae that are not keg-only.
- def zsh_completion; share+'zsh/site-functions' end
+ def zsh_completion; share+'zsh/site-functions' end
+
+ # The directory where the formula's fish completion files should be
+ # installed.
+ # This is symlinked into `HOMEBREW_PREFIX` after installation or with
+ # `brew link` for formulae that are not keg-only.
+ def fish_completion; share+'fish/vendor_completions.d' end
# The directory used for as the prefix for {#etc} and {#var} files on
# installation so, despite not being in `HOMEBREW_CELLAR`, they are installed | true |
Other | Homebrew | brew | de43ac75032e7a1170b0def6500dffb48dba9bf7.json | Add support for fish shell completions
* Library/Homebrew/caveats.rb: add caveats comparable to other shells
* Library/Homebrew/formula.rb: define completion directory along the
conventions explained in the fish documentation for
$fish_complete_path
* Library/Homebrew/keg.rb: add fish shell to check function for
installed completions
Closes Homebrew/homebrew#39828.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/keg.rb | @@ -222,6 +222,7 @@ def completion_installed? shell
dir = case shell
when :bash then path.join("etc", "bash_completion.d")
when :zsh then path.join("share", "zsh", "site-functions")
+ when :fish then path.join("share", "fish", "vendor_completions.d")
end
dir && dir.directory? && dir.children.any?
end | true |
Other | Homebrew | brew | ffd92a87c5e0503c1ca63c52d54332c2c93618c2.json | tab: allow load from file content | Library/Homebrew/tab.rb | @@ -31,7 +31,11 @@ def self.create(formula, compiler, stdlib, build)
end
def self.from_file path
- attributes = Utils::JSON.load(File.read(path))
+ from_file_content(File.read(path), path)
+ end
+
+ def self.from_file_content content, path
+ attributes = Utils::JSON.load(content)
attributes["tabfile"] = path
attributes["source"] ||= {}
| false |
Other | Homebrew | brew | 296ca615103a9b4b59519e4f0e3b75a6bc6f9b03.json | test-bot: simplify the upload logic
If the bottle is already published, let's fail directly.
Also silent the curl output.
Closes Homebrew/homebrew#40295.
Signed-off-by: Xu Cheng <xucheng@me.com> | Library/Homebrew/cmd/test-bot.rb | @@ -789,6 +789,14 @@ def test_bot
version = formula.pkg_version
bintray_package = Bintray.package formula_name
+ if system "curl", "-I", "--silent", "--fail", "--output", "/dev/null",
+ "#{BottleSpecification::DEFAULT_DOMAIN}/#{bintray_repo}/#{filename}"
+ raise <<-EOS.undent
+ #{filename} is already published. Please remove it manually from
+ https://bintray.com/homebrew/#{bintray_repo}/#{bintray_package}/view#files
+ EOS
+ end
+
unless formula_packaged[formula_name]
package_url = "#{bintray_repo_url}/#{bintray_package}"
unless system "curl", "--silent", "--fail", "--output", "/dev/null", package_url
@@ -802,10 +810,7 @@ def test_bot
content_url = "https://api.bintray.com/content/homebrew"
content_url += "/#{bintray_repo}/#{bintray_package}/#{version}/#{filename}"
- unless system "curl", "-I", "--fail", "--output", "/dev/null",
- "https://homebrew.bintray.com/#{bintray_repo}/#{filename}"
- content_url += "?override=1"
- end
+ content_url += "?override=1"
curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}",
"-T", filename, content_url
puts | false |
Other | Homebrew | brew | bd5083f970e26b3978f26493300951f9be0fad75.json | tap_migrations: add fuse migrations | Library/Homebrew/tap_migrations.rb | @@ -1,17 +1,21 @@
TAP_MIGRATIONS = {
"adobe-air-sdk" => "homebrew/binary",
+ "afuse" => "homebrew/fuse",
"agedu" => "homebrew/head-only",
"aimage" => "homebrew/boneyard",
"aplus" => "homebrew/boneyard",
"apple-gcc42" => "homebrew/dupes",
"appledoc" => "homebrew/boneyard",
"appswitch" => "homebrew/binary",
+ "archivemount" => "homebrew/fuse",
"atari++" => "homebrew/x11",
"auctex" => "homebrew/tex",
"authexec" => "homebrew/boneyard",
+ "avfs" => "homebrew/fuse",
"aws-iam-tools" => "homebrew/boneyard",
"bbcp" => "homebrew/head-only",
"bcwipe" => "homebrew/boneyard",
+ "bindfs" => "homebrew/fuse",
"blackbox" => "homebrew/boneyard",
"bochs" => "homebrew/x11",
"boost149" => "homebrew/versions",
@@ -36,6 +40,7 @@
"ddd" => "homebrew/x11",
"denyhosts" => "homebrew/boneyard",
"dgtal" => "homebrew/science",
+ "djmount" => "homebrew/fuse",
"dmenu" => "homebrew/x11",
"dotwrp" => "homebrew/science",
"drizzle" => "homebrew/boneyard",
@@ -47,13 +52,20 @@
"dzen2" => "homebrew/x11",
"easy-tag" => "homebrew/x11",
"electric-fence" => "homebrew/boneyard",
+ "encfs" => "homebrew/fuse",
+ "ext2fuse" => "homebrew/fuse",
+ "ext4fuse" => "homebrew/fuse",
"fceux" => "homebrew/games",
"feh" => "homebrew/x11",
"figtoipe" => "homebrew/head-only",
"fox" => "homebrew/x11",
"freeglut" => "homebrew/x11",
"freerdp" => "homebrew/x11",
"fsv" => "homebrew/x11",
+ "fuse-zip" => "homebrew/fuse",
+ "fuse4x-kext" => "homebrew/fuse",
+ "fuse4x" => "homebrew/fuse",
+ "gcsfuse" => "homebrew/fuse",
"geany" => "homebrew/x11",
"geda-gaf" => "homebrew/x11",
"geeqie" => "homebrew/x11",
@@ -62,6 +74,7 @@
"ggobi" => "homebrew/x11",
"giblib" => "homebrew/x11",
"git-flow-clone" => "homebrew/boneyard",
+ "gitfs" => "homebrew/fuse",
"git-latexdiff" => "homebrew/tex",
"gkrellm" => "homebrew/x11",
"glade" => "homebrew/x11",
@@ -88,6 +101,7 @@
"hllib" => "homebrew/boneyard",
"hugs98" => "homebrew/boneyard",
"hwloc" => "homebrew/science",
+ "ifuse" => "homebrew/fuse",
"imake" => "homebrew/x11",
"inkscape" => "homebrew/x11",
"ipopt" => "homebrew/science",
@@ -118,6 +132,7 @@
"mlkit" => "homebrew/boneyard",
"mlton" => "homebrew/boneyard",
"morse" => "homebrew/x11",
+ "mp3fs" => "homebrew/fuse",
"mpio" => "homebrew/boneyard",
"mscgen" => "homebrew/x11",
"msgpack-rpc" => "homebrew/boneyard",
@@ -126,10 +141,12 @@
"mysqlreport" => "homebrew/boneyard",
"newick-utils" => "homebrew/science",
"nlopt" => "homebrew/science",
+ "ntfs-3g" => "homebrew/fuse",
"octave" => "homebrew/science",
"opencv" => "homebrew/science",
"openfst" => "homebrew/science",
"opengrm-ngram" => "homebrew/science",
+ "ori" => "homebrew/fuse",
"pan" => "homebrew/boneyard",
"pari" => "homebrew/x11",
"pathfinder" => "homebrew/boneyard",
@@ -150,16 +167,22 @@
"qfits" => "homebrew/boneyard",
"qrupdate" => "homebrew/science",
"rdesktop" => "homebrew/x11",
+ "rofs-filtered" => "homebrew/fuse",
"rxvt-unicode" => "homebrew/x11",
+ "s3-backer" => "homebrew/fuse",
+ "s3fs" => "homebrew/fuse",
"salt" => "homebrew/science",
"scantailor" => "homebrew/x11",
"shark" => "homebrew/boneyard",
"shell.fm" => "homebrew/boneyard",
+ "simple-mtpfs" => "homebrew/fuse",
"sitecopy" => "homebrew/boneyard",
"slicot" => "homebrew/science",
"smartsim" => "homebrew/x11",
"solfege" => "homebrew/boneyard",
"sptk" => "homebrew/x11",
+ "sshfs" => "homebrew/fuse",
+ "stormfs" => "homebrew/fuse",
"sundials" => "homebrew/science",
"swi-prolog" => "homebrew/x11",
"sxiv" => "homebrew/x11",
@@ -176,11 +199,13 @@
"timbl" => "homebrew/science",
"tmap" => "homebrew/boneyard",
"transmission-remote-gtk" => "homebrew/x11",
+ "tup" => "homebrew/fuse",
"ume" => "homebrew/games",
"upnp-router-control" => "homebrew/x11",
"urweb" => "homebrew/boneyard",
"ushare" => "homebrew/boneyard",
"viewglob" => "homebrew/x11",
+ "wdfs" => "homebrew/fuse",
"wkhtmltopdf" => "homebrew/boneyard",
"wmctrl" => "homebrew/x11",
"wopr" => "homebrew/science",
@@ -191,6 +216,7 @@
"xdotool" => "homebrew/x11",
"xdu" => "homebrew/x11",
"xournal" => "homebrew/x11",
+ "xmount" => "homebrew/fuse",
"xpa" => "homebrew/x11",
"xpdf" => "homebrew/x11",
"xplot" => "homebrew/x11", | false |
Other | Homebrew | brew | 9928754c2234ee146f49e9a3dac3af017490e7dd.json | cookbook: add an explicit version if necessary
Closes Homebrew/homebrew#40247.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr> | share/doc/homebrew/Formula-Cookbook.md | @@ -342,6 +342,8 @@ Add aliases by creating symlinks in `Library/Aliases`.
You can run `brew audit` to test formulae for adherence to Homebrew house style. This includes warnings for trailing whitespace, preferred URLs for certain source hosts, and a lot of other style issues. Fixing these warnings before committing will make the process a lot smoother for us.
+Use `brew info` and check if the version guessed by Homebrew from the URL is
+correct. Add an explicit `version` if not.
## Commit
| false |
Other | Homebrew | brew | d8f9bfa730370c22665bd6b0b649daa87b856c00.json | test-bot: remove obsolete tap --repair | Library/Homebrew/cmd/test-bot.rb | @@ -710,12 +710,8 @@ def test_bot
# Tap repository if required, this is done before everything else
# because Formula parsing and/or git commit hash lookup depends on it.
- if tap
- if !repository.directory?
- safe_system "brew", "tap", tap
- else
- quiet_system "brew", "tap", "--repair"
- end
+ if tap && !repository.directory?
+ safe_system "brew", "tap", tap
end
if ARGV.include? '--ci-upload' | false |
Other | Homebrew | brew | 10bc99ff7b9d80342a99feb6d5e015c3c2de8230.json | SoftwareSpec: add full_name field | Library/Homebrew/software_spec.rb | @@ -18,7 +18,7 @@ class SoftwareSpec
"32-bit" => Option.new("32-bit", "Build 32-bit only"),
}
- attr_reader :name, :owner
+ attr_reader :name, :full_name, :owner
attr_reader :build, :resources, :patches, :options
attr_reader :deprecated_flags, :deprecated_options
attr_reader :dependency_collector
@@ -46,6 +46,7 @@ def initialize
def owner= owner
@name = owner.name
+ @full_name = owner.full_name
@owner = owner
@resource.owner = self
resources.each_value do |r| | false |
Other | Homebrew | brew | 9a90dbd275c78be3db9d88cb0fcb0f6885219d88.json | Formula: add full_name variable | Library/Homebrew/formula.rb | @@ -28,6 +28,11 @@ class Formula
# e.g. `this-formula`
attr_reader :name
+ # The fully-qualified name of this {Formula}.
+ # For core formula it's the same as {#name}.
+ # e.g. `homebrew/tap-name/this-formula`
+ attr_reader :full_name
+
# The full path to this {Formula}.
# e.g. `/usr/local/Library/Formula/this-formula.rb`
attr_reader :path
@@ -88,6 +93,12 @@ def initialize(name, path, spec)
@path = path
@revision = self.class.revision || 0
+ if path.to_s =~ HOMEBREW_TAP_PATH_REGEX
+ @full_name = "#{$1}/#{$2.gsub(/^homebrew-/, "")}/#{name}"
+ else
+ @full_name = name
+ end
+
set_spec :stable
set_spec :devel
set_spec :head
@@ -714,6 +725,7 @@ def recursive_requirements(&block)
def to_hash
hsh = {
"name" => name,
+ "full_name" => full_name,
"desc" => desc,
"homepage" => homepage,
"versions" => { | false |
Other | Homebrew | brew | 26d1683039508647de1adbe675cafb507216bcf1.json | audit: enforce gnome urls
Closes Homebrew/homebrew#40172.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/audit.rb | @@ -892,6 +892,8 @@ def audit_urls
problem "Please use https:// for #{p}"
when %r[^http://search\.mcpan\.org/CPAN/(.*)]i
problem "#{p} should be `https://cpan.metacpan.org/#{$1}`"
+ when %r[^(http|ftp)://ftp\.gnome\.org/pub/gnome/(.*)]i
+ problem "#{p} should be `https://download.gnome.org/#{$2}`"
end
end
| false |
Other | Homebrew | brew | 0fc906b03d9d385a77512acd895520092e244c93.json | Remove another unused default argument | Library/Homebrew/formula_versions.rb | @@ -48,7 +48,7 @@ def formula_at_revision(rev)
end
end
- def bottle_version_map(branch="HEAD")
+ def bottle_version_map(branch)
map = Hash.new { |h, k| h[k] = [] }
rev_list(branch) do |rev|
formula_at_revision(rev) do |f| | false |
Other | Homebrew | brew | f80748096df45534e6f38cdfb2ee83e1051cb56b.json | Remove unused default argument | Library/Homebrew/formula_versions.rb | @@ -15,7 +15,7 @@ def initialize(formula)
@entry_name = formula.path.relative_path_from(repository).to_s
end
- def rev_list(branch="HEAD")
+ def rev_list(branch)
repository.cd do
Utils.popen_read("git", "rev-list", "--abbrev-commit", "--remove-empty", branch, "--", entry_name) do |io|
yield io.readline.chomp until io.eof? | false |
Other | Homebrew | brew | bc3bf75c6c6324476357198d9a7ddaa02bb6ecc4.json | New-Maintainer-Checklist: add new documentation. | share/doc/homebrew/New-Maintainer-Checklist.md | @@ -0,0 +1,49 @@
+# New Maintainer Checklist
+**This is a guide used by existing maintainers to invite new maintainers. You might find it interesting but there's nothing here users should have to know.**
+
+So, there's someone who has been making consistently high-quality contributions to Homebrew for a long time and shown themselves able to make slightly more advanced contributions than just e.g. formula updates? Let's invite them to be a maintainer!
+
+First, send them the invitation email:
+
+```
+The Homebrew team and I really appreciate your help on issues, pull requests and
+your contributions around making our testing better.
+
+We would like to invite you to have commit access. There are no obligations,
+but we'd appreciate your continuing help in keeping on top of contributions.
+
+A few requests:
+
+- please make pull requests on any changes to core (i.e. non-formula) code or
+ any non-trivial (e.g. not a test or audit improvement or version bump)
+ changes to formulae code and don't merge them unless you get at least one +1
+- use `brew pull` and let it auto-close issues wherever possible (it may take
+ ~5m). When this isn't possible always use `git pull --rebase`, `git rebase`
+ and `git cherry-pick` rather than `git merge` and never use GitHub's "Merge
+ pull request" button. If in doubt, check with GitX that you've not
+ accidentally added merge commits
+- still create your branches on your fork rather than in the main repository
+- if still in doubt please ask for help and we'll help you out - these are
+ probably worth a read:
+ - https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Brew-Test-Bot-For-Core-Contributors.md
+ - https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Maintainer-Guidelines.md
+ - possibly everything else in the documentation
+
+How does that sound?
+
+Thanks for all your work so far!
+```
+
+If they accept, follow a few steps to get them set up:
+
+- [x] Invite them to the [**@Homebrew/core** team](https://github.com/orgs/Homebrew/teams/core) to give them write access to all repositories (but not administrator access yet)
+- [x] Ask them to sign up for a [Bintray](https://bintray.com) account and invite them to [Bintray's Homebrew organisation](https://bintray.com/homebrew/organization/edit/members) as a member (but not administrator access yet) so they can publish new bottles
+- [x] Add them to the [Jenkins' GitHub Authorization Settings admin user names](http://bot.brew.sh/configureSecurity/) so they can adjust settings and restart jobs
+- [x] Add them to the [Jenkins' GitHub Pull Request Builder admin list](http://bot.brew.sh/configure) to enable `@BrewTestBot test this please` for them
+- [x] Invite them to the [`homebrew-dev` private maintainers mailing list](https://groups.google.com/forum/#!managemembers/homebrew-dev/invite)
+- [x] Add them to [Homebrew's README](https://github.com/Homebrew/homebrew/edit/master/README.md)
+- [x] Encourage them to enable [GitHub's Two Factor Authentication](https://help.github.com/articles/about-two-factor-authentication/)
+
+After a few weeks/months with no problems consider making them administrators on the [**@Homebrew/owners**](https://github.com/orgs/Homebrew/teams/owners) and [Bintray](https://bintray.com/homebrew/organization/edit/members) teams.
+
+Now sit back, relax and let the new maintainers handle more of our contributions. | false |
Other | Homebrew | brew | aac0e4a87873e998699bf68967127ec3f3632fd1.json | Fix variable reference | Library/Homebrew/cmd/test-bot.rb | @@ -525,7 +525,7 @@ def formula formula_name
if formula.devel && formula.stable? && !ARGV.include?('--HEAD') \
&& satisfied_requirements?(formula, :devel)
test "brew", "fetch", "--retry", "--devel", *formula_fetch_options
- run_as_not_developer { test "brew", "install", "--devel", "--verbose", dependent.name }
+ run_as_not_developer { test "brew", "install", "--devel", "--verbose", canonical_formula_name }
devel_install_passed = steps.last.passed?
test "brew", "audit", "--devel", *audit_args
if devel_install_passed | false |
Other | Homebrew | brew | efd52da101cbed109d8045c02fcf0cdc4ffa7989.json | Remove dead code | Library/Homebrew/cmd/update.rb | @@ -238,18 +238,6 @@ def dump
dump_formula_report :D, "Deleted Formulae"
end
- def tapped_formula_for key
- fetch(key, []).select { |path| HOMEBREW_TAP_PATH_REGEX === path.to_s }
- end
-
- def new_tapped_formula
- tapped_formula_for :A
- end
-
- def removed_tapped_formula
- tapped_formula_for :D
- end
-
def select_formula key
fetch(key, []).map do |path|
case path.to_s | true |
Other | Homebrew | brew | efd52da101cbed109d8045c02fcf0cdc4ffa7989.json | Remove dead code | Library/Homebrew/test/test_updater.rb | @@ -126,11 +126,5 @@ def test_update_homebrew_with_tap_formulae_changes
assert_equal %w{foo/bar/lua}, @report.select_formula(:A)
assert_equal %w{foo/bar/git}, @report.select_formula(:M)
assert_empty @report.select_formula(:D)
-
- assert_empty @report.removed_tapped_formula
- assert_equal [repo.join("Formula", "lua.rb")],
- @report.new_tapped_formula
- assert_equal [repo.join("Formula", "git.rb")],
- @report.tapped_formula_for(:M)
end
end | true |
Other | Homebrew | brew | f55257306e609859cba568528abea45d78f1844c.json | tab: add method to set tap. | Library/Homebrew/tab.rb | @@ -170,6 +170,10 @@ def tap
source["tap"]
end
+ def tap=(tap)
+ source["tap"] = tap
+ end
+
def to_json
attributes = {
"used_options" => used_options.as_flags, | false |
Other | Homebrew | brew | c14794baa8f17dc7d933e5ef9559302707b7a801.json | keg: add rack method | Library/Homebrew/keg.rb | @@ -112,6 +112,10 @@ def to_s
path.to_s
end
+ def rack
+ path.parent
+ end
+
if Pathname.method_defined?(:to_path)
alias_method :to_path, :to_s
else | false |
Other | Homebrew | brew | 60383be03292c6996f16b24b46699741382e8db4.json | ARGV: add resolved_formulae method | Library/Homebrew/extend/ARGV.rb | @@ -16,6 +16,17 @@ def formulae
@formulae ||= (downcased_unique_named - casks).map { |name| Formulary.factory(name, spec) }
end
+ def resolved_formulae
+ require "formula"
+ @resolved_formulae ||= (downcased_unique_named - casks).map do |name|
+ if name.include?("/")
+ Formulary.factory(name, spec)
+ else
+ Formulary.from_rack(HOMEBREW_CELLAR/name, spec)
+ end
+ end
+ end
+
def casks
@casks ||= downcased_unique_named.grep HOMEBREW_CASK_TAP_FORMULA_REGEX
end | false |
Other | Homebrew | brew | 171c3dd2d9cba6b7da8f1a97667a437ea1776c4b.json | tap/untap/update/prune: remove obsolete method, add migrate_taps | Library/Homebrew/cmd/prune.rb | @@ -36,7 +36,7 @@ def prune
end
end
- repair_taps(false) unless ARGV.dry_run?
+ migrate_taps :force => true unless ARGV.dry_run?
if ObserverPathnameExtension.total.zero?
puts "Nothing pruned" if ARGV.verbose? | true |
Other | Homebrew | brew | 171c3dd2d9cba6b7da8f1a97667a437ea1776c4b.json | tap/untap/update/prune: remove obsolete method, add migrate_taps | Library/Homebrew/cmd/tap.rb | @@ -5,7 +5,7 @@ def tap
puts "#{user.basename}/#{repo.basename.sub("homebrew-", "")}" if (repo/".git").directory?
end
elsif ARGV.first == "--repair"
- repair_taps
+ migrate_taps :force => true
else
opoo "Already tapped!" unless install_tap(*tap_args)
end
@@ -26,7 +26,6 @@ def install_tap user, repo
files = []
tapd.find_formula { |file| files << file }
- link_tap_formula(files)
puts "Tapped #{files.length} formula#{plural(files.length, 'e')} (#{tapd.abv})"
if private_tap?(repouser, repo) then puts <<-EOS.undent
@@ -42,59 +41,12 @@ def install_tap user, repo
true
end
- def link_tap_formula(paths, warn_about_conflicts=true)
- ignores = (HOMEBREW_LIBRARY/"Formula/.gitignore").read.split rescue []
- tapped = 0
-
- paths.each do |path|
- to = HOMEBREW_LIBRARY.join("Formula", path.basename)
-
- # Unexpected, but possible, lets proceed as if nothing happened
- to.delete if to.symlink? && to.resolved_path == path
-
- begin
- to.make_relative_symlink(path)
- rescue SystemCallError
- to = to.resolved_path if to.symlink?
- opoo <<-EOS.undent if warn_about_conflicts
- Could not create link for #{Tty.white}#{tap_ref(path)}#{Tty.reset}, as it
- conflicts with #{Tty.white}#{tap_ref(to)}#{Tty.reset}. You will need to use the
- fully-qualified name when referring this formula, e.g.
- brew install #{tap_ref(path)}
- EOS
- else
- ignores << path.basename.to_s
- tapped += 1
- end
- end
-
- HOMEBREW_LIBRARY.join("Formula/.gitignore").atomic_write(ignores.uniq.join("\n"))
-
- tapped
- end
-
- def repair_taps(warn_about_conflicts=true)
- count = 0
- # prune dead symlinks in Formula
- Dir.glob("#{HOMEBREW_LIBRARY}/Formula/*.rb") do |fn|
- if not File.exist? fn
- File.delete fn
- count += 1
- end
- end
- puts "Pruned #{count} dead formula#{plural(count, 'e')}"
-
- return unless HOMEBREW_REPOSITORY.join("Library/Taps").exist?
-
- count = 0
- # check symlinks are all set in each tap
- each_tap do |user, repo|
- files = []
- repo.find_formula { |file| files << file }
- count += link_tap_formula(files, warn_about_conflicts)
- end
-
- puts "Tapped #{count} formula#{plural(count, 'e')}"
+ # Migrate tapped formulae from symlink-based to directory-based structure.
+ def migrate_taps(options={})
+ ignore = HOMEBREW_LIBRARY/"Formula/.gitignore"
+ return unless ignore.exist? || options.fetch(:force, false)
+ (HOMEBREW_LIBRARY/"Formula").children.select(&:symlink?).each(&:unlink)
+ ignore.unlink if ignore.exist?
end
private
@@ -124,13 +76,4 @@ def private_tap?(user, repo)
rescue GitHub::Error
false
end
-
- def tap_ref(path)
- case path.to_s
- when %r{^#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Formula}o
- "Homebrew/homebrew/#{path.basename(".rb")}"
- when HOMEBREW_TAP_PATH_REGEX
- "#{$1}/#{$2.sub("homebrew-", "")}/#{path.basename(".rb")}"
- end
- end
end | true |
Other | Homebrew | brew | 171c3dd2d9cba6b7da8f1a97667a437ea1776c4b.json | tap/untap/update/prune: remove obsolete method, add migrate_taps | Library/Homebrew/cmd/untap.rb | @@ -21,29 +21,9 @@ def untap
files = []
tapd.find_formula { |file| files << file }
- unlink_tap_formula(files)
tapd.rmtree
tapd.dirname.rmdir_if_possible
puts "Untapped #{files.length} formula#{plural(files.length, 'e')}"
end
end
-
- def unlink_tap_formula paths
- untapped = 0
- gitignores = (HOMEBREW_LIBRARY/"Formula/.gitignore").read.split rescue []
-
- paths.each do |path|
- link = HOMEBREW_LIBRARY.join("Formula", path.basename)
-
- if link.symlink? && (!link.exist? || link.resolved_path == path)
- link.delete
- gitignores.delete(path.basename.to_s)
- untapped += 1
- end
- end
-
- HOMEBREW_REPOSITORY.join("Library/Formula/.gitignore").atomic_write(gitignores * "\n")
-
- untapped
- end
end | true |
Other | Homebrew | brew | 171c3dd2d9cba6b7da8f1a97667a437ea1776c4b.json | tap/untap/update/prune: remove obsolete method, add migrate_taps | Library/Homebrew/cmd/update.rb | @@ -1,5 +1,4 @@
require 'cmd/tap'
-require 'cmd/untap'
module Homebrew
def update
@@ -16,20 +15,12 @@ def update
cd HOMEBREW_REPOSITORY
git_init_if_necessary
- tapped_formulae = []
- HOMEBREW_LIBRARY.join("Formula").children.each do |path|
- next unless path.symlink?
- tapped_formulae << path.resolved_path
- end
- unlink_tap_formula(tapped_formulae)
+ # migrate to new directories based tap structure
+ migrate_taps
report = Report.new
master_updater = Updater.new(HOMEBREW_REPOSITORY)
- begin
- master_updater.pull!
- ensure
- link_tap_formula(tapped_formulae)
- end
+ master_updater.pull!
report.update(master_updater.report)
# rename Taps directories
@@ -52,10 +43,6 @@ def update
end
end
- # we unlink first in case the formula has moved to another tap
- Homebrew.unlink_tap_formula(report.removed_tapped_formula)
- Homebrew.link_tap_formula(report.new_tapped_formula)
-
# automatically tap any migrated formulae's new tap
report.select_formula(:D).each do |f|
next unless (HOMEBREW_CELLAR/f).exist?
@@ -95,7 +82,6 @@ def git_init_if_necessary
end
def rename_taps_dir_if_necessary
- need_repair_taps = false
Dir.glob("#{HOMEBREW_LIBRARY}/Taps/*/") do |tapd|
begin
tapd_basename = File.basename(tapd)
@@ -107,7 +93,6 @@ def rename_taps_dir_if_necessary
FileUtils.mkdir_p("#{HOMEBREW_LIBRARY}/Taps/#{user.downcase}")
FileUtils.mv(tapd, "#{HOMEBREW_LIBRARY}/Taps/#{user.downcase}/homebrew-#{repo.downcase}")
- need_repair_taps = true
if tapd_basename.count("-") >= 2
opoo "Homebrew changed the structure of Taps like <someuser>/<sometap>. "\
@@ -123,8 +108,6 @@ def rename_taps_dir_if_necessary
next # next tap directory
end
end
-
- repair_taps if need_repair_taps
end
def load_tap_migrations | true |
Other | Homebrew | brew | dd1a9e11ab5f366f86b5b9c8686cc0e89e5a93d1.json | README: add new maintainers. | README.md | @@ -20,7 +20,7 @@ Second, read the [Troubleshooting Checklist](https://github.com/Homebrew/homebre
Please report security issues to security@brew.sh.
## Who Are You?
-Homebrew's current maintainers are [Misty De Meo](https://github.com/mistydemeo), [Adam Vandenberg](https://github.com/adamv), [Jack Nagel](https://github.com/jacknagel), [Xu Cheng](https://github.com/xu-cheng), [Mike McQuaid](https://github.com/mikemcquaid), [Brett Koonce](https://github.com/asparagui) and [Tim Smith](https://github.com/tdsmith).
+Homebrew's current maintainers are [Misty De Meo](https://github.com/mistydemeo), [Adam Vandenberg](https://github.com/adamv), [Jack Nagel](https://github.com/jacknagel), [Xu Cheng](https://github.com/xu-cheng), [Mike McQuaid](https://github.com/mikemcquaid), [Baptiste Fontaine](https://github.com/bfontaine), [Brett Koonce](https://github.com/asparagui), [Dominyk Tiller](https://github.com/DomT4) and [Tim Smith](https://github.com/tdsmith).
Homebrew was originally created by [Max Howell](https://github.com/mxcl).
| false |
Other | Homebrew | brew | cd63b740a50d67378b0f25f71c73aa11e27c2754.json | Formula-Cookbook: add description field. | share/doc/homebrew/Formula-Cookbook.md | @@ -119,8 +119,7 @@ end
**We don’t accept formulae without homepages!**
-Homebrew doesn’t have a description field because the homepage is always up to date, and Homebrew is not. That’s way less maintenance for us. Try `brew home qt`.
-
+Homebrew now has a description field (`desc`). Try and summarize this from the homepage.
## Check the build system
| false |
Other | Homebrew | brew | 86365470e6a2a02c1a54f75fae818b779375b079.json | Add a desc field to Formula | Library/Homebrew/formula.rb | @@ -163,6 +163,12 @@ def bottle
Bottle.new(self, bottle_specification) if bottled?
end
+ # The description of the software.
+ # @see .desc
+ def desc
+ self.class.desc
+ end
+
# The homepage for the software.
# @see .homepage
def homepage
@@ -685,6 +691,7 @@ def recursive_requirements(&block)
def to_hash
hsh = {
"name" => name,
+ "desc" => desc,
"homepage" => homepage,
"versions" => {
"stable" => (stable.version.to_s if stable),
@@ -921,6 +928,12 @@ class << self
# @private
attr_reader :keg_only_reason
+ # @!attribute [w]
+ # A one-line description of the software. Used by users to get an overview
+ # of the software and Homebrew maintainers.
+ # Shows when running `brew info`.
+ attr_rw :desc
+
# @!attribute [w]
# The homepage for the software. Used by users to get more information
# about the software and Homebrew maintainers as a point of contact for | false |
Other | Homebrew | brew | 3649b31765d94cd0e0f0cdfc1acae60951702b9b.json | ENV: Add gcc-5 to compilers support C++11
Closes Homebrew/homebrew#39758.
Signed-off-by: Jack Nagel <jacknagel@gmail.com> | Library/Homebrew/extend/ENV/std.rb | @@ -275,7 +275,7 @@ def cxx11
if compiler == :clang
append 'CXX', '-std=c++11'
append 'CXX', '-stdlib=libc++'
- elsif compiler =~ /gcc-4\.(8|9)/
+ elsif compiler =~ /gcc-(4\.(8|9)|5)/
append 'CXX', '-std=c++11'
else
raise "The selected compiler doesn't support C++11: #{compiler}" | true |
Other | Homebrew | brew | 3649b31765d94cd0e0f0cdfc1acae60951702b9b.json | ENV: Add gcc-5 to compilers support C++11
Closes Homebrew/homebrew#39758.
Signed-off-by: Jack Nagel <jacknagel@gmail.com> | Library/Homebrew/extend/ENV/super.rb | @@ -293,7 +293,7 @@ def cxx11
when "clang"
append 'HOMEBREW_CCCFG', "x", ''
append 'HOMEBREW_CCCFG', "g", ''
- when /gcc-4\.(8|9)/
+ when /gcc-(4\.(8|9)|5)/
append 'HOMEBREW_CCCFG', "x", ''
else
raise "The selected compiler doesn't support C++11: #{homebrew_cc}" | true |
Other | Homebrew | brew | 14981e6265f27a1439778bb894be283a9e741066.json | How to Open A PR: clarify one commit per formula. | share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md | @@ -29,7 +29,7 @@ To make changes based on feedback:
1. Checkout your branch again with `git checkout YOUR_BRANCH_NAME`
2. Make any requested changes and commit them with `git add` and `git commit`
-3. Squash new commits into one change per formula with `git rebase --interactive origin/master`
+3. Squash new commits into one commit per formula with `git rebase --interactive origin/master`
4. Push to the fork's remote branch and the pull request with `git push --force`
Once all feedback has been addressed and if it's a change we want to include (we include most changes) then we'll add your commit to Homebrew. Note it will not show up as "Merged" because of the way we include contributions. | false |
Other | Homebrew | brew | a0540058833dcf89d4bba3734828393d8ac4164d.json | audit: fix two message typos
Originally submitted as part of https://github.com/Homebrew/homebrew/pull/38824/files,
later reverted due another hunk.
Closes Homebrew/homebrew#39753.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/audit.rb | @@ -282,9 +282,9 @@ def audit_homepage
# "Software" is redirected to https://wiki.freedesktop.org/www/Software/project_name
if homepage =~ %r[^http://((?:www|nice|libopenraw|liboil|telepathy|xorg)\.)?freedesktop\.org/(?:wiki/)?]
if homepage =~ /Software/
- problem "The url should be styled `https://wiki.freedesktop.org/www/Software/project_name`, not #{homepage})."
+ problem "The url should be styled `https://wiki.freedesktop.org/www/Software/project_name`, not #{homepage}."
else
- problem "The url should be styled `https://wiki.freedesktop.org/project_name`, not #{homepage})."
+ problem "The url should be styled `https://wiki.freedesktop.org/project_name`, not #{homepage}."
end
end
| false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.