Commit Graph
3557 Commits
Author SHA1 Message Date
Jack Nagel ce72980beb Use curl to download list of Apache mirrors
Ruby's OpenURI library is somewhat broken under 1.8 and chokes on
otherwise valid values of http(s)_proxy. Use curl to get the mirror list
instead.

Fixes #23708.
2013-10-30 00:11:46 -05:00
Teo Ljungberg a0ee1a167e New command: brew unlinkapps
The name is pretty self explanatory, it unlinks all installed
applications found under `brew --prefix` from either `~/Applications` or
`/Applications`

Closes #22729.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-29 21:04:25 -07:00
Jack Nagel c0b17c8c20 Add ant dependency
Closes #23484.
Closes #23494.
Closes #23681.
2013-10-28 14:44:20 -05:00
Misty De Meo a59e2adfdb Mac.prefer_64_bit?: fix conditional for 10.4 2013-10-28 08:41:57 -07:00
Mike McQuaid 4c53fd11cb Bottle: handle legacy bottle OS tags.
Otherwise :mountainlion, :snowleopard in the history for CMake breaks 
bottle_filenames from versions for new CMake bottles.
2013-10-28 10:50:02 +00:00
Mike McQuaid b5f73f8101 versions: fix bottle_filenames.
Previously if a bottle had no checksum for a particular platform (i.e.
currently there are no Mavericks bottles) then it would generate a
different revision (and thus filename) to the rest of the bottles being
generated which meant bottles needed to be manually renamed.

Instead check the actual bottle object's checksums to make sure that
we've looked at the previous bottles for all platforms rather than just
the current one.
2013-10-28 10:26:04 +00:00
Jack Nagel 81f708214b Fix md5 compat layer
Fixes #23653.
2013-10-27 12:43:14 -05:00
Stefan 35e6f91359 fix build log output
Closes #23669.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-27 09:48:15 -07:00
Xiyue Deng 8eafc9de19 Make stdenv handling less intrusive.
* Don't encode "-Qunused-arguments", as this is only supported in Clang
  and will break building when C/C++ compiler is switched during the
  process, e.g. building gcc. The warning is harmless without
  "-Werror".
2013-10-27 06:30:48 -07:00
Xiyue Deng 3ec40c062e Clang standard library selection.
* Add new ENV function for selecting stdlib for Clang.
  - The selection is no-op for non-system-clang compilers.
  - Both superenv and stdenv are handled.
* Add new HOMEBREW_CCCFG flag and ccwrapper handling.
2013-10-26 22:17:04 -07:00
Xiyue Deng aeaf6fe104 C++11 support.
* Add options and ENV method to specify building in C++11 mode.
  - Set C++ compiler flags to enable C++11 mode.
  - To add options to support C++11 mode, a formula can now use

      option :cxx11

    to provide "--c++11" option, and detect and enable C++11 support in
    install method using

      ENV.cxx11 if build.cxx11?

Closes #22453.
2013-10-26 22:17:04 -07:00
Misty De Meo f6487f6a74 detect_cxx_stdlibs: use mach_o_files 2013-10-26 21:54:30 -07:00
Misty De Meo 6eeaf770a4 Move bottle stdlib tracking post-pour
This allows us to track the actual stdlib in use, and prevents warnings
for bottles with no C++ code.
2013-10-26 21:54:29 -07:00
Misty De Meo a90b5cda0c Move stdlib tracking postinstall
This moves stdlib tracking after the install completes, which allows
the tracking to have access to the actual stdlib in use.

This unfortunately means that builds can error out *after* a build,
resulting in wasted time; however, it reduces false positives, and the
overall user experience is still likely to be better this way.
2013-10-26 21:54:29 -07:00
Jack Nagel 58f0b15496 create: escape example interpolation
Fixes #23643.
2013-10-26 18:30:39 -05:00
Adam Vandenberg 8bac55ce61 add note about test path to create template 2013-10-26 15:39:39 -07:00
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