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 | 68f27922bca5888d1003dcd736621657316d8a9e.json | add homebrew to Tex requirement
Closes Homebrew/homebrew#29834.
Signed-off-by: Adam Vandenberg <flangy@gmail.com> | Library/Homebrew/requirements.rb | @@ -55,7 +55,7 @@ def message;
end
<<-EOS.undent
- A LaTeX distribution is required to install.
+ A LaTeX distribution is required for Homebrew to install this formula.
You can install MacTeX distribution from:
http://www.tug.org/mactex/ | false |
Other | Homebrew | brew | 6bbe82062ec862d3edc22cade7c401688ae68837.json | Add yosemite to mac versions
Closes Homebrew/homebrew#29823.
Signed-off-by: Jack Nagel <jacknagel@gmail.com> | Library/Homebrew/os/mac/version.rb | @@ -4,6 +4,7 @@ module OS
module Mac
class Version < ::Version
SYMBOLS = {
+ :yosemite => '10.10',
:mavericks => '10.9',
:mountain_lion => '10.8',
:lion => '10.7', | false |
Other | Homebrew | brew | 3ccca7720f869dc278ff11a62297b6551b6e84d4.json | Rewrite xcrun wrapper in shell | Library/ENV/4.3/xcrun | @@ -1,50 +1,57 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
-
+#!/bin/sh
# Historically, xcrun has had various bugs, and in some cases it didn't
# work at all (e.g. CLT-only in the Xcode 4.3 era). This script emulates
# it and attempts to avoid these issues.
# Some build tools set... | false |
Other | Homebrew | brew | 6e616b29c5c47d49e94f2fe2345564cf381b0e0f.json | Use a || b | Library/Homebrew/extend/ENV/shared.rb | @@ -94,7 +94,7 @@ def fflags; self['FFLAGS']; end
def fcflags; self['FCFLAGS']; end
def compiler
- @compiler ||= if (cc = [ARGV.cc, homebrew_cc].compact.first)
+ @compiler ||= if (cc = ARGV.cc || homebrew_cc)
COMPILER_SYMBOL_MAP.fetch(cc) do |other|
case other
when G... | false |
Other | Homebrew | brew | bd682d551989e05e492280b400274b942824b3ba.json | Treat HOMEBREW_CC the same as --cc
Closes Homebrew/homebrew#29762.
Signed-off-by: Jack Nagel <jacknagel@gmail.com> | Library/Homebrew/extend/ENV/shared.rb | @@ -94,7 +94,7 @@ def fflags; self['FFLAGS']; end
def fcflags; self['FCFLAGS']; end
def compiler
- @compiler ||= if (cc = ARGV.cc)
+ @compiler ||= if (cc = [ARGV.cc, homebrew_cc].compact.first)
COMPILER_SYMBOL_MAP.fetch(cc) do |other|
case other
when GNU_GCC_REGEXP
@... | false |
Other | Homebrew | brew | 0133afe6f8565ae84ab6267eb8e773abaad827cd.json | Remove unnecessary use of Dir[] | Library/Homebrew/download_strategy.rb | @@ -754,7 +754,7 @@ def stage
# FIXME: The export command doesn't work on checkouts
# See https://bugs.launchpad.net/bzr/+bug/897511
FileUtils.cp_r Dir[@clone+"{.}"], Dir.pwd
- FileUtils.rm_r Dir[Dir.pwd+"/.bzr"]
+ FileUtils.rm_r ".bzr"
end
end
| false |
Other | Homebrew | brew | a023f10310bfd11379202de87c28a7594fdfd363.json | Use Pathname.glob when we want pathname objects | Library/Homebrew/extend/pathname.rb | @@ -359,8 +359,7 @@ def write_env_script target, env
# Writes a wrapper env script and moves all files to the dst
def env_script_all_files dst, env
dst.mkpath
- Dir["#{self}/*"].each do |file|
- file = Pathname.new(file)
+ Pathname.glob("#{self}/*") do |file|
dst.install_p file
new_f... | true |
Other | Homebrew | brew | a023f10310bfd11379202de87c28a7594fdfd363.json | Use Pathname.glob when we want pathname objects | Library/Homebrew/formula_installer.rb | @@ -649,8 +649,7 @@ def pour
downloader.stage
end
- Dir["#{f.bottle_prefix}/{etc,var}/**/*"].each do |file|
- path = Pathname.new(file)
+ Pathname.glob("#{f.bottle_prefix}/{etc,var}/**/*") do |path|
path.extend(InstallRenamed)
path.cp_path_sub(f.bottle_prefix, HOMEBREW_PREFIX)
... | true |
Other | Homebrew | brew | bf365fc23b89e924e1bfbbb65befdf2a72774819.json | Prefer Dir.glob when iterating over the result | Library/Homebrew/cmd/tap.rb | @@ -71,7 +71,7 @@ def link_tap_formula paths
def repair_taps
count = 0
# prune dead symlinks in Formula
- Dir["#{HOMEBREW_LIBRARY}/Formula/*.rb"].each do |fn|
+ Dir.glob("#{HOMEBREW_LIBRARY}/Formula/*.rb") do |fn|
if not File.exist? fn
File.delete fn
count += 1 | true |
Other | Homebrew | brew | bf365fc23b89e924e1bfbbb65befdf2a72774819.json | Prefer Dir.glob when iterating over the result | Library/Homebrew/cmd/update.rb | @@ -96,7 +96,7 @@ def git_init_if_necessary
def rename_taps_dir_if_necessary
need_repair_taps = false
- Dir["#{HOMEBREW_LIBRARY}/Taps/*/"].each do |tapd|
+ Dir.glob("#{HOMEBREW_LIBRARY}/Taps/*/") do |tapd|
begin
tapd_basename = File.basename(tapd)
| true |
Other | Homebrew | brew | 4c6defbcf6768094a4e73fbeb6671b9915611617.json | Remove build attribute from Xcode dep | Library/Homebrew/requirements.rb | @@ -8,7 +8,6 @@
class XcodeDependency < Requirement
fatal true
- build true
satisfy(:build_env => false) { MacOS::Xcode.installed? }
| false |
Other | Homebrew | brew | 355361fa3f6a4c18fe582a45148cc9dcd5bc50b9.json | Remove build flag from ant dep | Library/Homebrew/dependency_collector.rb | @@ -143,7 +143,6 @@ def autotools_dep(spec, tags)
def ant_dep(spec, tags)
if MacOS.version >= :mavericks
- tags << :build
Dependency.new(spec.to_s, tags)
end
end | false |
Other | Homebrew | brew | c6c7623591956491c20ae57342f322979aaf87cb.json | Prefer Dir[] to Dir.glob when not passing a block | Library/Homebrew/keg.rb | @@ -153,15 +153,15 @@ def completion_installed? shell
end
def plist_installed?
- not Dir.glob("#{self}/*.plist").empty?
+ Dir["#{self}/*.plist"].any?
end
def python_site_packages_installed?
(self/'lib/python2.7/site-packages').directory?
end
def app_installed?
- not Dir.glob("#{sel... | false |
Other | Homebrew | brew | 375c073cec0ce0c18e11fa039e2cbbd4baaa9751.json | Remove unused attribute | Library/Homebrew/exceptions.rb | @@ -154,12 +154,11 @@ def message
end
class BuildError < Homebrew::InstallationError
- attr_reader :exit_status, :command, :env
+ attr_reader :command, :env
- def initialize formula, cmd, args, es
+ def initialize formula, cmd, args
@command = cmd
@env = ENV.to_hash
- @exit_status = es.exitstatus... | true |
Other | Homebrew | brew | 375c073cec0ce0c18e11fa039e2cbbd4baaa9751.json | Remove unused attribute | Library/Homebrew/formula.rb | @@ -573,7 +573,7 @@ def system cmd, *args
f.puts
require 'cmd/config'
Homebrew.write_build_config(f)
- raise BuildError.new(self, cmd, args, $?)
+ raise BuildError.new(self, cmd, args)
end
end
ensure | true |
Other | Homebrew | brew | 22e3e6c1e6050b00799384c35dc2c232da421748.json | versions: use path attribute instead of reconstructing it | Library/Homebrew/cmd/versions.rb | @@ -58,7 +58,7 @@ def pretty_relative_path
if Pathname.pwd == repository
entry_name
else
- repository/"#{entry_name}"
+ path
end
end
| false |
Other | Homebrew | brew | ecc01317b8756fa3bcf81b8d08830244a9454f6d.json | versions: drop redundant pathname creation | Library/Homebrew/cmd/versions.rb | @@ -101,7 +101,7 @@ def version_for_sha sha
def formula_for_sha sha, &block
mktemp do
- path = Pathname.new(Pathname.pwd+"#{name}.rb")
+ path = Pathname.pwd.join("#{name}.rb")
path.write text_from_sha(sha)
# Unload the class so Formula#version returns the correct value | false |
Other | Homebrew | brew | c90247aa44272b60df247c6c83512e2a6bd23395.json | Place X11 ahead of OpenGL when X11 is active
Fixes Homebrew/homebrew#29651. | Library/Homebrew/extend/ENV/super.rb | @@ -167,8 +167,8 @@ def determine_isystem_paths
paths << "#{HOMEBREW_PREFIX}/include"
paths << "#{effective_sysroot}/usr/include/libxml2" unless deps.include? "libxml2"
paths << "#{effective_sysroot}/usr/include/apache2" if MacOS::Xcode.without_clt?
- paths << "#{effective_sysroot}/System/Library/Fram... | false |
Other | Homebrew | brew | 33cdff99bad133f36935dce23f0889c71d70105b.json | Make some constant strings into actual constants
We only need one copy of each of these strings, not ~7500. | Library/Homebrew/cmd/bottle.rb | @@ -9,7 +9,7 @@
BOTTLE_ERB = <<-EOS
bottle do
- <% if root_url != BottleSpecification.new.root_url %>
+ <% if root_url != BottleSpecification::DEFAULT_ROOT_URL %>
root_url "<%= root_url %>"
<% end %>
<% if prefix.to_s != "/usr/local" %> | true |
Other | Homebrew | brew | 33cdff99bad133f36935dce23f0889c71d70105b.json | Make some constant strings into actual constants
We only need one copy of each of these strings, not ~7500. | Library/Homebrew/software_spec.rb | @@ -148,14 +148,18 @@ def compatible_cellar?
end
class BottleSpecification
+ DEFAULT_PREFIX = "/usr/local".freeze
+ DEFAULT_CELLAR = "/usr/local/Cellar".freeze
+ DEFAULT_ROOT_URL = "https://downloads.sf.net/project/machomebrew/Bottles".freeze
+
attr_rw :root_url, :prefix, :cellar, :revision
attr_reader :ch... | true |
Other | Homebrew | brew | 28fa5b0261b3efef222e8f92f5b3906cccfeb388.json | Remove some evals from formula DSL
The default arguments were removed from these methods long ago, so
nothing is standing in the way of using define_method here. | Library/Homebrew/formula.rb | @@ -633,12 +633,8 @@ def mirror val
stable.mirror(val)
end
- Checksum::TYPES.each do |cksum|
- class_eval <<-EOS, __FILE__, __LINE__ + 1
- def #{cksum}(val)
- stable.#{cksum}(val)
- end
- EOS
+ Checksum::TYPES.each do |type|
+ define_method(type) { |val| stable.... | true |
Other | Homebrew | brew | 28fa5b0261b3efef222e8f92f5b3906cccfeb388.json | Remove some evals from formula DSL
The default arguments were removed from these methods long ago, so
nothing is standing in the way of using define_method here. | Library/Homebrew/resource.rb | @@ -95,12 +95,8 @@ def verify_download_integrity fn
puts "For your reference the SHA1 is: #{fn.sha1}"
end
- Checksum::TYPES.each do |cksum|
- class_eval <<-EOS, __FILE__, __LINE__ + 1
- def #{cksum}(val)
- @checksum = Checksum.new(:#{cksum}, val)
- end
- EOS
+ Checksum::TYPES.each do ... | true |
Other | Homebrew | brew | 152490b7b00ddeac71eb5cb27d145797c981d55c.json | Fix overzealous regex | Library/Homebrew/bottle_version.rb | @@ -30,7 +30,7 @@ def self._parse spec
return m.captures.first unless m.nil?
# e.g. 20120731 from fontforge-20120731.mavericks.bottle.tar.gz
- m = /-(\d+)/.match(stem)
+ m = /-(\d{8})/.match(stem)
return m.captures.first unless m.nil?
super | false |
Other | Homebrew | brew | 8d44db6b40f649e292292d9e164b7aa769d635c7.json | pluralize formulae in tap/untap
Closes Homebrew/homebrew#28560. | Library/Homebrew/cmd/tap.rb | @@ -27,7 +27,7 @@ def install_tap user, repo
files = []
tapd.find_formula { |file| files << file }
link_tap_formula(files)
- puts "Tapped #{files.length} formula"
+ puts "Tapped #{files.length} formula#{plural(files.length, 'e')}"
if private_tap?(repouser, repo) then puts <<-EOS.undent
... | true |
Other | Homebrew | brew | 8d44db6b40f649e292292d9e164b7aa769d635c7.json | pluralize formulae in tap/untap
Closes Homebrew/homebrew#28560. | Library/Homebrew/cmd/untap.rb | @@ -22,7 +22,7 @@ def untap
unlink_tap_formula(files)
tapd.rmtree
tapd.dirname.rmdir_if_possible
- puts "Untapped #{files.length} formula"
+ puts "Untapped #{files.length} formula#{plural(files.length, 'e')}"
end
def unlink_tap_formula paths | true |
Other | Homebrew | brew | 8d44db6b40f649e292292d9e164b7aa769d635c7.json | pluralize formulae in tap/untap
Closes Homebrew/homebrew#28560. | Library/Homebrew/cmd/upgrade.rb | @@ -1,12 +1,6 @@
require 'cmd/install'
require 'cmd/outdated'
-class Fixnum
- def plural_s
- if self != 1 then "s" else "" end
- end
-end
-
module Homebrew extend self
def upgrade
Homebrew.perform_preinstall_checks
@@ -35,14 +29,14 @@ def upgrade
end
unless outdated.empty?
- oh1 "Upgr... | true |
Other | Homebrew | brew | 8d44db6b40f649e292292d9e164b7aa769d635c7.json | pluralize formulae in tap/untap
Closes Homebrew/homebrew#28560. | Library/Homebrew/utils.rb | @@ -78,6 +78,10 @@ def pretty_duration s
return "%.1f minutes" % (s/60)
end
+def plural n, s="s"
+ (n == 1) ? "" : s
+end
+
def interactive_shell f=nil
unless f.nil?
ENV['HOMEBREW_DEBUG_PREFIX'] = f.prefix | true |
Other | Homebrew | brew | 84251bd44fbdc722a36c41891ed2b15b3406afbe.json | Fix formula path usage in brew-gist-logs
Formula#path can no longer be a symlink. | Library/Contributions/cmd/brew-gist-logs.rb | @@ -86,7 +86,7 @@ def initialize response
end
def repo_name f
- dir = (f.path.symlink? ? f.path.realpath.dirname : HOMEBREW_REPOSITORY)
+ dir = f.path.dirname
url = dir.cd { `git config --get remote.origin.url` }
unless url =~ %r{github.com(?:/|:)([\w\d]+)/([\-\w\d]+)}
raise 'Unable to determine formul... | false |
Other | Homebrew | brew | 45f09cd9c32b4ee8da1fa1348fe98caea56a0b04.json | Move appledoc to boneyard
No Xcode 5.1 support.
Closes Homebrew/homebrew#29488. | Library/Homebrew/tap_migrations.rb | @@ -2,6 +2,7 @@
"agedu" => "homebrew/headonly",
"aimage" => "homebrew/boneyard",
"apple-gcc42" => "homebrew/versions",
+ "appledoc" => "homebrew/boneyard",
"appswitch" => "homebrew/binary",
"aws-iam-tools" => "homebrew/boneyard",
"blackbox" => "homebrew/boneyard", | false |
Other | Homebrew | brew | 8a08d101147a8ff3a60bf6b5e6ee24f0f84c7de6.json | brew-desc: Add a mention of brew-desc to README
Closes Homebrew/homebrew#29555.
Signed-off-by: Jack Nagel <jacknagel@gmail.com> | README.md | @@ -7,6 +7,8 @@ What Packages Are Available?
1. You can [browse the Formula directory on GitHub][formula].
2. Or type `brew search` for a list.
3. Or visit [braumeister.org][braumeister] to browse packages online.
+4. Or visit [`brew desc`][brew-desc] to browse and search packages from the
+ command line.
More ... | false |
Other | Homebrew | brew | 840a5c74185ee44546008bd585c3e5edbfa9528c.json | fix HTTP 422 when gist-logs sends an empty file
Closes Homebrew/homebrew#29476.
Signed-off-by: Jack Nagel <jacknagel@gmail.com> | Library/Contributions/cmd/brew-gist-logs.rb | @@ -30,7 +30,7 @@ def load_logs name
logs = {}
dir = (HOMEBREW_LOGS/name)
dir.children.sort.each do |file|
- logs[file.basename.to_s] = {:content => file.read}
+ logs[file.basename.to_s] = {:content => (file.size == 0 ? "empty log" : file.read)}
end if dir.exist?
raise 'No logs.' if logs.empty?
... | false |
Other | Homebrew | brew | d69be7f6195dc8ec64bd4316690206c695a632ad.json | Add ENV.m64 to superenv | Library/Homebrew/extend/ENV/super.rb | @@ -300,6 +300,10 @@ def m32
append "HOMEBREW_ARCHFLAGS", "-m32"
end
+ def m64
+ append "HOMEBREW_ARCHFLAGS", "-m64"
+ end
+
def cxx11
case homebrew_cc
when "clang"
@@ -339,7 +343,7 @@ def noop(*args); end
# These methods provide functionality that has not yet been ported to
# supere... | false |
Other | Homebrew | brew | d61615890f9bdf999e2e6dd0f2568e64a9c185cc.json | Fix ENV.m32 under superenv | Library/ENV/4.3/cc | @@ -132,9 +132,7 @@ class Cmd
else
enum.next
end
- when "-m32"
- args << arg if cccfg?("3") || cccfg?("K")
- when "-m64"
+ when "-m32", "-m64"
args << arg if cccfg?("K")
when /^-Xarch_/
refurbished = refurbish_arg(enum.next, enum) | true |
Other | Homebrew | brew | d61615890f9bdf999e2e6dd0f2568e64a9c185cc.json | Fix ENV.m32 under superenv | Library/Homebrew/extend/ENV/super.rb | @@ -84,7 +84,6 @@ def setup_build_environment(formula=nil)
# compiler flag stripping. It consists of a string of characters which act
# as flags. Some of these flags are mutually exclusive.
#
- # 3 - A 32-bit build was requested
# O - Enables argument refurbishing. Only active under the
# ... | true |
Other | Homebrew | brew | a64f2e737cd239798c5ee110d0606d4853cfd92e.json | Refurbish two more flags not supported by clang
'-fno-tree-pre' and '-fno-tree-dominator-opts'
Closes Homebrew/homebrew#29452.
Signed-off-by: Jack Nagel <jacknagel@gmail.com> | Library/ENV/4.3/cc | @@ -163,7 +163,7 @@ class Cmd
/^-finline-limit/, /^-f(?:no-)?check-new/, '-fno-delete-null-pointer-checks',
'-fcaller-saves', '-fthread-jumps', '-fno-reorder-blocks', '-fcse-skip-blocks',
'-frerun-cse-after-loop', '-frerun-loop-opt', '-fcse-follow-jumps',
- '-fno-regmove', '-fno-for-scope'
+ ... | false |
Other | Homebrew | brew | bba2b7616735fe5503923c908cc36c9222b40393.json | add start and stop as generic executables | Library/Homebrew/formula_cellar_checks.rb | @@ -91,7 +91,7 @@ def check_non_executables bin
def check_generic_executables bin
return unless bin.directory?
- generic_names = %w[run service]
+ generic_names = %w[run service start stop]
generics = bin.children.select { |g| generic_names.include? g.basename.to_s }
return if generics.empty?
... | false |
Other | Homebrew | brew | 4f014836f2a5603a05a6de686ef4a298706111c9.json | Prefer pathname methods over regexp matching | Library/Homebrew/formula_cellar_checks.rb | @@ -40,8 +40,7 @@ def check_infopages
def check_jars
return unless f.lib.directory?
-
- jars = f.lib.children.select{|g| g.to_s =~ /\.jar$/}
+ jars = f.lib.children.select { |g| g.extname == ".jar" }
return if jars.empty?
["JARs were installed to \"#{f.lib}\".",
@@ -92,7 +91,8 @@ def check_n... | false |
Other | Homebrew | brew | c6f1ccc2157012cdbc7a70fa9cf8595a1fb5ac1a.json | make `tests` an internal command | Library/Homebrew/cmd/tests.rb | @@ -7,5 +7,3 @@ def tests
end
end
end
-
-Homebrew.tests | false |
Other | Homebrew | brew | b2b74260dbf7ea106e9b905fb68419dc17f3ab7a.json | Remove obsolete text | Library/Homebrew/cmd/sh.rb | @@ -22,7 +22,6 @@ def sh
gem and pip will ignore our configuration and insist on using the
environment they were built under (mostly). Sadly, scons will also
ignore our configuration.
- All toolchain use will be logged to: ~/Library/Homebrew/Logs/cc.log
When done, type `e... | false |
Other | Homebrew | brew | 6278ffdba0a15ca8d1f2c0dc1865f83743deb17b.json | Remove ENV variable that is no longer used | Library/Homebrew/cmd/sh.rb | @@ -16,7 +16,6 @@ def sh
end
ENV['PS1'] = 'brew \[\033[1;32m\]\w\[\033[0m\]$ '
ENV['VERBOSE'] = '1'
- ENV['HOMEBREW_LOG'] = '1'
puts <<-EOS.undent_________________________________________________________72
Your shell has been configured to use Homebrew's build environment:
thi... | false |
Other | Homebrew | brew | ad7adcee972bab29fae8f35e41b283f3a7252e16.json | Remove dead code | Library/Homebrew/cmd/--env.rb | @@ -14,8 +14,7 @@ def __env
if $stdout.tty?
dump_build_env ENV
else
- keys = build_env_keys(ENV) << 'HOMEBREW_BREW_FILE' << 'HOMEBREW_SDKROOT'
- keys.each do |key|
+ build_env_keys(ENV).each do |key|
puts "export #{key}=\"#{ENV[key]}\""
end
end
@@ -41,13 +40,9 @@ def... | false |
Other | Homebrew | brew | 2295c1cc8a093404f6aaca6696baeee6d3b4ec2c.json | Alphabetize tap migrations | Library/Homebrew/tap_migrations.rb | @@ -39,8 +39,8 @@
"pocl" => "homebrew/science",
"qfits" => "homebrew/boneyard",
"qrupdate" => "homebrew/science",
- "slicot" => "homebrew/science",
"shark" => "homebrew/boneyard",
+ "slicot" => "homebrew/science",
"solfege" => "homebrew/boneyard",
"storm" => "homebrew/boneyard",
"syslog-ng" => "h... | false |
Other | Homebrew | brew | 92c359c3e71f8641fe3ba0f14ebab7477022c40c.json | Move appswitch to homebrew-binary | Library/Homebrew/tap_migrations.rb | @@ -1,8 +1,9 @@
TAP_MIGRATIONS = {
"agedu" => "homebrew/headonly",
"aimage" => "homebrew/boneyard",
- "aws-iam-tools" => "homebrew/boneyard",
"apple-gcc42" => "homebrew/versions",
+ "appswitch" => "homebrew/binary",
+ "aws-iam-tools" => "homebrew/boneyard",
"blackbox" => "homebrew/boneyard",
"boost14... | false |
Other | Homebrew | brew | 19f9d0aaf17c5ca70141739dbfb7647423af48cf.json | Remove example that is generally not required | Library/Contributions/example-formula.rb | @@ -302,10 +302,6 @@ def install
ENV.append_to_cflags "-I ./missing/includes"
end
- # This is in general not necessary, but to show how to find the path to
- # the Mac OS X SDK:
- ENV.append "CPPFLAGS", "-I#{MacOS.sdk_path}/usr/include" unless MacOS::CLT.installed?
-
# Overwriting any env va... | false |
Other | Homebrew | brew | f6fda5651bb08a60cd943c14aa08fadaebdd9a3f.json | Remove deprecated --use-{gcc,llvm,clang}
Closes Homebrew/homebrew#29380. | Library/Homebrew/cmd/install.rb | @@ -6,19 +6,6 @@ module Homebrew extend self
def install
raise FormulaUnspecifiedError if ARGV.named.empty?
- {
- 'gcc' => 'gcc-4.2',
- 'llvm' => 'llvm-gcc',
- 'clang' => 'clang'
- }.each_pair do |old, new|
- opt = "--use-#{old}"
- if ARGV.include? opt then opoo <<-EOS.undent
- ... | true |
Other | Homebrew | brew | f6fda5651bb08a60cd943c14aa08fadaebdd9a3f.json | Remove deprecated --use-{gcc,llvm,clang}
Closes Homebrew/homebrew#29380. | Library/Homebrew/extend/ENV/shared.rb | @@ -91,16 +91,6 @@ def compiler
raise "Invalid value for --cc: #{other}"
end
end
- elsif ARGV.include? '--use-gcc'
- if MacOS.locate("gcc-4.2") || HOMEBREW_PREFIX.join("opt/apple-gcc42/bin/gcc-4.2").exist?
- :gcc
- else
- raise "gcc-4.2 not found!"
- end
- e... | true |
Other | Homebrew | brew | 16c073a1531057c7f8244a2694d0923986b79d74.json | Remove hardcoded reference to ENV | Library/Homebrew/extend/ENV/shared.rb | @@ -113,7 +113,7 @@ def compiler
# an alternate compiler, altering the value of environment variables.
# If no valid compiler is found, raises an exception.
def validate_cc!(formula)
- if formula.fails_with? ENV.compiler
+ if formula.fails_with? compiler
send CompilerSelector.new(formula).compiler... | false |
Other | Homebrew | brew | 930cf4c768c017b25f3bee5d96cde4be384b74dc.json | Add accessor for HOMEBREW_CC | Library/Homebrew/extend/ENV/shared.rb | @@ -101,8 +101,8 @@ def compiler
:llvm
elsif ARGV.include? '--use-clang'
:clang
- elsif self['HOMEBREW_CC']
- cc = COMPILER_ALIASES.fetch(self['HOMEBREW_CC'], self['HOMEBREW_CC'])
+ elsif homebrew_cc
+ cc = COMPILER_ALIASES.fetch(homebrew_cc, homebrew_cc)
COMPILER_SYMBOL_MAP.fe... | true |
Other | Homebrew | brew | 930cf4c768c017b25f3bee5d96cde4be384b74dc.json | Add accessor for HOMEBREW_CC | Library/Homebrew/extend/ENV/super.rb | @@ -87,7 +87,7 @@ def setup_build_environment(formula=nil)
# s - apply fix for sed's Unicode support
# a - apply fix for apr-1-config path
- warn_about_non_apple_gcc($1) if self["HOMEBREW_CC"] =~ GNU_GCC_REGEXP
+ warn_about_non_apple_gcc($1) if homebrew_cc =~ GNU_GCC_REGEXP
end
private
@@ -125... | true |
Other | Homebrew | brew | 9e8d419070d5b3637031c186ba196b8ec8dfea19.json | Use a case statement | Library/Homebrew/extend/ENV/shared.rb | @@ -92,7 +92,9 @@ def fcflags; self['FCFLAGS']; end
def compiler
@compiler ||= if (cc = ARGV.cc)
COMPILER_SYMBOL_MAP.fetch(cc) do |other|
- if other =~ GNU_GCC_REGEXP then other
+ case other
+ when GNU_GCC_REGEXP
+ other
else
raise "Invalid value fo... | false |
Other | Homebrew | brew | fbf1c189a78370f30d8b6ebea1aa208a95312a25.json | Move brew-unpack to core | Library/Contributions/brew_bash_completion.sh | @@ -370,6 +370,17 @@ _brew_uninstall ()
__brew_complete_installed
}
+_brew_unpack ()
+{
+ local cur="${COMP_WORDS[COMP_CWORD]}"
+ case "$cur" in
+ --*)
+ __brewcomp "--git --patch --destdir="
+ return
+ ;;
+ esac
+ __brew_complete_formulae
+}
_brew_update ()
{
local cu... | true |
Other | Homebrew | brew | fbf1c189a78370f30d8b6ebea1aa208a95312a25.json | Move brew-unpack to core | Library/Contributions/cmd/brew-unpack.rb | @@ -1,100 +0,0 @@
-require 'formula'
-
-require 'stringio'
-module ScriptDataReader
- # This module contains a method for extracting the contents of DATA from a
- # Ruby file other than the script containing the currently executing
- # function. Many thanks to Glenn Jackman's Stackoverflow answer which
- # provide... | true |
Other | Homebrew | brew | fbf1c189a78370f30d8b6ebea1aa208a95312a25.json | Move brew-unpack to core | Library/Contributions/manpages/brew.1.md | @@ -352,6 +352,18 @@ Note that these flags should only appear after a command.
* `unlinkapps [--local]`:
Removes links created by `brew linkapps`.
+ * `unpack [--git|--patch] [--destdir=<path>]` <formulae>:
+
+ Unpack the source files for <formulae> into subdirectories of the current
+ working director... | true |
Other | Homebrew | brew | fbf1c189a78370f30d8b6ebea1aa208a95312a25.json | Move brew-unpack to core | Library/Homebrew/cmd/unpack.rb | @@ -0,0 +1,74 @@
+require "stringio"
+require "formula"
+
+module Homebrew
+ extend self
+
+ module DATALoader
+ # Original code from http://stackoverflow.com/a/2157556/371237
+ def self.load(path)
+ data = StringIO.new
+ path.open("r") do |f|
+ begin
+ line = f.gets
+ end until... | true |
Other | Homebrew | brew | fbf1c189a78370f30d8b6ebea1aa208a95312a25.json | Move brew-unpack to core | share/man/man1/brew.1 | @@ -369,6 +369,18 @@ Remove symlinks for \fIformula\fR from the Homebrew prefix\. This can be useful
Removes links created by \fBbrew linkapps\fR\.
.
.TP
+\fBunpack [\-\-git|\-\-patch] [\-\-destdir=<path>]\fR \fIformulae\fR:
+.
+.IP
+Unpack the source files for \fIformulae\fR into subdirectories of the current worki... | true |
Other | Homebrew | brew | 69087812647a13564c704387e9c0b6dbf5e3614e.json | convert tabs to spaces in bin/brew | bin/brew | @@ -5,9 +5,9 @@ export HOMEBREW_BREW_FILE="$BREW_FILE_DIRECTORY/${0##*/}"
BREW_SYMLINK=$(readlink "$0")
if [ -n "$BREW_SYMLINK" ]
then
- BREW_SYMLINK_DIRECTORY=$(dirname "$BREW_SYMLINK")
- BREW_FILE_DIRECTORY=$(cd "$BREW_FILE_DIRECTORY" &&
- cd "$BREW_SYMLINK_DIRECTORY" && pwd -P)
+ BREW_SYM... | false |
Other | Homebrew | brew | b57e97cde3c24774232c2079f2922fc583342561.json | Move agedu to headonly
The checksum on the tarball is not stable.
Closes Homebrew/homebrew#26671. | Library/Homebrew/tap_migrations.rb | @@ -1,4 +1,5 @@
TAP_MIGRATIONS = {
+ "agedu" => "homebrew/headonly",
"aimage" => "homebrew/boneyard",
"aws-iam-tools" => "homebrew/boneyard",
"apple-gcc42" => "homebrew/versions", | false |
Other | Homebrew | brew | 326d3e07e913cdcaab2191c71a49ecdbee8a6973.json | fortran_dependency: use gcc instead of gfortran. | Library/Homebrew/requirements/fortran_dependency.rb | @@ -3,7 +3,7 @@
class FortranDependency < Requirement
fatal true
- default_formula 'gfortran'
+ default_formula 'gcc'
env { ENV.fortran }
| false |
Other | Homebrew | brew | 99ebf05b9cf28ed7dbeb7114189b9cfbc4e5cf22.json | Move storm to the boneyard
Storm requires a specific version of jzma, which could be supplied
as a resource. Pull requests will be reviewed.
Closes Homebrew/homebrew#23283. | Library/Homebrew/tap_migrations.rb | @@ -40,6 +40,7 @@
"slicot" => "homebrew/science",
"shark" => "homebrew/boneyard",
"solfege" => "homebrew/boneyard",
+ "storm" => "homebrew/boneyard",
"syslog-ng" => "homebrew/boneyard",
"urweb" => "homebrew/boneyard",
"wkhtmltopdf" => "homebrew/boneyard", | false |
Other | Homebrew | brew | 6ef3bab4a35f0a085670d29341c65862796665ef.json | bottle_version: support fontforge scheme. | Library/Homebrew/bottle_version.rb | @@ -29,6 +29,10 @@ def self._parse spec
m = /-(\d+_\d+(_\d+)+)/.match(stem)
return m.captures.first unless m.nil?
+ # e.g. 20120731 from fontforge-20120731.mavericks.bottle.tar.gz
+ m = /-(\d+)/.match(stem)
+ return m.captures.first unless m.nil?
+
super
end
end | true |
Other | Homebrew | brew | 6ef3bab4a35f0a085670d29341c65862796665ef.json | bottle_version: support fontforge scheme. | Library/Homebrew/test/test_bottle_versions.rb | @@ -45,4 +45,9 @@ def test_zpython_style
assert_version_detected '00-5.0.5',
'/usr/local/zpython-00-5.0.5.mavericks.bottle.tar.gz'
end
+
+ def test_fontforge_style
+ assert_version_detected '20120731',
+ '/usr/local/fontforge-20120731.mavericks.bottle.tar.gz'
+ end
end | true |
Other | Homebrew | brew | 230161c1deb4bee497c12e7dfe87f41a236b2d44.json | Use a case statement | Library/Homebrew/extend/ENV/super.rb | @@ -267,10 +267,11 @@ def universal_binary
end
def cxx11
- if self['HOMEBREW_CC'] == 'clang'
+ case self["HOMEBREW_CC"]
+ when "clang"
append 'HOMEBREW_CCCFG', "x", ''
append 'HOMEBREW_CCCFG', "g", ''
- elsif self['HOMEBREW_CC'] =~ /gcc-4\.(8|9)/
+ when /gcc-4\.(8|9)/
append ... | false |
Other | Homebrew | brew | cb873d0833074f4477424a984c08311ef1293334.json | Check value of compiler rather than HOMEBREW_CC | Library/Homebrew/extend/ENV/super.rb | @@ -278,15 +278,11 @@ def cxx11
end
def libcxx
- if self['HOMEBREW_CC'] == 'clang'
- append 'HOMEBREW_CCCFG', "g", ''
- end
+ append "HOMEBREW_CCCFG", "g", "" if compiler == :clang
end
def libstdcxx
- if self['HOMEBREW_CC'] == 'clang'
- append 'HOMEBREW_CCCFG', "h", ''
- end
+ ... | false |
Other | Homebrew | brew | deb65a959d6b1a8434b0304f6389a6e8065d1e25.json | Use a case statement | Library/Homebrew/extend/ENV/super.rb | @@ -133,16 +133,14 @@ def determine_path
# Homebrew's apple-gcc42 will be outside the PATH in superenv,
# so xcrun may not be able to find it
- if self['HOMEBREW_CC'] == 'gcc-4.2'
- apple_gcc42 = begin
- Formulary.factory('apple-gcc42')
+ case self["HOMEBREW_CC"]
+ when "gcc-4.2"
+ ... | false |
Other | Homebrew | brew | 43d9640cb667267494ddad3e853233fe7148c5df.json | Move method to prepare for future changes | Library/Homebrew/extend/ENV/super.rb | @@ -158,6 +158,13 @@ def determine_pkg_config_libdir
paths.to_path_s
end
+ def determine_aclocal_path
+ paths = keg_only_deps.map{|dep| "#{HOMEBREW_PREFIX}/opt/#{dep}/share/aclocal" }
+ paths << "#{HOMEBREW_PREFIX}/share/aclocal"
+ paths << "#{MacOS::X11.share}/aclocal" if x11?
+ paths.to_path_s
... | false |
Other | Homebrew | brew | a78b9063892aeb4e5084edcfc7ed873587997abc.json | inline this method | Library/Homebrew/cleaner.rb | @@ -64,24 +64,7 @@ def prune
end
end
- # Set permissions for executables and non-executables
- def clean_file_permissions path
- perms = if path.mach_o_executable? || path.text_executable?
- 0555
- else
- 0444
- end
- if ARGV.debug?
- old_perms = path.stat.mode & 0777
- if pe... | false |
Other | Homebrew | brew | 108339ae0fedcf3428d1040f5562eeff38b1d9c5.json | Move mpio and msgpack-rpc to boneyard
mpio does not compile with clang or C++11
msgpack-rcp requires mpio | Library/Homebrew/tap_migrations.rb | @@ -27,6 +27,8 @@
"lmutil" => "homebrew/binary",
"mlkit" => "homebrew/boneyard",
"mlton" => "homebrew/boneyard",
+ "mpio" => "homebrew/boneyard",
+ "msgpack-rpc" => "homebrew/boneyard",
"mydumper" => "homebrew/boneyard",
"nlopt" => "homebrew/science",
"octave" => "homebrew/science", | false |
Other | Homebrew | brew | 839f9dfe876eba737416c76ebbe50b98d94301b8.json | Move solfege to the boneyard.
Newer versions do not compile on OS X, and the project
does not seem to be actively maintained at the moment.
Closes Homebrew/homebrew#25065. | Library/Homebrew/tap_migrations.rb | @@ -37,6 +37,7 @@
"qrupdate" => "homebrew/science",
"slicot" => "homebrew/science",
"shark" => "homebrew/boneyard",
+ "solfege" => "homebrew/boneyard",
"syslog-ng" => "homebrew/boneyard",
"urweb" => "homebrew/boneyard",
"wkhtmltopdf" => "homebrew/boneyard", | false |
Other | Homebrew | brew | 38765ae9fd52b32030822e3be8f86e3dd7ddebaf.json | superenv: remove duplicate -multiply_definedsuppress filter
This reverts commit 61d8a8e029079ca1922df735683c2b5eb6a39db1. | Library/ENV/4.3/cc | @@ -158,7 +158,7 @@ class Cmd
/^-finline-limit/, /^-f(?:no-)?check-new/, '-fno-delete-null-pointer-checks',
'-fcaller-saves', '-fthread-jumps', '-fno-reorder-blocks', '-fcse-skip-blocks',
'-frerun-cse-after-loop', '-frerun-loop-opt', '-fcse-follow-jumps',
- '-fno-regmove', '-fno-for-scope', '-... | false |
Other | Homebrew | brew | 176e5ab72cc50881cf3de48794768bf0625ac9c4.json | Add an option "--root_url=" to bottle command.
Closes Homebrew/homebrew#29081.
Signed-off-by: Adam Vandenberg <flangy@gmail.com> | Library/Contributions/brew_bash_completion.sh | @@ -140,7 +140,7 @@ _brew_bottle ()
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--*)
- __brewcomp "--merge --rb --write"
+ __brewcomp "--merge --rb --write --root_url="
return
;;
esac | true |
Other | Homebrew | brew | 176e5ab72cc50881cf3de48794768bf0625ac9c4.json | Add an option "--root_url=" to bottle command.
Closes Homebrew/homebrew#29081.
Signed-off-by: Adam Vandenberg <flangy@gmail.com> | Library/Homebrew/cmd/bottle.rb | @@ -9,6 +9,9 @@
BOTTLE_ERB = <<-EOS
bottle do
+ <% if root_url != BottleSpecification.new.root_url %>
+ root_url "<%= root_url %>"
+ <% end %>
<% if prefix.to_s != "/usr/local" %>
prefix "<%= prefix %>"
<% end %>
@@ -181,7 +184,10 @@ def bottle_formula f
end
end
+ root_url... | true |
Other | Homebrew | brew | 7609cf88c5992a31d6ab0db49aa0c77dea87193c.json | clang: add another unknown flag
Fixes Homebrew/homebrew#29141. | Library/ENV/4.3/cc | @@ -158,7 +158,7 @@ class Cmd
/^-finline-limit/, /^-f(?:no-)?check-new/, '-fno-delete-null-pointer-checks',
'-fcaller-saves', '-fthread-jumps', '-fno-reorder-blocks', '-fcse-skip-blocks',
'-frerun-cse-after-loop', '-frerun-loop-opt', '-fcse-follow-jumps',
- '-fno-regmove', '-fno-for-scope'
+ ... | false |
Other | Homebrew | brew | 5f94742afb32ec1c8d3ceb2db69f5ea0d3545f5c.json | Ensure HOMEBREW_ARCHFLAGS is always a string | Library/ENV/4.3/cc | @@ -233,9 +233,7 @@ class Cmd
end
def archflags
- args = []
- args.concat ENV['HOMEBREW_ARCHFLAGS'].split(' ') if cccfg? 'u'
- args
+ ENV["HOMEBREW_ARCHFLAGS"].split(" ")
end
def syspath | true |
Other | Homebrew | brew | 5f94742afb32ec1c8d3ceb2db69f5ea0d3545f5c.json | Ensure HOMEBREW_ARCHFLAGS is always a string | Library/Homebrew/extend/ENV/super.rb | @@ -76,6 +76,7 @@ def setup_build_environment(formula=nil)
self['HOMEBREW_TEMP'] = HOMEBREW_TEMP
self['HOMEBREW_SDKROOT'] = "#{MacOS.sdk_path}" if MacOS::Xcode.without_clt?
self['HOMEBREW_OPTFLAGS'] = determine_optflags
+ self['HOMEBREW_ARCHFLAGS'] = ''
self['CMAKE_PREFIX_PATH'] = determine_cmake... | true |
Other | Homebrew | brew | 98f9b2d4ea6d3550b1fefbf3e3b685f144475348.json | Move shark to the boneyard
Closes Homebrew/homebrew#28578. | Library/Homebrew/tap_migrations.rb | @@ -36,6 +36,7 @@
"qfits" => "homebrew/boneyard",
"qrupdate" => "homebrew/science",
"slicot" => "homebrew/science",
+ "shark" => "homebrew/boneyard",
"syslog-ng" => "homebrew/boneyard",
"urweb" => "homebrew/boneyard",
"wkhtmltopdf" => "homebrew/boneyard", | false |
Other | Homebrew | brew | 54fc1946f96cf9f4391e33f9c692b5aba317ebac.json | exceptions: fix tap issue URL.
Closes Homebrew/homebrew#29043. | Library/Homebrew/exceptions.rb | @@ -185,7 +185,7 @@ def dump
puts "#{Tty.red}READ THIS#{Tty.reset}: #{Tty.em}#{ISSUES_URL}#{Tty.reset}"
if formula.tap?
user, repo = formula.tap.split '/'
- tap_issues_url = "https://github.com/#{user}/homebrew-#{repo}/issues"
+ tap_issues_url = "https://github.com/#{user}/#{repo}/i... | false |
Other | Homebrew | brew | 2b9c350b27888896886ffc6e75d2b6bbbdea4bcd.json | bottle_version: handle zpython bottle.
Closes Homebrew/homebrew#28870.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/bottle_version.rb | @@ -12,6 +12,10 @@ def self._parse spec
m = /-(r\d+\.?\d*)/.match(stem)
return m.captures.first unless m.nil?
+ # e.g. 00-5.0.5 from zpython-00-5.0.5.mavericks.bottle.tar.gz
+ m = /(00-\d+\.\d+(\.\d+)+)/.match(stem)
+ return m.captures.first unless m.nil?
+
# e.g. 1.6.39 from pazpar2-1.6.39.ma... | true |
Other | Homebrew | brew | 2b9c350b27888896886ffc6e75d2b6bbbdea4bcd.json | bottle_version: handle zpython bottle.
Closes Homebrew/homebrew#28870.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/test/test_bottle_versions.rb | @@ -40,4 +40,9 @@ def test_disco_style
assert_version_detected '0_5_0',
'/usr/local/disco-0_5_0.mavericks.bottle.tar.gz'
end
+
+ def test_zpython_style
+ assert_version_detected '00-5.0.5',
+ '/usr/local/zpython-00-5.0.5.mavericks.bottle.tar.gz'
+ end
end | true |
Other | Homebrew | brew | 2fb6d2fdbed66439de458932b89edb9222dc2ac1.json | ENV/std: use full paths to gcc versions.
This is consistent with how e.g. `gcc-4.2` is handled.
This means e.g. `ghc` can find `gcc-4.8` at runtime.
Fixes Homebrew/homebrew#28934. | Library/Homebrew/extend/ENV/std.rb | @@ -119,8 +119,9 @@ def gcc
GNU_GCC_VERSIONS.each do |n|
define_method(:"gcc-4.#{n}") do
gcc = "gcc-4.#{n}"
- self.cc = gcc
- self.cxx = gcc.gsub('c', '+')
+ gxx = gcc.gsub('c', '+')
+ self.cc = MacOS.locate(gcc)
+ self.cxx = MacOS.locate(gxx)
set_cpu_cflags
@compil... | false |
Other | Homebrew | brew | 4f466b6c10bbc35fb1cdef2691b07856ed3d6e9f.json | Move kismet to the boneyard.
The APIs used by the software are no longer available in OS X 10.9.
Closes Homebrew/homebrew#25036. | Library/Homebrew/tap_migrations.rb | @@ -19,6 +19,7 @@
"jscoverage" => "homebrew/boneyard",
"jsl" => "homebrew/binary",
"kerl" => "homebrew/headonly",
+ "kismet" => "homebrew/boneyard",
"libgtextutils" => "homebrew/science",
"librets" => "homebrew/boneyard",
"lmutil" => "homebrew/binary", | false |
Other | Homebrew | brew | 68da1e7765567c64e46bd813eb139bc09e14d863.json | Add a method_defined? guard for Pathname#/
This was added to the stdlib in https://github.com/ruby/ruby/commit/391fc2eeecfc2f0d0f851b0c27ba02e041fe2cd9. | Library/Homebrew/extend/pathname.rb | @@ -298,7 +298,7 @@ def make_relative_symlink(src)
def / that
self + that.to_s
- end
+ end unless method_defined?(:/)
def ensure_writable
saved_perms = nil | false |
Other | Homebrew | brew | 1fd0488ff4552f67380aa8f8d289658d3be1d09a.json | Move clam to boneyard.
Fails to build with clang or on non-/usr/local installs.
Closes Homebrew/homebrew#23024. | Library/Homebrew/tap_migrations.rb | @@ -4,6 +4,7 @@
"apple-gcc42" => "homebrew/versions",
"blackbox" => "homebrew/boneyard",
"boost149" => "homebrew/versions",
+ "clam" => "homebrew/boneyard",
"cmucl" => "homebrew/binary",
"comparepdf" => "homebrew/boneyard",
"denyhosts" => "homebrew/boneyard", | false |
Other | Homebrew | brew | 9f42b6b9c7a7713242ab06cc21e082fd31f59dda.json | Drop emacs dep audit
cf. Homebrew/homebrew#24802. | Library/Homebrew/cmd/audit.rb | @@ -162,7 +162,7 @@ def audit_deps
when *BUILD_TIME_DEPS
next if dep.build? or dep.run?
problem %{#{dep} dependency should be "depends_on '#{dep}' => :build"}
- when "git", "ruby", "emacs", "mercurial"
+ when "git", "ruby", "mercurial"
problem <<-EOS.undent
Don't u... | false |
Other | Homebrew | brew | 655295a41ff7c2269febd72bf1dab217cd4ab1ff.json | Move hugs98 to the boneyard.
Last update was in 2006 and this software does not build with
modern compilers.
Closes Homebrew/homebrew#28939. | Library/Homebrew/tap_migrations.rb | @@ -11,6 +11,7 @@
"drizzle" => "homebrew/boneyard",
"dsniff" => "homebrew/boneyard",
"grads" => "homebrew/binary",
+ "hugs98" => "homebrew/boneyard",
"hwloc" => "homebrew/science",
"ipopt" => "homebrew/science",
"jscoverage" => "homebrew/boneyard", | false |
Other | Homebrew | brew | 61dd796f255290b24f965d885e31ae433a4811ce.json | Suppress a warning on Ruby 2.1+ | Library/Homebrew/extend/pathname.rb | @@ -88,6 +88,7 @@ def install_symlink_p src, new_basename=src
protected :install_symlink_p
# we assume this pathname object is a file obviously
+ alias_method :old_write, :write if method_defined?(:write)
def write content
raise "Will not overwrite #{to_s}" if exist?
dirname.mkpath | false |
Other | Homebrew | brew | bb750e143960b3f131d55cb161e050f58b93aa7f.json | Use parameter expansion to avoid forking | bin/brew | @@ -1,9 +1,6 @@
#!/bin/sh
-BREW_FILE_DIRECTORY=$(dirname "$0")
-BREW_FILE_DIRECTORY=$(cd "$BREW_FILE_DIRECTORY" && pwd -P)
-
-BREW_FILENAME=$(basename "$0")
-export HOMEBREW_BREW_FILE="$BREW_FILE_DIRECTORY/$BREW_FILENAME"
+BREW_FILE_DIRECTORY=$(cd "${0%/*}" && pwd -P)
+export HOMEBREW_BREW_FILE="$BREW_FILE_DIRECTORY/$... | false |
Other | Homebrew | brew | 2c6d4973b96cbad71c868923bc456958582be36f.json | Remove obsolete fallback for broken Xcode 4.3+
After recent cleanups the code in this branch should be unreachable, so
there is little point in keeping it around. | Library/Homebrew/os/mac/xcode.rb | @@ -5,7 +5,6 @@ module Xcode
V4_BUNDLE_ID = "com.apple.dt.Xcode"
V3_BUNDLE_ID = "com.apple.Xcode"
- V4_BUNDLE_PATH = Pathname.new("/Applications/Xcode.app")
def latest_version
case MacOS.version
@@ -39,13 +38,6 @@ def prefix
if path != CLT::MAVERICKS_PKG_PATH and path.a... | false |
Other | Homebrew | brew | cf5ecfc06d0e280eff20667437770d3a21fb6dd5.json | doctor: suppress warnings from git wrapper script
Fixes Homebrew/homebrew#28901. | Library/Homebrew/cmd/doctor.rb | @@ -53,6 +53,14 @@ def find_relative_paths *relative_paths
def inject_file_list(list, str)
list.inject(str) { |s, f| s << " #{f}\n" }
end
+
+ # Git will always be on PATH because of the wrapper script in
+ # Library/Contributions/cmd, so we check if there is a *real*
+ # git here to avoid multiple warn... | false |
Other | Homebrew | brew | 86daf9070037b8d91739871f5dd73eed6d05e0e7.json | Remove bad doctor check | Library/Homebrew/cmd/doctor.rb | @@ -296,12 +296,6 @@ def check_for_stray_developer_directory
end
end
-def check_cc
- if !MacOS::CLT.installed? && MacOS::Xcode.version < "4.3"
- 'No compiler found in /usr/bin!'
- end
-end
-
def check_standard_compilers
return if check_xcode_clt # only check if Xcode is up to date
compiler_status = Ma... | false |
Other | Homebrew | brew | 89ed0c544b75dd828a0cfbc7d8a9902330c16f4b.json | Remove unnecessary nil check | Library/Homebrew/os/mac.rb | @@ -132,7 +132,7 @@ def gcc_42_build_version
@gcc_42_build_version ||=
begin
gcc = MacOS.locate("gcc-4.2") || HOMEBREW_PREFIX.join("opt/apple-gcc42/bin/gcc-4.2")
- if gcc && gcc.exist? && gcc.realpath.basename.to_s !~ /^llvm/
+ if gcc.exist? && gcc.realpath.basename.to_s !~ ... | false |
Other | Homebrew | brew | 3040bd3aae9e8b03f8c5ddcc44d6eb624d031ae6.json | Remove outdated comment | Library/Homebrew/os/mac.rb | @@ -145,8 +145,6 @@ def gcc_42_build_version
alias_method :gcc_build_version, :gcc_42_build_version
def llvm_build_version
- # for Xcode 3 on OS X 10.5 this will not exist
- # NOTE may not be true anymore but we can't test
@llvm_build_version ||=
if (path = locate("llvm-gcc")) && p... | false |
Other | Homebrew | brew | 762b8d1f16289a21dd26ad7b48ca886851001634.json | Restore bash completion for --config | Library/Contributions/brew_bash_completion.sh | @@ -450,12 +450,13 @@ _brew ()
2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g" \
-e "s/.*\///g")
__brewcomp "
- --cache --cellar config
+ --cache --cellar
--env --prefix --repository
audit
cat
cleanup
... | false |
Other | Homebrew | brew | ec852045b14029557e6d27d91e5eab8167803397.json | brew-test-bot: handle failing devel requirements. | Library/Contributions/cmd/brew-test-bot.rb | @@ -249,6 +249,28 @@ def skip formula
puts "#{Tty.blue}==>#{Tty.white} SKIPPING: #{formula}#{Tty.reset}"
end
+ def satisfied_requirements? formula_object, spec=:stable
+ requirements = if spec == :stable
+ formula_object.recursive_requirements
+ else
+ formula_object.send(spec).requirements
+... | false |
Other | Homebrew | brew | 32b7c9ff150c0b4bbabd75a73840a14f4ba64f80.json | unpack: use correct constant scope for DATA
Formula::DATA only worked by accident of implementation; DATA during the
build is actually Object::DATA, so we should mirror that here.
This reverts commit b12444ba6e1ac1d596a70ff4c777d9386d0791ac. | Library/Contributions/cmd/brew-unpack.rb | @@ -28,22 +28,13 @@ def patch
return unless ARGV.flag? "--patch"
begin
- # Silence complaints about re-setting constants.
old_verbose = $VERBOSE
$VERBOSE = nil
- Formula.const_set "DATA", ScriptDataReader.load(path)
+ Object.const_set "DATA", ScriptDataReader.load(path)
ens... | false |
Other | Homebrew | brew | 953f6c1ead39c9a68566ae2057e00f93e178ead9.json | Remove test that doesn't add value | Library/Homebrew/test/test_ENV.rb | @@ -7,17 +7,6 @@ def setup
@env.activate_extensions!
end
- def test_ENV_options
- @env.gcc_4_0
- @env.O3
- @env.minimal_optimization
- @env.no_optimization
- @env.libxml2
- @env.enable_warnings
- assert !@env.cc.empty?
- assert !@env.cxx.empty?
- end
-
def test_switching_compilers... | false |
Other | Homebrew | brew | b6a0b953804699d4893e0fcee4f5713968a70185.json | Use MacOS.locate and delete wrong comment | Library/Homebrew/extend/ENV/std.rb | @@ -113,9 +113,8 @@ def deparallelize
end
def gcc_4_0_1
- # we don't use locate because gcc 4.0 has not been provided since Xcode 4
- self.cc = "#{MacOS.dev_tools_path}/gcc-4.0"
- self.cxx = "#{MacOS.dev_tools_path}/g++-4.0"
+ self.cc = MacOS.locate("gcc-4.0")
+ self.cxx = MacOS.locate("g++-4.0... | false |
Other | Homebrew | brew | 6a2fa253cd4ce92b3dece3fae9e13d2184269fc9.json | Make ENV.O4 a no-op
On older Apple compilers "-O4" is known to cause build errors. On recent
clang, it's the same as "-O3" and you have to pass "-O3 -flto" to get
the old behavior. | Library/Homebrew/extend/ENV/std.rb | @@ -103,9 +103,9 @@ def deparallelize
alias_method :j1, :deparallelize
# These methods are no-ops for compatibility.
- %w{fast Og}.each { |opt| define_method(opt) {} }
+ %w{fast O4 Og}.each { |opt| define_method(opt) {} }
- %w{O4 O3 O2 O1 O0 Os}.each do |opt|
+ %w{O3 O2 O1 O0 Os}.each do |opt|
define... | true |
Other | Homebrew | brew | 6a2fa253cd4ce92b3dece3fae9e13d2184269fc9.json | Make ENV.O4 a no-op
On older Apple compilers "-O4" is known to cause build errors. On recent
clang, it's the same as "-O3" and you have to pass "-O3 -flto" to get
the old behavior. | Library/Homebrew/extend/ENV/super.rb | @@ -294,7 +294,7 @@ def m32
append 'HOMEBREW_CCCFG', "3", ''
end
- %w{O4 O3 O2 O1 O0 Os}.each do |opt|
+ %w{O3 O2 O1 O0 Os}.each do |opt|
define_method opt do
self['HOMEBREW_OPTIMIZATION_LEVEL'] = opt
end
@@ -305,7 +305,7 @@ def noop(*args); end
# These methods are no longer necessary ... | true |
Other | Homebrew | brew | ccc62a0cad3816389db805143f39013218b57bce.json | Use canonical_name to canonicalize aliases | Library/Homebrew/cmd/search.rb | @@ -125,11 +125,9 @@ def search_formulae rx
results = (Formula.names+aliases).grep(rx).sort
# Filter out aliases when the full name was also found
- results.reject do |alias_name|
- if aliases.include? alias_name
- resolved_name = (HOMEBREW_REPOSITORY+"Library/Aliases"+alias_name).readlink.ba... | false |
Other | Homebrew | brew | 3b15b58d007c38f56315a4a09908b6efaa46ee8e.json | Use Formulary.factory to find formula in taps | Library/Homebrew/cmd/search.rb | @@ -20,30 +20,21 @@ def search
exec_browser "https://admin.fedoraproject.org/pkgdb/acls/list/*#{ARGV.next}*"
elsif ARGV.include? '--ubuntu'
exec_browser "http://packages.ubuntu.com/search?keywords=#{ARGV.next}&searchon=names&suite=all§ion=all"
- elsif (query = ARGV.first).nil?
+ elsif ARGV.... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.