7319 Commits

Author SHA1 Message Date
Jack Nagel
27e184f543 Mark some requirements that don't need the build environment 2015-06-26 00:00:44 -04:00
Jack Nagel
e40b735217 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.
2015-06-25 23:42:54 -04:00
Dominyk Tiller
d864708271 pdsh: move to boneyard
Closes Homebrew/homebrew#41061.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-26 03:30:51 +01:00
Jack Nagel
2bc40ff385 Pull complex condition out of loop 2015-06-25 19:33:47 -04:00
Colin Dean
e12295849d Adds JSON output to outdated command
After some musing on brunophilipe/Cakebrew#71, I thought it would
be useful to let Cakebrew and other tools grab the outdated formulae
version information using a method more elegant than regex.

Closes Homebrew/homebrew#30693.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-06-25 19:32:23 -04:00
Martin Afanasjew
4c7c17255a pdf2svg: migrate back to core (from homebrew-x11)
Turns out `pdf2svg` no longer depends on GTK+ or X11 (and previously did
this only by mistake).

Closes Homebrew/homebrew#41065.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-25 22:47:07 +08:00
Dominyk Tiller
83d6c946af style: bump rubocop to 0.32.1
Closes Homebrew/homebrew#41049.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-25 00:12:18 +01:00
Radek Simko
7069509545 Make warnings yellow (previously red)
Closes Homebrew/homebrew#41003.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-24 16:39:55 +01:00
Jack Nagel
75642e6271 Use Dir.mktmpdir in doctor
This matches how we create temporary directories elsewhere.
2015-06-23 23:20:31 -04:00
Jack Nagel
a1c1c1e3d3 Whitelist ntfs-3g libs
Closes Homebrew/homebrew#40950.
2015-06-23 23:20:31 -04:00
Jack Nagel
22269b7007 Fix audit when tap is nil
This is the case when a formula is passed as a filename.
2015-06-23 19:58:37 -04:00
Jack Nagel
5e7edbbd3c Ask the exception for the formula name 2015-06-22 21:08:27 -04:00
Jack Nagel
87e7735012 Ask the formula object for the opt path 2015-06-22 21:00:40 -04:00
Xu Cheng
7a75bbd85a download_strategy: fix url reassign
We need reassign url after urls are inspected.
2015-06-23 00:23:44 +08:00
Xu Cheng
b18015a7e1 manpage: update list command
Closes Homebrew/homebrew#40921.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-22 22:17:10 +08:00
Xu Cheng
692795f82d list: support --full-name
Closes Homebrew/homebrew#29716.
2015-06-22 22:17:10 +08:00
Xu Cheng
0276c3c70c download_strategy: make sure the inspected url is used
Closes Homebrew/homebrew#40940.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-22 21:24:57 +08:00
Xu Cheng
b363175401 improve audit_formula_name performance
Closes Homebrew/homebrew#40939.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-22 21:24:50 +08:00
Jack Nagel
f1bf81dd55 Simplify gcc_version_formula 2015-06-21 21:18:24 -04:00
Jack Nagel
1ce04786d6 Inline variable 2015-06-21 21:18:24 -04:00
Jack Nagel
3f11f1a0de Eliminate special case for core gcc 2015-06-21 21:18:24 -04:00
Jack Nagel
2db59be452 Less code in begin/rescue block 2015-06-21 21:18:23 -04:00
Jack Nagel
1bba5fd88a Pass full match to warn_about_non_apple_gcc 2015-06-21 21:18:23 -04:00
Xu Cheng
37cd547d5c Formula: cache methods' output to reduce io
Closes Homebrew/homebrew#40855.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-21 15:20:37 +08:00
Larry Gilbert
adafb6c953 vobcopy: retire to boneyard
Closes Homebrew/homebrew#39854.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-20 22:42:23 +01:00
Xu Cheng
60b70c9931 download_strategy: remove extra colon
Closes Homebrew/homebrew#40920.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-21 01:47:09 +08:00
Baptiste Fontaine
8ef8f0f615 sudo_check: don't use a set
This is unnecessary here because we use it only once. The difference
won't be noticeable but the check is ~5 times faster now.

