1597 Commits

Author SHA1 Message Date
Max Howell
cd4337f917 README fix ups
The point being to have less duplicate information.

I am updating the wiki and the homepage accordingly.

I am loathe to leave the "what packages are available" lines but I believe
people who are interested in such things are likely to end up at the source
root so it is appropriate.
2011-07-29 11:57:54 +01:00
risk
a10aa12f29 check for a valid $TMPDIR path in brew doctor
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-28 19:50:39 -07:00
Trevor Wennblom
55791d4c10 Coerce flags to an array in remove_make_var!
This is needed for Ruby 1.9.x compatibility, but we still don't support
running Homebrew with anything other than a system provided 1.8.[67].

Fixes Homebrew/homebrew#6546

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-27 17:38:26 -07:00
Samuel Cochran
e3e7831b48 Add MacOS.lion? for MACOS_VERSION == 10.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-27 08:16:16 -07:00
Max Howell
72889ea6a8 Set origin remote URL when updating git clones
Thus the url we use can change.

This only works provided the urls both contain git repos with the same blobs. But this should always be true.
2011-07-27 12:51:16 +01:00
Max Howell
f3702b475b Raise if mirror can’t be determined
Adjust mirror ohai slightly.
2011-07-27 10:56:59 +01:00
Jan Lehnardt
c576f4088c Detect Apache mirror system and parse out the closest mirror.
All Apache Formulae should be updated to use the closer.vgi script
to specify downloads rather than a random mirror that could be out
of date or compromised. Apache's closer.cgi does periodic health
checks.

The base URL for the mirror system is

  http://www.apache.org/dyn/closer.cgi?path=#{filepath}

e.g.:

  http://www.apache.org/dyn/closer.cgi?path=/couchdb/1.0.3/apache-couchdb-1.0.3.tar.gz

Note: The addition of the "Actually downloading..." message is sub-optimal
as the message should probably be emitted in _fetch() rather than fetch(),
but I didn't want to change the way Homebrew works today, so I'm leaving
this for mxcl & team to sort out or adopt :)
2011-07-27 09:48:35 +01:00
Adam Vandenberg
e2b21b0b4a Fix brew doctor when no Xcode is detected. 2011-07-26 16:01:30 -07:00
Jack Nagel
5b06a27e99 doctor: be more forgiving about GREP_OPTIONS
Currently, `brew doctor` complains about GREP_OPTIONS being set,
regardless of its value. The cmake formula, for which this check was
introduced, is more specific about what actually makes it fail.

GREP_OPTIONS='--color=auto' will not cause the build to fail, so don't
warn about this.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-25 16:25:44 -07:00
Brant Bobby
113eaf26e4 Fix typo in brew doctor command
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-22 11:47:13 -07:00
Charlie Sharpsteen
fbff2ee853 Retire check for GCC 4.0 under XCode 4.x
XCode 4.x only includes GCC 4.2. Therefore, having `brew doctor` report that
GCC 4.0 is missing only spreads fear, uncertainty and doubt over a situation
that is status quo.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-21 08:10:33 -07:00
Mike McQuaid
92b9edd34b brew pull --install should build from source. 2011-07-21 10:14:44 -04:00
Mislav Marohnić
f0eab140f8 doctor: don't report wrong location of autoconf if it's missing
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-10 12:18:55 -07:00
Austin Seipp
567711ed74 sandybridge hardware identifier for brew --config
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-05 09:38:41 -07:00
Max Howell
7e1e8efdf4 Fix install names for keg-only brews too
Fixes Homebrew/homebrew#6065. Fixes Homebrew/homebrew#6218.
2011-07-04 09:31:48 +01:00
Max Howell
870f36769e Fix install_name massaging for keg-only brews
Fixes Homebrew/homebrew#6065.

My pre-emptive fix that avoided calling Pathname.ensure_writable because I was not convinced it worked broke this function due to incorrect logic.

