Commit Graph
3541 Commits
Author SHA1 Message Date
Jack Nagel 08d52978c2 Disallow initializing Versions with non-strings
Closes #23553.
2013-10-25 17:29:45 -05:00
Jack Nagel 4e6f20272a Stop coercing MACOS_VERSION to a float 2013-10-25 17:29:36 -05:00
Mike McQuaid 341c9b1fff doctor: require CLT on 10.9.
Xcode-only setup is badly broken and will remain that way until fixed by
Apple. For many 10.9 issues this fixes things so let's tell the users.
2013-10-25 21:33:26 +01:00
Mike McQuaid 09d1977d73 create: detect name from GitHub archives. 2013-10-25 21:12:29 +01:00
David MacMahon f821514e93 Add HOMEBREW_NO_GITHUB_API env var.
This patch allows users to "opt out" of using the GitHub API altogether
by setting the HOMEBREW_NO_GITHUB_API environment variable. The
value of the environment variable does not matter (it can even be
empty!).

For Bash/ZSH: export HOMEBREW_NO_GITHUB_API=1

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-25 21:12:28 +01:00
Jack Nagel 70eb1a50e3 config: omit llvm-gcc if it's not installed 2013-10-24 14:51:43 -05:00
Jack Nagel 070255da2d Tab: ensure file is closed after reading 2013-10-23 23:24:42 -05:00
Mike McQuaid 57efdbcf69 test_utils: fix Mavericks arch test. 2013-10-23 22:15:28 +01:00
Mike McQuaid 0de5f9e4ff test_formula: add Mavericks bottles. 2013-10-23 22:15:28 +01:00
Mike McQuaid 859b874365 test_formula: use different/consistent SHA-1. 2013-10-23 22:15:28 +01:00
Mike McQuaid 9fa87d69a5 Improve Xcode and CLT installation instructions. 2013-10-23 17:44:43 +01:00
Mike McQuaid 27760bf53b formula_installer: further fix tab file handling.
Closes #23477.
2013-10-23 14:02:51 +01:00
Mike McQuaid fb845ffa0a global: further limit tap formula regex. 2013-10-23 12:59:42 +01:00
Mike McQuaid d9f74c48e3 installer: don't try and unlink nil tabfile.
Closes #23472.
2013-10-23 12:42:20 +01:00
Jack Nagel 7c6acdf0db Avoid comparing Xcode.version to floats 2013-10-22 20:48:22 -05:00
Jack Nagel fce53bc1f5 Avoid comparing MacOS.version to floats 2013-10-22 20:47:37 -05:00
Mike McQuaid 1a6f911059 xcode: update to 5.0.1 on 10.8. 2013-10-23 00:45:19 +01:00
Mike McQuaid 1ae1dc8e67 bottles: support mavericks.
Closes #23447.
2013-10-23 00:09:35 +01:00
Mike McQuaid e26eeeb9e1 CLT: correctly find Mavericks CLT PKG.
Closes #23445.
2013-10-22 23:56:22 +01:00
Mike McQuaid 0046cfdf47 Xcode: don't detect Mavericks CLT as Xcode. 2013-10-22 22:37:09 +01:00
Mike McQuaid 673df3e34f CLT: rename Mavericks CLT path constant. 2013-10-22 22:36:41 +01:00
Misty De Meo 2253d50ca2 Bottle tag tests: fix Tiger Intel 64 2013-10-22 13:57:40 -07:00
Jack Nagel ac401c88a0 Assume unknown clang versions are post-Xcode 5 2013-10-22 13:46:14 -05:00
Jack Nagel d96883b874 doctor: remove 10.9 warning 2013-10-22 13:36:07 -05:00
Jack Nagel 13c2681d55 Remove "double negative" condition 2013-10-22 13:31:14 -05:00
Jack Nagel fcf616c380 Eagerly initialize formula specs
Declarations of dependencies, options, and resources in the DSL only
apply to specs that have already been initialized. For example, given
this snippet:

  url ...
  sha1 ...

  depends_on 'foo'

  devel do
    url ...
    sha1 ...
  end

