aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2009-09-25Axel formulaChristian Mayer
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-25Add full version and build numbers to user agentPiotr Usewicz
Signed-off-by: Max Howell <max@methylblue.com> I adapted it slightly based on the user agent that Safari gives.
2009-09-24Don't use file, just check the magic numbers insteadBen Alpert
Closes #58
2009-09-24Add Hardware.is_64_bit? methodBen Alpert
Closes #53
2009-09-24Summarised listings with brew listMax Howell
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-24brew log commandMax Howell
Shows the git-log for that formula.
2009-09-24Use new instance var syntax for brew createMax Howell
2009-09-24Use full paths to all system utilitiesMax Howell
Otherwise you run the risk of not running the exact version / make of the utility you planned. Fixes #48 Really we need to do this formula too, so I guess a make and cmake function are on the way…
2009-09-24Remove Fink and Macports from the PATH earlierMax Howell
References issue #48
2009-09-24DRYed up "@foo=self.class.foo unless @foo" statementsClinton R. Nixon
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-23Added small DSL for formulasClinton R. Nixon
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-22brew install --ignore-dependenciesMax Howell
I used the same option flag as ruby gems does.
2009-09-22Don't print text as columns when the output is not a ttyPierre Riteau
The code also makes sure to terminate with a newline, unless the output is empty.
2009-09-22Clean up the empty dir cleaner a littleMax Howell
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-21Rename :libpng to :x11 and alias.Adam Vandenberg
2009-09-21Replace perl one-liner for removing empty dirs with Ruby.Adam Vandenberg
Allow Formula.skip_clean? to prevent empty folders from being removed as part of the brewing cleanup process.
2009-09-21Don't always say "Patching"Max Howell
2009-09-21ENV.cc; returns the compiler we useMax Howell
2009-09-21Automatically add keg_only? deps to relevent ENVMax Howell
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-21Merge branch 'deps'Max Howell
Conflicts: Library/Formula/imagemagick.rb Library/Formula/taglib.rb Library/Homebrew/brew.h.rb Library/Homebrew/formula.rb bin/brew
2009-09-21Dependency resolution with fancy syntaxMax Howell
Is it a DSL? No. But people call it that apparently. To add a dependency: class Doe <Formula depends_on 'ray' depends_on 'mee' => :optional depends_on 'far' => :recommended depends_on Sew.new end Sew would be a formula you have defined in this Formula file. This is useful, eg. see Python's formula. Formula specified in this fashion cannot be linked into the HOMEBREW_PREFIX, they are considered private libraries. This allows you to create custom installations that are very specific to your formula. More features to come, like specifying versions
2009-09-18Update references to masterbrewMax Howell
I left update_from_masterbrew! as a historical reference.
2009-09-17mkpath for all directories under lib/perl5Max Howell
Don't symlink, as multiple formula will install to this directory.
2009-09-17Solving the GNU GetText issuesMax Howell
GNU GetText breaks eg. Ruby 1.9 builds, and some other formula I have been building too. But it is required by eg. glib. So to solve this we are going to by default not symlink gettext into the Homebrew prefix. Formula that depend on GetText will have the gettext paths added to the brewing environment automatically. Neat.
2009-09-17The "brew gen" command doesn't seem to exist, changed to "brew create", ↵dbr
which isn't otherwise mentioned
2009-09-17Delete the partial download with any exceptionMax Howell
Don't delete it if it doesn't exist.
2009-09-17Prettier install outputMax Howell
This way caveats and other warnings/errors don't appear connected to the Summary text.
2009-09-17Warning for bin dirs not in the PATHMax Howell
Eg. sbin may be part of the formula, but that isn't in the default Mac PATH. Also will avoid bug reports for users who forget to amend their PATH and stick Homebrew somewhere different.
2009-09-17Add license header to update.rbMax Howell
2009-09-17Rename refresh_brew.rb to update.rbMax Howell
I didn't change the class name, it's clear from the context where it is used what it does. However when just looking at files to figure out the nature of Homebrew I believe in clear naming. Otherwise funny names earn you points.
2009-09-17Error out if a git command fails during updateMax Howell
2009-09-17Made the Library tests green on 10.6.0Eloy Duran
2009-09-17Changed verbose output of git commands during update to use the existing style.Eloy Duran
2009-09-17Don't break if RubyCocoa can't be loaded, but try to help the user.Eloy Duran
2009-09-17Made the output of updating a bit nicer and log more if --verbose.Eloy Duran
2009-09-17Before trying to update, first checkout the masterbrew branch.Eloy Duran
2009-09-17Removed the old 'update' when clause and fixed a small spelling error.Eloy Duran
2009-09-17Make sure git commands in RefreshBrew are executed with the proper working dir.Eloy Duran
2009-09-17Added `update' to banner.Eloy Duran
2009-09-17Update Homebrew and list the updated formulae.Eloy Duran
2009-09-16Default to patch level 1Max Howell
Having gone through our patches it's clear that p1 is more standard. Also fixed a bug where returning DATA outside of an array would fail to patch.
2009-09-16Allow formulae to use __END__Max Howell
For this to work the "running script" must be the formulae file. Making this so wasn't so hard, there is now an install.rb script which is included with the -r flag to the ruby executable. An at_exit handler calls the install function. Having the install logic in its own file made it feel like there was so much space that I added extra error handling. So there is something to be said for separating functionality out into its own files. Still the error handling sucks, we'll need to marshall the exception back to the bin/brew command. Which is another PITA. Still overall I think this will prove worthwhile. But if it doesn't we'll revert. As a first usage, you can put a diff after __END__ and return DATA from Formula::patches to make Homebrew aware of it.
2009-09-16Support patching using diffs on local filesystemMax Howell
2009-09-16Teach patch to uncompress patches if necessary.Brian Smyth
This change also eliminates the somewhat duplicate codepath if patches returns and Array rather than a Hash.
2009-09-14Clear CDPATH to avoid make issues that depend on changing directoriesJoshua Peek
2009-09-14Fix unittest test_arch_for_command for 10.5David Höppner
2009-09-14Clean up indentationClinton R. Nixon
Signed-off-by: Max Howell <max@methylblue.com> I didn't commit it all, apologies. But I just can't read the sections nearly as easily if you indent private and protected. If it's a Ruby convention it frankly seems at odds with the rest of Ruby spacing conventions.
2009-09-14Escape $ inreplace 'after' parameterMax Howell
2009-09-14Ant formulaClinton R. Nixon
Ant is a Java-based build tool. In theory, it is kind of like Make, without Make's wrinkles and with the full portability of pure Java code.
2009-09-14Couchdb and dependency formulaeSean Wolfe
Signed-off-by: Max Howell <max@methylblue.com> I squashed a number of commits here, and also replaced the use of nspr.prefix with HOMEBREW_PREFIX as in theory we are flexible with our requirement for dependencies, although with the limited build system that SpiderMonkey possesses this is difficult for us to achieve anyway…