The lesson is, don’t write pre-emptive fixes. Wait until you've seen the bug first. All code has bugs in, so write less. I'm an idiot sometimes.
2011-06-28 17:28:37 +01:00
Adam Vandenberg
02b09e311f formula.rb: put bottle attrs on separate line
This line is getting long, and having these on a separate line
will help with some rebasing in some work-in-progress branches.
2011-06-22 14:13:44 -07:00
Mike McQuaid
e9b50941db Print SHA1 after bottling. 2011-06-22 19:11:45 +01:00
Mike McQuaid
eb7c5fa6d7 Fix missing pourable? reference. 2011-06-22 18:00:45 +01:00
Mike McQuaid
2495cdc544 Build from source when we've options or 10.5. 2011-06-22 17:48:20 +01:00
Mike McQuaid
f2e018d747 Return an array from options. 2011-06-22 17:48:20 +01:00
Mike McQuaid
6d3c488d4a Renaming pouring method to pourable?. 2011-06-22 17:48:20 +01:00
Mike McQuaid
bd2fa562c3 Add stub options method. 2011-06-21 22:28:54 +01:00
Mike McQuaid
b7dd6f1f7e Remove redeclared method. 2011-06-21 19:25:39 +01:00
Mike McQuaid
5d7e796617 Only pour bottles when not building from source. 2011-06-21 19:25:39 +01:00
Mike McQuaid
b549ca837f Fix bad pathname indentation. 2011-06-21 19:24:45 +01:00
Mike McQuaid
939a530ddc Make bottle path. 2011-06-21 19:04:18 +01:00
Mike McQuaid
23769d62ad Fix brew bottle versioning. 2011-06-21 19:04:17 +01:00
Adam Vandenberg
c5923168d6 Move -- higher in argument list
A spurious "--" argument was being passed to the installer script.
2011-06-21 07:27:13 -07:00
Adam Vandenberg
77e01d69ec brew-which: also check sbin and lib folders 2011-06-19 22:12:44 -07:00
Adam Vandenberg
440d8ea4c5 Add brew which to man page 2011-06-19 22:00:02 -07:00
Adam Vandenberg
2b9c6def6d which: allow <formulae> args
Also clean-up this external command in preparation
for becoming a built-in command.

Make which_versions available in Homebrew module so
that it can be used by other commands in the future.
2011-06-19 21:58:32 -07:00
Adam Vandenberg
f409e4f22f Pathname: remove unused method starts_with? 2011-06-19 21:34:59 -07:00
Adam Vandenberg
cee1003782 brew-doctor: use String.start_with? 2011-06-19 21:32:54 -07:00
Adam Vandenberg
e6bac8a8ea back-port start_with? from 1.8.7
This allows its use in Leopard, which has Ruby 1.8.6.
2011-06-19 21:32:37 -07:00
Les Hill
0d44609dfb doctor: check /usr/local for writablity
- Airfoil during the install of InstantOn changes /usr/local to
  root:wheel ownership

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-19 09:46:57 -07:00
Max Howell
d661b2be4f Actually reset the permissions 2011-06-17 09:30:25 +01:00
Max Howell
1d606388b4 Show summary headings when appropriate 2011-06-17 09:30:25 +01:00
Max Howell
1587c70357 Don’t output "nothing" messages
This is how we do it in general in Homebrew.
2011-06-17 09:30:25 +01:00
Max Howell
215fcd3292 Fix upgrading libdeps breaking stuff after cleanups
Fixes Homebrew/homebrew#2709.

By forcing dylibs to have an install_name id that is the HOMEBREW_PREFIX path, ie. the symlink’s path. Stuff that links to these dylibs will use this id and thus by immune to upgrades of underlying libraries.

Thus whatever keg is "current" ie. linked, will be the library that is used by the tool.

This fix is not retroactive. So there will still be breakage for existing installations of stuff.

The fix_install step in install is moved after the link step as the symlinking
is required to determine the eventual ids for each dylib.
2011-06-17 09:30:25 +01:00
Max Howell
527c841f1c Fix make_relative_symlink when names differ
Before we would always make the symlink itself have a basename the same as what it pointed to.

I don’t think this breaks any of the other usages as they were working by coincidence.
2011-06-17 09:30:25 +01:00
Adam Vandenberg
153c1c759b Add --use-clang to completion script. 2011-06-16 20:58:06 -07:00
Adam Vandenberg
e8ebd6756e Add clang options to man page. 2011-06-16 20:58:06 -07:00
Adam Vandenberg
be63ae9b14 Inclue HOMEBREW_USE_CLANG in --env output 2011-06-16 20:58:06 -07:00
Adam Vandenberg
3977beb8ed Make these methods on ENV. 2011-06-16 20:58:05 -07:00
Adam Vandenberg
7a9c72cf62 Allow HOMEBREW_USE_CLANG env var 2011-06-16 20:58:05 -07:00
José Martínez
d1aac6bc03 Allow --use-clang to override fails_with_llvm
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 20:45:56 -07:00
José Martínez
2763fc6f5a Add clang compiler option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 20:45:52 -07:00
Adam Vandenberg
ea35d749af be more ruby-like 2011-06-16 20:35:09 -07:00
Adam Vandenberg
00b7e07f45 audit: check for redundant 'version' 2011-06-16 20:31:55 -07:00