The dependency 'foo' will be recorded for the stable spec, but not the
devel spec, since it was not initialized prior to the call to
depends_on.

While it is considered best practice to declare all specs (stable,
devel, head, and bottle) prior to other declarations, there is nothing
that enforces this ordering, so when it happens it can be confusing and
hard to debug.

To prevent this, we can initialize all specs up front. This comes with
a performance penalty for commands that load all formulae into memory,
but that is probably outweighed by what we gain in correctness.

Fixes #23425.
2013-10-22 13:31:08 -05:00
Mike McQuaid e6cf7be461 Different regex for user/tap/formula and user/tap.
Closes #23430.
2013-10-22 11:58:40 +01:00
Misty De Meo 57e7f22d99 Fix bottle_tag tests 2013-10-21 18:07:06 -07:00
Misty De Meo a27630a28b Bottles: add Leopard/PPC tags 2013-10-21 18:06:46 -07:00
Misty De Meo 478bf23076 Update Leopard/Tiger bottle tags
* PPC bottles are in the os_cpu format, e.g. :tiger_g3
* Intel bottles are the bare cat, as usual
* 64-bit bottles have _64 appended to them, e.g. :tiger_g5_64 or :leopard_64
2013-10-21 13:52:49 -07:00
Mike McQuaid e7fd0e5d66 install: silently ignore already tapped taps. 2013-10-21 20:16:57 +01:00
Mike McQuaid b8103eb8fb tap: use dedicated exception for already tapped. 2013-10-21 20:16:41 +01:00
Mike McQuaid f612a4f75f install: fix trying to tap local bottles. 2013-10-21 19:49:09 +01:00
Mike McQuaid e475c43d77 install: tap if full tap formula format given.
Closes #23411.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-21 18:53:24 +01:00
Mike McQuaid 32e42e064d global: unify tap regex.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-21 18:53:24 +01:00
Misty De Meo f2b1900c9d OS::Mac: Add Xcode 2.5 compiler 2013-10-20 00:41:08 -07:00
Misty De Meo e6ff2aaefc MacOS.gcc_build_version: find GCC when unlinked
MacOS.gcc_42_build_version was returning nil if apple-gcc42 was
installed but unlinked, which was disjoint with how other parts of
Homebrew tried to see if it was present.
2013-10-19 23:13:50 -07:00
Jack Nagel 0ad5dcd718 Make non-libs warning less judgmental 2013-10-19 21:30:57 -05:00
Jack Nagel 1780e2bac8 Fix truncation of printed paths in cellar audits 2013-10-19 21:30:20 -05:00
Jack Nagel 2ddef27e1b Move verbose ENV setup out of brew.rb 2013-10-19 10:41:09 -05:00
Mike McQuaid 3303dee94e HOMEBREW_GIT_ETC: fix nil etc bug. 2013-10-19 14:24:33 +01:00
Mike McQuaid 1c8f6b68cc formula: fix git_etc bash_completion handling. 2013-10-19 13:54:49 +01:00
Jack Nagel 01f5dc0dce libextractor: add runtime dependency on libtool
Fixes #23306.
2013-10-18 20:14:16 -05:00
Jack Nagel 0c3cb4274f Extract repeated conditional to a method 2013-10-18 13:38:19 -05:00
Jack Nagel f813dc3306 Make condition clearer using names 2013-10-18 13:38:18 -05:00
Jack Nagel b7e9dc31b0 Merge XQuartz and X11 modules 2013-10-18 13:38:18 -05:00
Jack Nagel 9c7af3b95c Move MacOS modules under OS::Mac namespace
Closes #23138.
2013-10-18 13:38:07 -05:00
Jack Nagel 3cba7d44c6 Rename MacOS to OS::Mac 2013-10-18 12:56:51 -05:00
Jack Nagel 1d0a7c66a5 Add OS.mac? and OS.linux? 2013-10-18 12:56:51 -05:00
Misty De Meo c72c9e1da9 Allow older non-Apple GCCs to build things 2013-10-16 18:43:56 -07:00