475 Commits

Author SHA1 Message Date
Adam Vandenberg
ef88db9d38 Nehalem supports SSE4.2
Signed Off By: Max Howell <max@methylblue.com>

I realised that -msse4.1 and -msse4.2 aren't supported by GCC 4.0, so I made
the brash decision that we require GCC 4.2. It comes with Xcode 3.1 so people
can upgrade if they have to.

Requiring a single compiler is better for us anyway -- less possible errors
and failures.

Formulae can still request gcc-4.0.1, but at least then those formulae still
only use a single compiler and not possibly two.
2009-09-04 18:54:43 +01:00
Bjørn Arild Mæland
8b1b3d2a97 Sort the output from brew install 2009-09-04 16:14:51 +01:00
Max Howell
d11165cd97 Fixes Homebrew/homebrew#30 -- GCC can't create executables
The fix is to error out if GCC isn't installed, and to ensure we aren't
setting CC and CXX to something that doesn't exist.
2009-09-04 15:54:27 +01:00
Max Howell
a12569699e Fix some "GCC cannot create executables"
This regards Issue Homebrew/homebrew#30.

Turns out -march=native isn't supported by Apple's GCC, but while investigating it I found they'd back ported the -march=core2 option, so we win anyway.

Logic reverted to how it was yesterday.

I moved the gcc options stuff back to brewkit.rb as we manipulate the cflags more later and it seemed bad form to split the logic for this area over two files.

Additionally the brew command exits immediately on powerpc now. Brewkit doesn't throw as theoretically it is a useful library file for other projects.
2009-09-03 22:39:49 +01:00
nmeans
91d9a707b6 Fixes HOMEBREW_PRFIX when brew is outside $PATH
If brew is called with an explicit path, eg. './bin/brew',
HOMEBREW_PREFIX is set to an empty string resulting in failure of all
brew commands using HOMEBREW_PREFIX. This commit forces Pathname to
compile an absolute path, setting HOMEBREW_PREFIX correctly.
2009-09-03 00:26:02 +01:00
Max Howell
4f8c46d627 Only time the build, not the download too 2009-09-02 15:44:10 +01:00
Max Howell
fbda4b45d6 Build optimisations for 64 bit Snow Leopard
Specifying -v/--verbose shows the build environment before the build

MACOS_VERSION contains the floating point value of the OS X version

A test for some floating point assumptions I make
2009-09-02 15:07:18 +01:00
Ben Alpert
8b64f33eb2 Fix brew when using sudo
The PWD environment variable is apparently not set for root.

Signed Off By: Max Howell <max@methylblue.com>

