Commit Graph
41 Commits
Author SHA1 Message Date
Jake Good 404cc2b4b4 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 74ec7a12fa 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 3eb6c617da 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 7899a6206a Bug fix: gcc_4_0_1 wasn't removing sse4 flags correctly. 2010-03-17 15:33:37 -07:00
Adam Vandenberg 8eefb17e2c 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 1104bda928 Fixes Pathname.install(:foo => :bar) to work when File.exist?(:bar) 2010-03-07 11:24:22 -08:00
Adam Vandenberg fabb640b06 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 c4decd76fb String.undent for prettier HEREDOCs 2010-03-07 17:57:05 +00:00
Adam Vandenberg e182e5f5b7 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -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
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
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 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
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
Adam Vandenberg 78f17f2d9f ENV.cxx was not retrieving proper ENV flag. 2010-02-08 14:23:01 -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 f30d1d7e4d Document brew cleanup 2010-01-18 08:36:10 +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
Max Howell 68074dc535 Use less lengthy path to llvm binaries 2010-01-13 11:23:15 +00:00
Adam Vandenberg 79766ede79 Detect X11 when ENV.x11 is requested; dump in --config. 2010-01-11 11:36:35 -08:00
Max Howell fc3915c4c9 Use full path to du
Fixes #354
2010-01-06 21:02:36 +00:00
Max Howell 270a1bcd9b Pathname.md5 method 2009-12-30 20:49:16 +00:00
Adam Vandenberg 4dcd83e6fe Also match -source tarballs. 2009-12-17 19:19:33 +00:00
Max Howell f6d0acfe59 Remove redundant cflags
-fomit-frame-pointer is included for any optimisation level above O2 (including Os)

Setting MACOS_DEPLOYMENT_TARGET is unecessary if you are just setting it the same as the OS X you are running.
2009-12-02 12:17:14 +00:00
Max Howell 7694ac6f5b Alias gcc_4_0_1 to gcc_4_0
This is what we did for gcc_4_2 after all.
2009-12-02 10:39:06 +00:00
Max Howell 7b2bef79f0 When not installed to /usr/local use -isystem
This means our include directory is prioritised above all -I but after all other system directories. This is how it should be.

Also helps fix #113.
2009-12-01 12:07:34 +00:00
Max Howell 1e449297d2 Don't error out if .DS_Store is in a keg 2009-11-09 17:55:06 +00:00
Max Howell fc7d19059f List --HEAD/-H in brew usage 2009-11-08 15:21:14 +00:00
Max Howell 31da77b51b Fix ENV.m32 when LDFLAGS already exists 2009-11-07 18:22:34 +00:00
Max Howell 85704f0a55 Raise if ARGV.next is out of bounds 2009-11-07 18:22:33 +00:00
Max Howell ec8c3b9a35 Slightly better ARGV.usage for contribution 2009-11-07 18:22:33 +00:00
Max Howell 1b066d77bf Better errors if missing keg or formula arguments 2009-11-07 18:22:33 +00:00
Max Howell 39b392dfb4 Don't throw if named.empty?
Generally this isn't desired or useful.
2009-11-07 18:22:33 +00:00
Max Howell f13eb162ce Fixes #106; Don't downcase ARGV.named 2009-11-04 16:27:37 +00:00
Max Howell 94ebfa0aa9 ENV.m32 2009-10-23 19:20:16 +01:00
Max Howell 8210dcfb0c ENV.osx_10_5 2009-10-23 19:20:16 +01:00
Adam Vandenberg e072ea2fc9 Add separator param to ENV.append (to match prepend.) 2009-10-21 11:50:37 -07:00
Max Howell 9d5e0cea34 ENV.universal_binary
Note, we still don't support PPC, this builds a 32 bit, 64 bit binary.
2009-10-19 13:48:33 +01:00
Max Howell 0b192930f0 Some subdirs and renames to aid homebrew n00bs
The classes better reflect their contents. I'm sure this change may be
contentious, but I am a sucker for trying to create source bases that are easy
to get to grips with and easy to navigate.

brewkit.rb is now a deprecated file.
2009-10-15 16:51:53 +01:00