70 Commits

Author SHA1 Message Date
Max Howell
400507b18a Pathname./ because it looks a lot better than + 2010-09-12 21:57:17 +01:00
Adam Vandenberg
ef1f45fbc3 Document brew options 2010-09-08 05:27:09 -07:00
Adam Vandenberg
e1af735d77 ENV.rb - style tweak 2010-09-07 10:09:22 -07:00
Adam Vandenberg
53cf7e843b Add ENV.ldflags and use. 2010-09-06 11:48:21 -07:00
David Höppner
6907bdae01 Update help options 2010-09-04 12:48:37 +02:00
lukas
bd6fb10361 Fixed recognition of versions like 'foobar-4.50-beta' in Pathname#version
Sphinx currently has a download name 'http://sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz', which homebrew currently can't correctly identify - with a small change to the regex for 'foobar-4.5.0-beta1' (make that trailing number optional) - it works like a charm.

Signed-off-by: David Höppner <0xffea@gmail.com>
2010-08-27 17:53:06 +02:00
Adam Vandenberg
157425cc10 Move method back to Pathname. 2010-08-15 17:17:26 -07:00
Adam Vandenberg
7c2841543d Tweak ARGV.usage 2010-08-11 21:15:59 -07:00
Adam Vandenberg
c5a9520310 ENV.rb - add ENV.cflags 2010-08-10 08:30:11 -07:00
Adam Vandenberg
5d58d99d10 ENV.rb - style cleanups 2010-08-10 07:58:08 -07:00
Adam Vandenberg
80c090aaae Remove redundent line and reword comments slightly. 2010-08-09 21:03:29 -07:00
Brent Fitzgerald
d85ff377f3 Changing the magic &:downcase back to regular block.
Fixes Homebrew/homebrew#2089

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

(This is needed for 10.5 support.)
2010-08-08 18:26:13 -07:00
Adam Vandenberg
013fe4bf38 Move Pathname.starts_with? into Pathname 2010-08-08 09:13:27 -07:00
Adam Vandenberg
e2f0e1a26f Resolve aliases in 'brew edit'. 2010-08-07 22:15:29 -07:00
Adam Vandenberg
57bbeb3bd7 Put /usr/X11/bin in PATH when requesting X11. 2010-08-07 18:08:52 -07:00
Adam Vandenberg
f990f083e8 ARGV - rename method that conflicts with optparse
optparse adds an "options" method to ARGV, and so does Homebrew.
Rename this method (and remove optparse blocking script) so that
Homebrew plays nicer with external Ruby software.

This fixes the issue where "gem install thin" would break
"brew server", for instance.
2010-08-07 18:08:51 -07:00
Max Howell
28504229aa Resolve aliases in ARGV extension.
* This allows most brew commands to automatically accept aliases.
2010-08-07 18:08:49 -07:00
Adam Vandenberg
5f5f820d12 Add Pathname.resolved_path 2010-07-25 12:07:35 -07:00
Adam Vandenberg
21c37fbac6 Add ARGV.build_head? and use it.
This allows both "--HEAD" and "-H" to be used consistently, which was the
intention in the first place.
2010-07-16 09:09:39 -07:00
Adam Vandenberg
b5ba49b90e Usage should mention manpage. 2010-07-09 12:16:06 -07:00
Adam Vandenberg
a6b6de63a9 Move method from ObserverPathnameExtension to extend/Pathname
* This method is generally useful, even without the Observer extensions.
2010-07-08 22:41:50 -07:00
Adam Vandenberg
375f8094d3 Add debian style names to version checker. 2010-07-06 13:17:50 -07:00
Adam Vandenberg
350aea60dc Pathname - fix RC version detection. 2010-07-04 14:10:04 -07:00
Adam Vandenberg
7d852f10a7 Update Pathname version checks.
* allow capital 'RC'
* allow 'stable' suffix
2010-07-04 11:02:54 -07:00
Brett Cannon
3a97b2cf67 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
Chris Hoffman
6aeb848bd8 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
154d0fa92d 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
2dbc6b977f 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
7c158e2350 Fix universal builds on 32-bit CPUs. 2010-04-22 17:23:59 -07:00
Jake Good
8ce7abce73 More hashing refactoring to work with byte chunks
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-30 09:24:12 -07:00
Joshua Peek
04855ddd48 fix github version parser with multidigit number
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-27 14:01:19 -07:00
Jake Good
9fbc26a39f More effective use of incremental MD5 to eliminate loading entire tarball into memory
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-23 21:23:25 -07:00
Adam Vandenberg
9cf7845015 Bug fix: gcc_4_0_1 wasn't removing sse4 flags correctly. 2010-03-17 15:33:37 -07:00
Adam Vandenberg
1e7a71bfef Change the return value of Pathname.install.
The change to Pathname to support renaming changed the return value.
This commit puts it back, so the associated unit test passes again.
2010-03-08 23:42:01 -08:00
Max Howell
99df82c568 Fixes Pathname.install(:foo => :bar) to work when File.exist?(:bar) 2010-03-07 11:24:22 -08:00
Adam Vandenberg
3927972a2a Allow Pathname.install to take a Hash.
The keys of the hash are original file names, the values are new file
names. Originals are renamed, and then installed under the new name.
2010-03-07 11:24:22 -08:00
Max Howell
799dd7108e String.undent for prettier HEREDOCs 2010-03-07 17:57:05 +00:00
Adam Vandenberg
a9b19f0255 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -08:00
Max Howell
1dfab1350a Add outdated to brew help
Also rearrange and alphabetise.
2010-02-27 16:06:05 +00:00
Max Howell
991bae91a9 Pathname.subdirs and Pathname.cd{} 2010-02-27 12:29:45 +00:00
Max Howell
1149b082bb We need to set CC and CXX for many formula
Fixes Homebrew/homebrew#807; Fixes Homebrew/homebrew#808
2010-02-24 15:13:20 +00:00
Max Howell
786775152e 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
8cdb504b14 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
e0999078dc Fix GitHub tarball version detection 2010-02-18 11:59:29 +00:00
Aleksandar Topuzović
2e3585872b Set correct LDFLAGS for universal binaries
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-13 17:21:42 -08:00
Adam Vandenberg
07adef4954 ENV.cxx was not retrieving proper ENV flag. 2010-02-08 14:23:01 -08:00
Ben Bleything
e4b60cd3cd 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
3bf6c5f9c9 Document brew cleanup 2010-01-18 08:36:10 +00:00
Florian Sowade
056851463e 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 Homebrew/homebrew#242
2010-01-14 09:41:06 +00:00
Max Howell
2037b2373a Use less lengthy path to llvm binaries 2010-01-13 11:23:15 +00:00