43894 Commits

Author SHA1 Message Date
Andre Arko
195e75c1b2 Search by substring unless term is inside /../ 2009-09-29 23:34:16 +01:00
Max Howell
b9033700b6 Fixes .gitignore
So now it does ignore new stuff in root but not in the dirs we like.
2009-09-29 23:33:22 +01:00
Kieran Pilkington
0e9edbb285 An additional reference for warn_about_macports_or_fink 2009-09-29 16:26:38 +01:00
Kieran Pilkington
9169b675a3 Adding PATH for the debug environment. 2009-09-29 16:26:38 +01:00
Kieran Pilkington
aedaaf79bf brew list --unbrewed
Very quick way to find files not installed by homebrew.

Taken from a command by mxcl on the homebrew wiki.

.DS_Store files and bin/brew are ignored.
2009-09-29 16:26:37 +01:00
Max Howell
14818039ae If brew create can't figure out the name, prompt for it
This was adapted from adamv@d5e78ee26535dec4b11c33d14832a9ee945a29fd

I decided prompting would was the most usable solution here, as the stem is
unlikely to be useful so the user would have to rename the file and change
the class name as well as type the command once and then again with --force.

Dissent welcome.

Fixes Homebrew/homebrew#15
2009-09-29 15:46:34 +01:00
Adam Vandenberg
14b3ea887a Add option to downgrade from LLVM to gcc.
Signed-off-by: Max Howell <max@methylblue.com>

I added ENV tests.
2009-09-29 15:45:48 +01:00
Adam Vandenberg
14daa31cd3 We require Xcode 3.1 *and later* 2009-09-29 14:23:00 +01:00
Max Howell
5abe20b410 ENV.O3 -- for when O4 takes forever
Which makes me wonder if it's worth it? Oh well, you can't find these things
out without experimentation.
2009-09-29 14:23:00 +01:00
Ben Alpert
2b464a82fa Change .gitignore to specifically include files we want tracked.
Closes Homebrew/homebrew#66
2009-09-28 17:26:40 -06:00
Max Howell
51f935c499 Show information messages after basic error checking. 2009-09-28 00:20:51 +01:00
Max Howell
1004df181e fix_PATH changed to warn_about_macports_or_fink
We shouldn't mess with the user's PATH anyway. So assume our users are smart and just warn them about potential issues instead.
2009-09-28 00:20:51 +01:00
Eloy Duran
fab877de18 Made the tests green for the updater component 2009-09-28 00:20:51 +01:00
Eloy Duran
5a2eae5d49 Only show the first 8 characters of the commit hashes. 2009-09-28 00:20:51 +01:00
Eloy Duran
1022c23990 Properly distinguish between added and updated formulae. 2009-09-28 00:20:50 +01:00
Max Howell
af6c890294 Quote path parameters where appropriate
Our build directories are space-less, but the final destination may have
spaces, especially since OS X often uses your full name as your home directory
path.
2009-09-28 00:20:50 +01:00
Max Howell
3971a5666c Oops. Don't raise for homepages. Silly. 2009-09-26 02:20:00 +01:00
Max Howell
b7bf860a48 Use MACOS_VERSION in bin/brew 2009-09-25 19:30:19 +01:00
Max Howell
4b5d39feab Throw if no homepage set
That'll teach you!
2009-09-25 19:22:02 +01:00
Adam Vandenberg
f49bd4a9fa Add test for matching formula filename/class. 2009-09-25 19:21:03 +01:00
Adam Vandenberg
b2a857da54 Add better error message for misnamed formula class. 2009-09-25 19:20:59 +01:00
Adam Vandenberg
1e3dff7b8e Update bash completions. 2009-09-25 18:58:06 +01:00
Adam Vandenberg
a3668bef76 Find version number in *-src.tarball
Signed-Off-By: Max Howell <max@methylblue.com>

I added a unittest.
2009-09-25 18:57:44 +01:00
Max Howell
235987b032 Don't summarize brew list if piped to another command 2009-09-25 18:06:37 +01:00
Max Howell
d2943b9526 Default to LLVM on Snow Leopard
On Leopard you can enable it by defining the environment variable:

    HOMEBREW_USE_LLVM

I didn't enable it on Leopard by default because it doesn't get as much testing, and I don't want to rock the boat. On Snow Leopard people are forigiving of issues because it is new and many compiles fail anyway. And if you installed Snow Leopard you *want* the cutting edge.

Closes Homebrew/homebrew#29
2009-09-25 18:06:37 +01:00
Boris Gordon
cdd4c0266a Installation links were round the wrong way in the README 2009-09-25 18:05:29 +01:00
Christian Mayer
edb89a7829 Axel formula
Axel tries to accelerate downloads by using multiple connections (possibly to
multiple servers) for one download. Because of its size, it might be very
useful on bootdisks or other small systems as a wget replacement.
2009-09-25 15:31:55 +01:00
Piotr Usewicz
4ed3834be0 Add full version and build numbers to user agent
Signed-off-by: Max Howell <max@methylblue.com>

