Commit Graph
732 Commits
Author SHA1 Message Date
Adam Vandenberg 333f3cf007 doctor: check for all DYLD env vars 2013-03-26 16:19:55 -07:00
Misty De Meo e7f66519dc Hardware: separate out CPU values into CPU module
* CPU functions now exist in Hardware::CPU
* Added compatibility functions in compat/hardware_compat.rb
* Names are less specific to Mac hardware, e.g. CPU.family instead of
  Hardware.intel_family
* Hardware::CPU.family works for both Intel and PowerPC
* New helper methods on CPU, like .sse4? and .altivec?

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-03-23 13:40:18 -05:00
Jack Nagel ee2e2bc74b versions: add debug output 2013-03-21 17:05:02 -05:00
Jack Nagel bf5d55a9d7 versions: remove unnecessary variable 2013-03-21 17:04:54 -05:00
Russell Teabeault 2827daed78 versions: unload constant before calling Formula.factory
Closes #18634.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-21 13:26:56 -05:00
Jack Nagel 79fa588826 Fix brew options --all
Fixes #18625.
2013-03-20 22:32:56 -05:00
Mike McQuaid 5010dca995 brew-info: specify whether poured or built.
- Store in the tab if a bottle was poured for the build.
- Add an additional line of output to `brew info` outputting whether
  the formula was built from source or poured from a bottle.

Closes #18430.
Closes #18475.
2013-03-20 23:06:38 +00:00
Jack Nagel d0c5317207 versions: remove FIXME
I understand how this works now, and it is definitely necessary.
2013-03-18 15:10:37 -05:00
Samuel John 5da30fa1f9 doctor: Tweak git-clean suggestion for empty dirs
git clean -f is not enough. Needs `-d` somtimes to
handle cases when we rename a dir.

Fixes #18544 and fixes #14224
2013-03-18 12:09:15 +01:00
Peter Aronoff 59c0b3f916 Fix brew update so that it doesn't show doubles
Under certain conditions, `brew update` will show doubles. It's a rare
edge-case, but if you have a tap where the name of the formula is identical
with the name of the insalled file, then you see output like this:

    ==> Updated Formulae
    aalib				   ssh-copy-id
    casperjs				   sshuttle
    jack				   telemachus/anytap/brew-any-tap
    mogenerator				   telemachus/anytap/brew-any-tap

I believe this should fix that.

Closes #18495.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-16 16:27:46 -05:00
Adam Vandenberg effea228a3 audit github downloads
We want the new-style "/archive/" downloads.
2013-03-15 15:41:22 -07:00
Tobias Lidskog ad6abf776e audit: Improve url audits.
* Add url check for GitHub home pages using http.
* Add url check for GitHub repo urls using http.
* Include url in error messages about url issues.

Closes #18372.
2013-03-15 15:41:22 -07:00
Adam Vandenberg fa54679a1b doctor: add check for coreutils in path 2013-03-13 10:22:09 -07:00
Adam Vandenberg a75b095fe5 doctor: mess with indentation 2013-03-13 09:45:55 -07:00
Mike McQuaid 2249062526 Revert "Update brew tap to work without 'homebrew-'"
This reverts commit d72901f92b.

References #18366.
Closes #18432.
2013-03-12 17:55:55 +00:00
Peter Aronoff d72901f92b Update brew tap to work without 'homebrew-'
Currently `brew tap` only works on repos with 'homebrew-' in their name.

This version tries the repo name as is and then falls back to try
'homebrew-repo' only if that fails.

I've also tweaked the regex  in tap_args to allow '-' in repo names. The
previous regex required a match on \w. This made it impossible for people
to tap repos with names like 'username/why-not'.

Closes #18366.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-12 12:32:49 +00:00
Mike McQuaid 98047d08c4 Relocate bottles using install_name_tool.
This has two parts:

1. Bottles are temporarily relocated on bottling and tested if that is
sufficient for them to contain no longer reference the prefix or
cellar. If so, they are marked as relocatable.
2. On installation if bottles are marked as relocatable they will be
relocated using install_name_tool to the current prefix and cellar.

Closes #18374.
2013-03-11 18:58:37 +00:00
Misty De Meo 7a7ba86d76 doctor: skip git origin check without brew repo
Likely fixes #18324.
2013-03-11 10:30:08 -05:00
Tobias Lidskog 5da9cd8754 audit: allow ARGV.find
This fixes a false positive for mongodb.

Closes #18370.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-10 12:13:50 -07:00
Jack Nagel 68a271c897 Exclude global pkgconfig dirs under superenv 2013-03-09 14:46:01 -06:00
Tobias Lidskog 4a3158610d audit: correct inverted has_trailing_newline condition
has_trailing_newline? checked if formula did not have a trailing
newline. Invert regex and invert audit check.