I removed the Dir.chdir line altogether as it was a hacky solution to an issue
in Ruby that I encountered a lot during early development, ie. I'd brew rm
while working directory was set to that keg.
2009-09-01 10:35:07 +01:00
Eloy Duran
c1cc986347 Reference the full path to the `brew' bin. 2009-08-31 13:48:19 +02:00
Max Howell
a9d7b9e2ac Don't lower case arguments to brew make
Fixes Homebrew/homebrew#21
2009-08-30 15:01:36 +01:00
Max Howell
65cb8ea09f brew unlink command
Closes Homebrew/homebrew#8
2009-08-29 21:07:26 +01:00
Max Howell
f7d8003f3b brew install lists available install options
brew install without additional arguments that is.
2009-08-29 18:46:31 +01:00
Adam Vandenberg
bf8071f0aa Use alternate Cache for root user. 2009-08-29 13:30:34 +01:00
Max Howell
88ad8b9af6 brew ls with no further ARGV lists all installed kegs 2009-08-24 01:04:53 +01:00
Max Howell
e7594de797 Allow configure alias for diy 2009-08-24 01:04:53 +01:00
Max Howell
140bfc5592 brew diy command
Automagically determines prefix to install to for DIY installations.

README amended.
2009-08-12 13:43:51 +01:00
Max Howell
0fb03b5516 Error out if the host OS X is too old 2009-08-12 02:01:47 +01:00
Max Howell
5752dd23ed Only show full exception bt for --debug or -d
I agree with Adam, this makes sense.
2009-08-11 18:17:11 +01:00
Max Howell
3b262d0b23 Raise if ARGV.named and no named arguments 2009-08-11 00:27:18 +01:00
Max Howell
f724f5ed52 Ensure ENV is pristine for each installation
Because we modified the ENV global each install this propagated to consecutive
formulae. So exec a new brew process each install. This is the safest way
although Ruby exceptions don't propagate to the parent process so I worry
about it somewhat.
2009-08-10 18:11:23 +01:00
Max Howell
69c076e741 ohai takes multiple parameters
Will not show any of the block if the 1st additional parameter is nil
2009-08-10 18:11:23 +01:00
Max Howell
760c083c0c Refactor
Large refactor to Formula, mostly improving reliability and error handling but
also layout and readability.

General improvements so testing can be more complete.

Patches are automatically downloaded and applied for Formula that return a
list of urls from Formula::patches.

Split out the brew command logic to facilitate testing.

Facility from Adam Vandenberg to allow selective cleaning of files, added
because Python doesn't work when stripped.
2009-08-10 18:11:17 +01:00
Adam Vandenberg
cae0e78e60 Pull USERAGENT used by curl into constant 2009-08-10 16:15:24 +01:00
Adam Vandenberg
eda0dc1741 Fix brew --cache
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-04 07:48:27 +08:00
Max Howell
d327b7e7e2 FIX brew home
Somehow I didn't test before the commit, dumbo.
2009-08-03 01:07:37 +01:00
Max Howell
5aae0ce18b FIX brew info when keg installed
I keep breaking this stuff, need more tests, and well I think it's due to
developing on multiple machines and having different states of checkouts. So
apologies, I'll FIX myself too :)
2009-08-02 13:02:15 +01:00
Max Howell
d10192e077 Add Contributions to brew edit listing 2009-08-02 01:36:41 +01:00
Adam Vandenberg
14da66fb77 brew home foo open's foo's homepage in default web-browser 2009-08-02 01:30:29 +01:00
Max Howell
e5fd9be0dc Raise if extract_named_args finds no named args
This errors out correctly for all existing and future usage.
2009-08-02 01:21:01 +01:00
Max Howell
9b1cc903a2 FIX missing keg argument error message. Closes Homebrew/homebrew#6 2009-08-02 00:04:15 +01:00
Max Howell
345d603b52 FIX brew info 2009-08-01 17:43:54 +01:00
Max Howell
9b19f194cc Refactor $foo into HOMEBREW_FOO
CONSTANTS are the far saner choice for these important parameters.

Split env up so I can redefine the CONSTANTS in unittest.rb.
2009-07-31 04:59:02 +01:00
Max Howell
4ac760779e FIX brew edit foo 2009-07-31 01:15:58 +01:00
Max Howell
71a78b0e56 FIX don't rmtree an already installed package
That's stupid.

Also don't fail to rmtree because nothing was installed.
2009-07-31 00:55:00 +01:00
Max Howell
0dd07b3fdc Copy LICENSE file if it exists also 2009-07-31 00:28:45 +01:00
Max Howell
e9cb539445 Fix brew info foo 2009-07-29 01:00:26 +01:00
Adam Vandenberg
053bb16fb0 Add --cmake option to brew mk to generate a CMAKE skeleton.
Signed-off-by: Max Howell <max@methylblue.com>
2009-07-28 18:47:45 +08:00
Max Howell
5b5a3a1826 brew info lists number of kegs 2009-07-28 00:33:08 +01:00
Max Howell
fb5aefd4a0 Refactor--object orientate where sensible 2009-07-24 23:57:54 +01:00
Max Howell
7bd9f08558 Fix typos 2009-07-22 20:28:22 +01:00
Max Howell
3bdeac3649 Work even if the working directory doesn't exist 2009-07-10 00:57:27 +01:00
Max Howell
a648e46d8a Leave permissions of installed files in sensible state
No write permission for files, executable when required etc.
2009-06-26 13:05:48 +01:00
Max Howell
9f9d95c134 brew mk, @homepage in front of @md5 as this is order you type 2009-06-26 13:05:11 +01:00
Max Howell
67d418f71d bew install --interactive now works
Also mkpath only in normal install route, thus we don't "create" a keg when
exiting --interactive
2009-06-26 13:04:22 +01:00
Max Howell
bcc7c19e85 brew edit and brew macports commmands 2009-06-26 13:03:49 +01:00
Max Howell
a5bbf971ba Fix list for empty kegs 2009-06-26 13:03:20 +01:00
Max Howell
6ee7a116c2 No more "cwd doesn't exist" messages 2009-06-26 13:01:23 +01:00
Max Howell
7d56cfb879 Downcase name when creating new formulae with brew mk 2009-06-20 15:46:31 +01:00
Max Howell
f352880274 brew install foo --help
Shows the result of ./configure --help
2009-06-18 10:34:54 +01:00
Max Howell
2097730e40 Improved documentation 2009-06-18 10:34:54 +01:00