I adapted it slightly based on the user agent that Safari gives.
2009-09-25 01:24:05 +01:00
Ben Alpert
ad01b141b7 Don't use file, just check the magic numbers instead
Closes Homebrew/homebrew#58
2009-09-24 16:30:40 -06:00
Ben Alpert
e339a2a73f Add Hardware.is_64_bit? method
Closes Homebrew/homebrew#53
2009-09-24 16:30:26 -06:00
Max Howell
bab6515668 Summarised listings with brew list
I'm trying to only show the interesting stuff. You can see a full listing with
brew -v list, or by piping to other commands.

Tell me if you hate it or love it.
2009-09-24 22:38:42 +01:00
Max Howell
bfb3e1bfe0 brew log command
Shows the git-log for that formula.
2009-09-24 21:09:46 +01:00
Max Howell
dc0e64dc22 The term zeroconf only applies to networking apparently
Random guy on Twitter mentions it. Google confirms.
2009-09-24 18:54:27 +01:00
Max Howell
a6ba0c4800 Use new instance var syntax for brew create 2009-09-24 18:49:49 +01:00
Max Howell
44a1fa418e Use full paths to all system utilities
Otherwise you run the risk of not running the exact version / make of the utility you planned.

Fixes Homebrew/homebrew#48

Really we need to do this formula too, so I guess a make and cmake function are on the way…
2009-09-24 18:26:24 +01:00
Max Howell
034fc40ae1 Remove Fink and Macports from the PATH earlier
References issue Homebrew/homebrew#48
2009-09-24 18:26:24 +01:00
Max Howell
a03d13088f Return non-zero error code on errors
Stupidly I figured Ruby did this for us, but why would it?
2009-09-24 18:26:24 +01:00
Clinton R. Nixon
2668e2aeff DRYed up "@foo=self.class.foo unless @foo" statements
Using the example from the existing code:

  CHECKSUM_TYPES.each do |type|
    if !instance_variable_defined?("@#{type}")
      class_value = self.class.send(type)
      instance_variable_set("@#{type}", class_value) if class_value
    end
  end

I extracted that block into a method 'set_instance_variable' which I
then used in all places where this behavior was being used.
2009-09-24 18:26:16 +01:00
Clinton R. Nixon
44a3d59630 Added small DSL for formulas
You can now use "url", "version", "homepage", and any checksums as
class methods, like so:

    class Dos2unix <Formula
      url 'http://www.sfr-fresh.com/linux/misc/old/dos2unix-3.1.tar.gz'
      md5 '25ff56bab202de63ea6f6c211c416e96'
      homepage 'http://www.sfr-fresh.com/linux/misc/'
    end

The previous usage ("@url = 'http://example.com/tarball.tgz'") still
works, maintaining compatibility with previous formulas.

"dos2unix.rb" is translated into the new format as an example.
2009-09-23 14:51:11 -04:00
Max Howell
6f4c61e326 brew install --ignore-dependencies
I used the same option flag as ruby gems does.
2009-09-22 19:58:10 +01:00
Pierre Riteau
c9c7075dc1 Don't print text as columns when the output is not a tty
The code also makes sure to terminate with a newline, unless the
output is empty.
2009-09-22 20:43:06 +02:00
Max Howell
e60ea7bd20 Clean up the empty dir cleaner a little
Using more Pathname methods.

Only show text if verbose mode is on, as is typical for the rest of our install output.

TODO: would be nice if we knew you were a dev and automatically enabled verbose mode perhaps.
2009-09-22 11:38:22 +01:00
Adam Vandenberg
36bb590e82 Rename :libpng to :x11 and alias. 2009-09-21 20:55:41 -07:00
Adam Vandenberg
8d7ebb8ba3 length, not count. Fixes issue 55. 2009-09-21 16:53:04 -07:00
Adam Vandenberg
50b981a469 Replace perl one-liner for removing empty dirs with Ruby.
Allow Formula.skip_clean? to prevent empty folders from being removed
as part of the brewing cleanup process.
2009-09-21 16:12:01 -07:00
Max Howell
c9db120edf Some further uninstallation information
Corrected README path.
2009-09-22 00:04:55 +01:00
Max Howell
3094a162ac Don't always say "Patching" 2009-09-21 23:51:31 +01:00
Max Howell
7f56fe2532 ENV.cc; returns the compiler we use 2009-09-21 23:50:57 +01:00
Max Howell
444e2e05fc Remove some ohai() use
Ohai is for titles, to separate sections of output so it is more readable, it
truncates long lines for this purpose. So don't use it if the line you are
outputting is likely to be long and important. Instead prefix that line with
a summary header.
2009-09-21 22:02:35 +01:00
Max Howell
01b85d8521 Automatically add keg_only? deps to relevent ENV
Eg gettext gets added into LDFLAGS, INCLUDE and that. I hope I got everything
that is typical. Prolly not. But we'll find out.

Made readline keg_only because the BSD version is provided by OS X, and I
don't want bug reports that are tricky to solve due to unexpected differences
between the two.
2009-09-21 20:23:09 +01:00