Closes Homebrew/homebrew#40901.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-06-20 12:13:26 +02:00
Xu Cheng
05d9622c02 download_strategy: don't check url if already downloaded
Closes Homebrew/homebrew#40859.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-20 14:44:09 +08:00
Jack Nagel
7c83e3ffe3 Remove workarounds for destructuring single-element hashes 2015-06-19 22:30:13 -04:00
Jack Nagel
ec1727a1be Remove backports for Ruby 1.8.6
refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327,
mistydemeo/tigerbrew#334
2015-06-19 22:20:47 -04:00
Jack Nagel
09f8c54f83 Move some constants from env to compiler constants 2015-06-19 21:38:39 -04:00
Jack Nagel
7edf3c88f6 Pass formula objects, not strings, into the build environment 2015-06-18 23:13:48 -04:00
Baptiste Fontaine
bd42901fa7 'brew man': abort if a formula is given
Closes Homebrew/homebrew#40735.

Closes Homebrew/homebrew#40736.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-06-18 20:06:11 +02:00
Xu Cheng
d770a874e4 audit: add benchmark inject code
Closes Homebrew/homebrew#40847.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-18 20:30:33 +08:00
Mike McQuaid
89b20cf61e tap_migrations: move some x11 to boneyard.
https://github.com/Homebrew/homebrew-boneyard/pull/53
2015-06-18 08:55:23 +01:00
Xu Cheng
2f44990ea9 Revert "audit: add benchmark inject code"
This reverts commit fb23d603ded2796299ed7fc2f4ffee22870b7ea6.
2015-06-18 15:26:11 +08:00
Xu Cheng
6af47815b0 search: cache remote tap formulae
Closes Homebrew/homebrew#40775.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-18 14:46:29 +08:00
Xu Cheng
7a59a3ee37 audit: add benchmark inject code 2015-06-18 14:46:29 +08:00
Jack Nagel
44feb5b8f9 Add opt_frameworks helper 2015-06-17 21:31:27 -04:00
Jack Nagel
38974ed6b5 Run tests for both build environments 2015-06-17 20:04:21 -04:00
Tom Schoonjans
ae3b815908 gtkglarea and qiv: migrating to homebrew/boneyard
victims of the transitioning to gtk-quartz-only: Homebrew/homebrew#39868
a PR has been opened in the boneyard: Homebrew/homebrew-boneyard#54

Closes Homebrew/homebrew#40792.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-17 19:37:45 +01:00
Baptiste Fontaine
4648aa54c0 search --desc: cache the query regexp
Closes Homebrew/homebrew#40795.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-06-17 08:43:01 +02:00
Jack Nagel
72cb403a56 Move 10.11 warning to doctor, pre-install, and post-failure
Fixes Homebrew/homebrew#40778.
2015-06-16 20:02:10 -04:00
Jack Nagel
f59b164733 Add explicit branch for 10.11 in Xcode version list 2015-06-16 20:02:10 -04:00
Jack Nagel
f4027cc9ac "Mac OS X" -> "OS X" in copy 2015-06-16 20:02:10 -04:00
Dominyk Tiller
f1fd1d3d79 tap_migrations: remove gupnp-tools
This formula was moved back to the core in Homebrew/homebrew#40483
2015-06-17 00:12:09 +01:00
Xu Cheng
d9b1fec14f doctor: fix __check_linked_brew
This fixes the case when multiple versions of a formula are installed.

Closes Homebrew/homebrew#40777.
Fixes Homebrew/homebrew#40781.
Fixes Homebrew/homebrew#40797.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-06-16 19:06:52 -04:00
Mike McQuaid
3f9a00dd58 compat/requirements: unduplicate JavaRequirement. 2015-06-16 10:20:16 +01:00
Xu Cheng
0e3c11ea07 doctor: use Formula.installed directly
Before
```
brew doctor  9.83s user 0.52s system 76% cpu 13.563 total
```

After
```
brew doctor  0.25s user 0.16s system 9% cpu 4.332 total
```

Closes Homebrew/homebrew#40770.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-16 16:08:52 +08:00
Mike McQuaid
1e86730289 Rename requirements named *Dependency.
Dependency is another similar, related class and it's super confusing
to have some Requirements that are named *Dependency.

Closes Homebrew/homebrew#38891.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-16 08:12:01 +01:00