Commit Graph
438 Commits
Author SHA1 Message Date
Max Howell c4decd76fb String.undent for prettier HEREDOCs 2010-03-07 17:57:05 +00:00
Adam Vandenberg ee1e326fc0 REVERT SubversionDownloadStrategy change.
Change 45ce0c963a was done in error.
This submit reverts that change (which will go in a future commit.)

I apologize for the inconvenience.
2010-03-01 14:14:07 -08:00
Adam Vandenberg e182e5f5b7 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -08:00
Fergal Hainey 45ce0c963a Improvements to new SubversionDownloadStrategy
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.
2010-03-01 09:59:25 -08:00
Max Howell 16d7915186 Add outdated to brew help
Also rearrange and alphabetise.
2010-02-27 16:06:05 +00:00
Max Howell 4e772f2a34 Pathname.subdirs and Pathname.cd{} 2010-02-27 12:29:45 +00:00
Andre Arko 0d4933ba6f Add support for external ruby deps, and fix external deps system.
Kernel#system special-cases the first argument, so you have to
make the first argument the entire command to be invoked, and
subsequent arguments the actual arguments to that command. In
order to use the user's interpreter, the first argument must be
"/usr/bin/env <name>".

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-25 09:17:00 -08:00
Adam Vandenberg 2c7b412c2a brew --cache [formula]
This developer-oriented command lets you ask Homebrew what the cached
filename will be for a brew's tarball.
2010-02-24 11:15:12 -08:00
Max Howell 6d90495ef1 We need to set CC and CXX for many formula
Fixes #807; Fixes #808
2010-02-24 15:13:20 +00:00
Martin Kuehl 74e78487d5 Fix brew cleanup: don't bail out early
Running `brew cleanup` (with no arguments or multiple arguments) raises
an error and stops as soon as it finds any formula whose most recent
version is not installed.

With this change it will instead print a warning, then continue with the
next formula.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-20 22:59:24 -08:00
Max Howell aa60875397 Fix inreplace barfing over Pathnames
This fix should be fairly tolerant of types.
2010-02-20 02:07:51 +00:00
Max Howell d0f9df83c8 No longer compile with LLVM by default
Justification:
* LLVM is too immature, it often fails to compile, sometimes irreproducibly
* The performance of the resulting bytecode is often slower than the GCC
  equivalent (eg MySQL)

If you want to continue using LLVM you can. Set HOMEBREW_USE_LLVM or brew with
--use-llvm.

We also now use the default compiler for each platform. So GCC 4.2 on Snow and
GCC 4.0 on Leopard. This also means that new formula are more likely to just
work as many over complicated build systems get upset when you mix things up.

I also did a bunch more new research regarding compiler flags. We now set the
right -march for nehalem procs and don't add redundant flags like msse3 (which
is automatically applied for all the -march settings we use).

Reducing the number of cflags will improve the overall reliability of our
platform.
2010-02-19 17:50:23 +00:00
Max Howell a47ddd8868 Allow inreplace to operate over arrays
I like that String.each is interchangeable with Array.each :)
2010-02-19 17:34:40 +00:00
Max Howell bc76879a64 Fix Pathname.install for relative symlinks
If you have a bunch of symlinks and they all point at one file and you use Pathname.install on them all the error checking would fail if the file was moved before the symlinks because the symlinks would then point at a non existent file.
2010-02-18 17:16:02 +00:00
Max Howell 3fcc55d90d Fix GitHub tarball version detection 2010-02-18 11:59:29 +00:00
Graham Hughes 02710c4a6a Don't merge flags in checkout-index
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-16 15:25:28 -08:00
Martin Kuehl 73264f4396 Fix brew cleanup: less pruning
Running `brew cleanup` (with no arguments or multiple arguments) will
run `brew prune` after _every_ cleaned formula, i.e. possibly after
every installed formula.

With this change it will instead only run `prune` after all formulae are
cleaned, and only when no arguments were given to `cleanup`.

Signed-off-by: Max Howell <max@methylblue.com>

Closes #743
2010-02-16 22:52:18 +00:00
Aleksandar Topuzović f6dced5805 Set correct LDFLAGS for universal binaries
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-13 17:21:42 -08:00
Max Howell c3f32fef70 Fixes #571; brew update doesn't report "Already up-to-date" 2010-02-13 13:12:40 +00:00
Adam Vandenberg 88beb21b72 remove_make_var! should not leave an empty assignment 2010-02-09 09:21:25 -08:00
Adam Vandenberg 78f17f2d9f ENV.cxx was not retrieving proper ENV flag. 2010-02-08 14:23:01 -08:00
Adam Vandenberg 85c8c5c630 Add formula check for crufy SourceForge URLs. 2010-02-04 17:29:47 -08:00
Adam Vandenberg 8d02ae7431 Update test suite.
* Break single test case class into several test cases.
* Fix broken arch test.
* Make update tests optional (seem to only work for mxcl).
* Add more tests.
* Move fixtures to separate folder.
2010-02-02 09:08:10 -08:00
Adam Vandenberg e828256d51 Let change_make_var! append to existing value.
To existing flag value can be specified with "\\1".
To append values to a flag, call with:
    s.change_make_var! "THE_FLAG", "\\1 more-flag-values"

