Commit Graph
557 Commits
Author SHA1 Message Date
Adam Vandenberg 9670e0ebcc Extract "brew_install".
This was supposed to go in with the "brew-upgrade" external command,
but must have been lost in the merge.
2010-06-23 12:59:02 -07:00
Patrick Walton fe0dffe843 Create explicit folders for more language libs. 2010-06-23 11:31:52 -07:00
SHIBATA Hiroshi 78090f14ec Exclude "HEAD" formula from outdated list. 2010-06-22 16:19:08 -07:00
Paul O'Neil 344cb2f710 cleans only existing directories
The previous code works fine on ruby 1.8.x, but under 1.9 trying
find on a non-existent folder gives:
  ==> No such file or directory
  /usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/1.9.1/find.rb:38:in `block in find'

Fixes #1633
2010-06-18 21:11:43 -07:00
Brett Cannon 6d89ebb66b Fix LLVM compilation under OS X 10.6 where cflags was not being defined.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Unshare code between ENV.llvm and ENV.setup_build_environment
2010-06-18 16:32:19 -07:00
Adam Vandenberg 79634fe308 Note how to redownload tarballs on failed checksum.
Fixes #659
2010-06-18 14:16:20 -07:00
Adam Vandenberg 9dc15bc563 Remove buggy, unsupported TeX-live brew, and suggest MacTex.
The TeX-live 2008 formula was out of date (there's a 2009), buggy,
and doesn't build 64-bit.

The MacTeX package works and is supported, with a 2010 version in the works.
Let's recommend that instead.

Fixes #1087
2010-06-17 21:33:14 -07:00
Adam Vandenberg 017862f684 Remove unused global define 2010-06-17 16:53:17 -07:00
Adam Vandenberg d0962a583d Bug fix for METAFILES that are actually directories.
If a package contains a folder that has the same name as one of our
expected meta files, skip trying to install that folder.

(Otherwise we install an empty folder and can get odd permission errors
when trying to summarize after install.)
2010-06-17 16:35:40 -07:00
Adam Vandenberg 2c8a24b87f Tweak "clean".
The code to try to move man into share didn't seem to be working, since
the code that warns if a top-level man was found was firing off.

Removing this apparently dead code.
2010-06-17 12:40:58 -07:00
Adam Vandenberg 8bd0f736ea filter out aliases when real name was found 2010-06-17 11:42:24 -07:00
Adam Vandenberg 66a98d9d23 Extract search_brews method 2010-06-17 11:42:24 -07:00
Chris Hoffman 74c092fc35 Refactor llvm compiler selection so formula can use it
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-17 09:39:55 -07:00
Chris Hoffman fb490ae87d Fix exception when installing with --use-llvm
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-17 09:39:41 -07:00
Adam Vandenberg 1f90682753 Use same LLVM binary to check build # as we do to build with.
Different llvm binaries were used to check build numbers and to compile with.
Normalize this, and normalize the variable name used to hold the xcode location.
(Calling it "prefix" is confusing, since there are already concepts in Homebrew
called "prefx".)
2010-06-16 13:32:09 -07:00
Adam Vandenberg c5d56bc501 Add "fails_with_llvm" to formula to document LLVM build breaks.
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm",
to specifically message to the user when a formula is known or suspected
to not build with LLVM. If the user specifies "--use-llvm", the message
will be displayed, but compilation will be tried anyway.

Since using LLVM is now an advanced/hidden feature instead of the
default on 10.6, we'll let the user try anyway (and submit patches
if things are now working.)
2010-06-16 11:50:36 -07:00
Adam Vandenberg 14946db06c Move code to find outdated brew list 2010-06-16 09:52:20 -07:00
Trevor Stevens c134c8f9fa Modify brew update to show if any formulae were removed. 2010-06-15 21:45:56 -07:00
Adam Vandenberg b5255849a8 External: 'brew fetch' downloads tarballs to cache. 2010-06-15 12:38:04 -07:00
Adam Vandenberg 6a342c7038 Set HOMEBREW_DEBUG_INSTALL when in a shell during install -d|-i
When an "install -d formula" fails, and the user gets dropped into an
interactive shell, set the HOMEBREW_DEBUG_INSTALL env var to the name
for the formula that failed. Also set variable if the user requests an
interactive install in the first place.

Note that this may be different than the formula being installed, since
it may have been a dep that failed.

Also remove todo in utils; users can now look for HOMEBREW_DEBUG_INSTALL
in their prompt command, and adjust their prompts accordingly.
2010-06-15 08:09:58 -07:00
Adam Vandenberg a05a0d85ad Fix: attr doesn't take a list. 2010-06-10 19:39:15 -07:00
Adam Vandenberg 4d94667e29 Added check for stray 'config' scripts in $PATH.
If the user has, for instance, a non-system "xml2-config" in the path
ahead of the system and Homebrew folders, ./configure scripts which
look for and use this config script will get confused.
2010-06-10 16:25:59 -07:00
Adam Vandenberg 7a12e2c398 Failures during ./configure should mention config.log. 2010-06-10 12:57:51 -07:00
Tuncer Ayaz 281a08ec93 MercurialDownloadStrategy: pull and update instead of update only 2010-06-10 12:57:20 -07:00
Tuncer Ayaz efa937452c MercurialDownloadStrategy: pull and update instead of update only 2010-06-10 12:30:47 -07:00
Adam Vandenberg cb0c551903 Subversion now supports revisions on externals.
A formula using svn can now provide a spec:
    :revisions => {...revision numbers...}
that contains a mapping of revision numbers to use
for externals.

The name of the external is keyed to the revision to
use for that external.

The symbol :trunk should be used to specify the reivsion
of the main repo.

An example from the Ffmpeg formula:
    head 'svn://svn.ffmpeg.org/ffmpeg/trunk',
        :revisions => { :trunk => 22916, 'libswscale' => 31045 }

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-08 12:36:03 -07:00
Fergal Hainey 42f5993fed More efficient SVN download that handles externals
Now makes use of `svn up` to make cache act like
a cache. Externals without a revision specified
are now checked out at HEAD, whereas before they
were ignored. Escaping arguments to backticks.
Making sure main repo is checked out before the
externals.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-08 12:35:31 -07:00
Adam Vandenberg 3d61db8462 Add --cache support to hg and bzr. 2010-06-07 14:15:45 -07:00
Adam Vandenberg 82c8421f09 Add cache location support to CVS.
This allows formulaes which use CVS to support:
  brew --cache [formula]
2010-06-07 10:01:15 -07:00
Adam Vandenberg 2764fbd6f4 Split patching message into downloading and patching 2010-06-01 20:49:10 -07:00
Adam Vandenberg 012dcfd13f Don't symlink lib/python2.6
Like pkgconfig, perl5 & php, we don't want any one formula to "own" the
lib/python2.6 path.

Fixes #1218.
2010-06-01 18:09:44 -07:00
Adam Vandenberg c318c598d2 Warn if a keg-level "man" is found.
Homebrew expects manpages to be linked in shared/man/...
and not man/...
2010-06-01 16:25:35 -07:00
David Porter 3a7a3619f7 Fix the update tests
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-12 09:20:15 -07:00
Adam Vandenberg ea8ebf7899 Improve archs_for_command
* Work on commands or dylibs
* Use an extension for the list of arches
2010-05-10 20:40:16 -07:00
Adam Vandenberg 2f66b19e56 Allow SVN to report cache location. 2010-05-07 10:38:48 -07:00
Adam Vandenberg 63bc05379a Move dump_build_env to utils and use during installs too. 2010-05-06 07:23:59 -07:00
Adam Vandenberg 7d065840de Let GitDownloadStrategy report its cache location. 2010-05-05 21:20:11 -07:00
Adam Vandenberg 990b16a768 Merge keg_only? blocks in installer. 2010-05-02 18:12:48 -07:00
Adam Vandenberg 59591e48b0 Tweak formatting in previous commit. 2010-05-02 16:53:26 -07:00
Yarrow 28a2879b60 Show digest mismatch in verify_download_integrity
Report "Expected <supplied digest>, got <file's digest>"
when verify_download_integrity sees a mismatch.  (It had
been, confusingly, reporting "Expected <file's digest>".)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-02 15:49:50 -07:00
Adam Vandenberg 88468879c8 Add check for gettext to brew_doctor.
If the user has linked the keg-only gettext, then a large number
of formulae which don't have "depends_on 'gettext'" will pick it
up anyway. Knowing this about the user's setup may help diagnose
bug reports.
2010-05-01 10:50:14 -07:00
Adam Vandenberg ac730f2c8a Update gcc version checks in brew_doctor
brew_doctor's gcc version checks wasn't taking into account the case
where the user doesn't have one or both of GCC 4.0.x and 4.2.x installed.
2010-05-01 09:02:18 -07:00
listrophy a4e6393408 Add 'Arrandale' for core i7 MBP
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-29 11:51:05 -07:00
Adam Vandenberg ee8c805b65 Fix universal builds on 32-bit CPUs. 2010-04-22 17:23:59 -07:00
Adam Vandenberg 53f4316a8b Add --git option to 'brew install -i'.
This allows for easy generation of diffs, per a trick in
http://wiki.github.com/mxcl/homebrew/formula-cookbook
2010-04-22 10:41:40 -07:00
Adam Vandenberg 12c98c9a5b brew doctor now checks pkg-config search path
Homebrew's pkg-config didn't originally add X11 to its search path.
This causes problems for long-time Homebrew users brewing software
that depends on X11-related packages, such as Cairo.
2010-04-20 12:22:51 -07:00
Adam Vandenberg a27864d054 Read all formula in a 'rescue' block.
For operations that read all formulae, catch exceptions and
skip broken ones, rather than bomb out entirely.
2010-04-17 09:34:03 -07:00
Adam Vandenberg a680b66fc4 Do not assume /Developer when checking LLVM. Fixes #1160. 2010-04-15 13:07:59 -07:00
Adam Vandenberg 63f75fbe19 Use Array#length instead of count. Fixes #1165 2010-04-12 13:09:51 -07:00
Adam Vandenberg d4866a19e2 Make mod_wsgi and mod_python arch code more similar. 2010-04-12 11:22:47 -07:00