Closes #18359.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-09 14:42:51 -06:00
Matt Torok 8488301b37 Added '--installed' option to deps command.
When deps command is passed this option, it will only show the dependencies
for the installed forumas. This option overrides the '--all' option.

Closes #18276.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-05 19:43:12 -08:00
Misty De Meo 56669c1645 tap: adjust formula count for unsymlinked files
Relying on the output of `tapped` results in ignoring formulae which
already exist in core, with messages like "Tapped 0 formula" for
non-empty taps.
2013-03-04 12:12:47 -06:00
Peter Aronoff ebf6ba6ef5 A more helpful error message for brew untap
`brew untap` without arguments currently errors out (as it should), but the
error message is generic and unhelpful. (The error message is borrowed from
a method in the tap command - `tap_args`.)

Closes #18186.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-02 12:11:56 +00:00
Mike McQuaid 1578e1360f cleanup: don't remove old incomplete files twice. 2013-03-02 08:56:58 +00:00
Mike McQuaid 041060e28f Support 32-bit 10.6 bottles.
Closes #17735.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Mike McQuaid 82ecb69a53 Add non-/usr/local bottles support.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Mike McQuaid f99e05bb49 Cleanup bottle DSL.
* Remove legacy url syntax.
* Use revision instead of version.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Misty De Meo 7219530514 doctor: Update Mono pkg-config warning 2013-02-25 11:17:19 -06:00
Mike McQuaid 9e49a9a8ba brew create: use test DSL 2013-02-23 08:42:45 +00:00
Jack Nagel 71524dc44a audit: don't complain about versioned automake depending on autoconf 2013-02-21 16:47:35 -06:00
Jack Nagel 1b6204e52c Silence warning about unescaped square brackets 2013-02-18 12:13:36 -06:00
Jack Nagel 4d341f2115 Don't shadow outer local variables 2013-02-18 12:13:36 -06:00
Jack Nagel 33393a2597 Remove unused variables 2013-02-18 12:13:35 -06:00
Jack Nagel 5a34e80675 Don't use deprecated form of attr
The form "attr :name, true" is deprecated and causes Ruby to emit a
warning in verbose mode. Using attr_{reader,writer,accessor} is more
clear anyway, so do so.
2013-02-18 12:13:34 -06:00
Mike McQuaid 9f2782812c brew-create: don't insert autodetected versions. 2013-02-18 10:42:32 +00:00
Mike McQuaid d2273d3223 brew-doctor: fix autocrlf warning (again).
Closes #17843.
2013-02-18 10:42:14 +00:00
Mike McQuaid 4ed4eee942 Add 'brew reinstall' command. 2013-02-18 10:41:53 +00:00
Mike McQuaid f1748d9f9b brew-update: show upgrade command on formula parameters.
Closes #17814.
2013-02-18 10:40:48 +00:00
Jack Nagel 012c3bca2e info: open history pages for all specified formulae
Closes #17852.
2013-02-16 21:20:17 -06:00
Adam Vandenberg 52b8be1fb0 doctor: make brew link more clear
Closes #17805.
2013-02-12 22:30:49 -08:00
Adam Vandenberg 295d2832a2 search homebrew-x11 2013-02-10 11:15:20 -08:00
Jack Nagel 7806852990 audit: allow alpha.gnu.org URLs 2013-02-07 15:34:13 -06:00
Jack Nagel 41cd32838d audit: check for missing xz build-time dep
Closes #17565.
2013-02-03 14:57:33 -06:00
Jack Nagel 437a30d641 audit: mark intltool as a build-time dep 2013-02-03 14:48:02 -06:00
Adam Vandenberg f52e367213 update: abort if formula names are given
Closes #11154.
2013-02-03 11:53:17 -08:00
Simon Sigurdhsson 34cfc378b5 Make CurlDownloadStrategy resume aborted downloads
* `CurlDownloadStrategy#_fetch` (and the same methods in its
  subclasses) now fetches the file to a temporary path, and
  `CurlDownloadStrategy#fetch` moves it to the correct location.
* `Homebrew#cleanup` cleans the temporary files `CurlDownloadStrategy`
  creates if they're left in the cache.

Closes #13953.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-02 14:05:40 -08:00
Jack Nagel 15d74ebc4c audit: inspect dep name, not dep object 2013-02-02 01:00:46 -06:00
Jack Nagel 15ced99fd3 Refactor fetch
Remove direct references to checksum types, access them through the
Checksum::TYPES constant instead.
2013-02-01 22:17:46 -06:00
Elliot Saba 040bfcf5b2 Update tap --repair function to ignore non-directory files in Library/Taps/
Closes #17518.
Closes #17511.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-01 18:36:38 -08:00