The same trick can be used to prepend or surround values as well.
2010-02-02 08:57:56 -08:00
David Höppner 38e1ee4b2f Bazaar download strategy 2010-02-02 13:43:44 +01:00
Adam Vandenberg 0d70c7b156 Create Download Strategy sooner in formula install code.
* Instantiate DownloadStrategy instance when creating a formula.
* Rename CurlDownloadStrategy member to clarify what it is for.
* Generate downloaded tarball name in initialize.
2010-02-01 12:50:16 -08:00
Adam Vandenberg df1e55a62b Remove spaces around make-style variables.
Removing the spaces around equals for make-style variables makes
the change_make_var! method compatible with shell scripts as well
as makefiles.
2010-01-30 22:48:44 -08:00
Adam Vandenberg ef69db2e3d Add gzip utility function. 2010-01-30 10:39:56 -08:00
Ben Bleything 5fd7b662ae remove the nonexistant list --brewed flag from the help output.
Resolves mxcl/homebrew#158.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-01-29 23:48:46 -08:00
Max Howell c315e8fc79 If keg only don't warn about s?bin not being in PATH
Fixes #488.
2010-01-18 09:12:48 +00:00
Max Howell f30d1d7e4d Document brew cleanup 2010-01-18 08:36:10 +00:00
Max Howell 855074839d prune after brew cleanup
Stale symlinks may exist, so we may as well fix them up at this juncture.
2010-01-18 08:34:11 +00:00
Max Howell 5816173b10 Don't cleanup if we can't tell which formula is for keeps
If the formula was updated and not yet installed, then cleanup would delete all kegs. Which is most likely not what the user wanted.

Ideally we'd do a version check to figure out which keg is newest. But we don't yet have a function that can determine with accuracy version order.
2010-01-18 08:34:11 +00:00
Joshua Peek 8585a7598e Unit test for brew cleanup 2010-01-18 08:27:55 +00:00
Joshua Peek ffd39835ec Add cleanup command
* `brew cleanup foo` removes any unlinked foo kegs
* `brew cleanup` removes all unlinked kegs
2010-01-18 08:27:50 +00:00
Max Howell daf2239060 Don't require beer_events
RubyCocoa is a large dependency, and any large system can cause unexpected errors. In this case the user's system was badly setup and RubyCocoa caused a dynamic loader issue.

We don't use beer_events currently due to other bugs that occurred sporadically with its use. So requiring it is unnecessary. So lets save ourselves trouble.

Fixes #487
2010-01-17 20:56:24 +00:00
Max Howell f2dcec1f70 Stop raising during the raise ctor 2010-01-16 20:25:50 +00:00
Max Howell 2387c7e236 There's not enough payback for stripping libraries
It causes lots of bugs, for the sake of what is often just a few kilobytes.
2010-01-16 19:06:26 +00:00
Max Howell d1c3800be4 Blacklist wxwidgets for creation 2010-01-16 15:40:14 +00:00
Max Howell c2879d1081 Check for bad values of console_width
Fixes #453.
2010-01-16 13:12:38 +00:00
Florian Sowade a4ba5b6bf6 Added CMAKE_PREFIX_PATH to environment valriables
CMake ignores the CPPFLAGS and LDFLAGS environment variables. This makes sure CMake finds libraries when homebrew is not installed at /usr/local.

Signed-off-by: Max Howell <max@methylblue.com>

Fixes #242
2010-01-14 09:41:06 +00:00
Florian Sowade 1d45abdaff Added CMake parameter to suppress warnings
The -Wno-dev CMake parameter suppresses warnings
meant for the developer, not the user.
2010-01-14 09:40:20 +00:00
Ash Berlin d59e8f6658 Improve error when no url given 2010-01-13 13:33:43 +00:00
Max Howell 1958bd9df6 Support Perl/CPAN external dependencies
WhoHas requires LWP::UserAgent.
2010-01-13 11:56:23 +00:00
Max Howell bbddc7dd9f Adds: depends_on 'simplejson' => :python
So far we only added python, but we can add more.

Fixes #401
2010-01-13 11:23:15 +00:00
Max Howell 338b4f44ee Add quiet_system
Same as Kernel.system, but prints no output.
2010-01-13 11:23:15 +00:00
Max Howell 4f111dfd9a Print quotes around executed arguments with spaces
Eg: ['foo', 'bar la'] -> "foo 'bar la'"
2010-01-13 11:23:15 +00:00
Max Howell 68074dc535 Use less lengthy path to llvm binaries 2010-01-13 11:23:15 +00:00
Max Howell 35fa08110b Ensure we delete temp files
It's easy to code complete with Ruby, so lets. I love Ruby.
2010-01-13 11:23:15 +00:00
Max Howell 158598f049 Escape any spaces in path during strip step
Not using path.basename for mktemp due to risk of bugs due to incorrect escaping. But mainly, mktemp gives a unique name and this operation is procedural.
2010-01-13 11:23:15 +00:00